Heap size for Java application on windows server

HI,

Running a java application (jmeter) on windows server 2003. Machine has 16 GB RAM. I am not able to increase the heap size beyond 1.5 GB

How to use about 10 GB ram?

Anything beyond 1.5 GB ,  we are getting the following error.

Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
errorlevel=1
Press any key to continue . . .


THanks,
Kiran
KavyaVSAsked:
Who is Participating?
 
printnix63Connect With a Mentor Commented:
objects makes it more precise than my above statement.
The important thing is that you run a 64 bit Java virtual machine.
Due to several issues JVM had before many people are still running 32 bit JVM's even on 64 bit hardware. So, if you really need the high amount of memory, you are required to move to a 64 bit JVM on your 64 bit hardware.
0
 
CEHJCommented:
How are you trying to do it?
0
 
objectsCommented:
sounds like you are running on a 32 bit system. you'll need to upgrade to 64 bit to use that much memory
0
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
printnix63Commented:
Exactly, the 32 bit System does not allow for anything beyond 1.5... GByte
This is per definition the limit for the JVM on a 32 bit system.
0
 
KavyaVSAuthor Commented:
Its a   64 bit OS. I am using command line arguments as below.

-Xms1024m -Xmx2048m


THanks,
Kiran
0
 
objectsCommented:
are you running 64 bit java vm
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.