Link to home
Create AccountLog in
Avatar of KavyaVS
KavyaVS

asked on

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
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

How are you trying to do it?
sounds like you are running on a 32 bit system. you'll need to upgrade to 64 bit to use that much memory
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.
Avatar of KavyaVS
KavyaVS

ASKER

Its a   64 bit OS. I am using command line arguments as below.

-Xms1024m -Xmx2048m


THanks,
Kiran
are you running 64 bit java vm
ASKER CERTIFIED SOLUTION
Avatar of printnix63
printnix63
Flag of Germany image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account