title: Is there any way to force a JVM to use swap no matter how big the memory requirement is?
body: <p>Here is my situation: I have a task at hand that requires lots of memory. I do not have enough ram, and no matter what I tried (Jrockit with /3gb switch etc), I can't give JVM enough ram and the operation is terminated with an exception, telling me I need more heap space.</p>
  
  <p>Is there any way I can force the JVM to use the OS's swapping mechanism so that it won't run out of memory? This is Windows xp 32 bit</p>
  
  <p>It would take ages, but I would not care, I just need this operation to be completed. </p>
  
  <p>I've run out of options, and I have no control over any of the variables here..</p>
  
  <p>This is a required edit, since I am having the same response from pretty much everyone :)
  This is not my code. Someone has written a tool that reads an xml file into a repository. The tool uses EMF, and loads the whole model at once. All I can do  is to feed it the XML file. 
  In case of native code running under Windows or Linux etc, the OS provides memory to it, using virtual memory/swap space, and the app does not know about it. 
  I was wondering if it is possible to do the same with the JVM. Under Windows 32 bit, -Xmx can go up to a certain amount, but that is not enough. 
  Going out and buying new hardware is not an option for me for the moment. So I was wondering if it is possible to make the JVM work like native processes. Slow, but still working. 
  Apparently that is not possible, and I am out of luck. I just need to know if I'm really out of options.</p>