java version "1.5.0_11"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_11-b03)
Java HotSpot(TM) Client VM (build 1.5.0_11-b03, mixed mode)
Windows 2003 Enterprise SP2/8GB of RAM
I am setting my memory heap using -Xms256m -Xmx1024m for our application. If I try to set anything higher than 1024, i get this error:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
After doing research, I have found this is limited by privvmpages and oomguarpages but all threads refer to a unix environment, and I have no idea how to find/set this info in a Windows environment.
When I run the app with 1024, the data import will run to the same place and then error out with this:
Exception error
com.microsoft.sqlserver.jd
bc.SQLServ
erExceptio
n: The system is out of memory. Use server side cursors for large result sets:Java heap space. Result set size:854,269,999. JVM total memory size:1,065,484,288.
I am pretty good with math and know that 1,065,484,288 > 854,269,999...
what gives?
Start Free Trial