Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2106
  • Last Modified:

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
0
KavyaVS
Asked:
KavyaVS
1 Solution
 
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
 
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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
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
 
printnix63Commented:
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

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now