I'm running code on a server to generate a 10,000 x 10,000 matrix and save each value into a MySQL table.

I was informed by the administrator that I can use up to 32GB of the physical memory of our server but have no idea how to do it. I've searched Google but so far have only found information about setting the virtual memory using -Xmx. I tried it anyway and using the 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                                                                                                                 

It shows that -Xmx sets the VIRT and not the RES value.

Is there any way that I can set the RES value to 32GB?

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.