Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Heap size for Java application  on windows server

Posted on 2010-11-15
Medium Priority
Last Modified: 2012-05-10

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.
Press any key to continue . . .

Question by:KavyaVS
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 86

Expert Comment

ID: 34140244
How are you trying to do it?
LVL 92

Expert Comment

ID: 34140584
sounds like you are running on a 32 bit system. you'll need to upgrade to 64 bit to use that much memory

Expert Comment

ID: 34140931
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.
The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!


Author Comment

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

-Xms1024m -Xmx2048m

LVL 92

Expert Comment

ID: 34141337
are you running 64 bit java vm

Accepted Solution

printnix63 earned 2000 total points
ID: 34149207
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.

Featured Post

Does Your Cloud Backup Use Blockchain Technology?

Blockchain technology has already revolutionized finance thanks to Bitcoin. Now it's disrupting other areas, including the realm of data protection. Learn how blockchain is now being used to authenticate backup files and keep them safe from hackers.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
On July 14th 2015, Windows Server 2003 will become End of Support, leaving hundreds of thousands of servers around the world that still run this 12 year old operating system vulnerable and potentially out of compliance in many organisations around t…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
Suggested Courses

715 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question