Is there anyway that I can set the 'real' memory usage value while running my java code?
- by vira
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?