Is there anyway that I can set the 'real' memory usage value while running my java code?
Posted
by
vira
on Super User
See other posts from Super User
or by vira
Published on 2011-11-23T15:59:16Z
Indexed on
2011/11/23
17:55 UTC
Read the original article
Hit count: 173
I'm running a code on a server to generate a 10,000x10,000 matrix and save each value into a table (MySQL).
I was informed by the administrator that I can use up to 32g of the physical memory of our server but have no idea how to do it. I googling around and so far only found information about setting the virtual memory using -Xmx. I tried it anyway and using top command I got this:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
3981 gv 35 15 32.4g 304m 10m S 1 0.5 9:54.84 java
So, it shows that the -Xmx set the VIRT and not the RES value.
Is there anyway that I can set the RES value into 32g?
© Super User or respective owner