Solved

Heap size for Java application  on windows server

Posted on 2010-11-15
6
2,039 Views
Last Modified: 2012-05-10
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
Comment
Question by:KavyaVS
6 Comments
 
LVL 86

Expert Comment

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

Expert Comment

by:objects
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
0
 
LVL 7

Expert Comment

by:printnix63
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.
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 

Author Comment

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

-Xms1024m -Xmx2048m


THanks,
Kiran
0
 
LVL 92

Expert Comment

by:objects
ID: 34141337
are you running 64 bit java vm
0
 
LVL 7

Accepted Solution

by:
printnix63 earned 500 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.
0

Featured Post

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Non-recursive backtracking, using a stack 1 103
What is this Task? 4 87
eclipse argument 14 53
How to monitor the number of connections/threads being utilized on Tomcat 6.0 8 56
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.

895 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now