A
Ahmed Moustafa
I allocate memory to my app using -Xmx. When would I need to use -Xms?
Thanks in advance!
Thanks in advance!
I allocate memory to my app using -Xmx. When would I need to use -Xms?
Thanks in advance!
Ahmed said:I allocate memory to my app using -Xmx. When would I need to use -Xms?
Thanks in advance!
Mark said:When you know you are going to use at least some minimum amount of
memory. Doing so then avoids a lot of heap expansion (and garbage
collection cycles). Try allocating say 250MB in 64K chunks (ensuring
that you keep a reference to each chunk). You will probably find it much
faster if -Xms is set to 250MB than if the default is used. The default
value for -Xms is quite low and it is rarely worthwhile setting a
smaller value.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.