Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Memory allocation on startup problem

843811Jan 12 2005 — edited Feb 15 2005
Hi,

I built a Java application that needs lots of memory and I have not been able to use more than 1Gig of RAM.

The server on which the application runs is equipped with 4Gb of RAM, it runs Windows 2003 Server edition and the pagefile is set to default.

The application runs in Tomcat 5.0.29 using 1.4.2 JDK.

First I tried starting the application using -Xms1G and -Xmx1G flags, the application starts successfully, it reserves 1GB of ram on startup, no problem there.

But if I raise it to -Xms2G and -Xmx2G the application doesn't start at all.

I've also tried using the -XXaggressive flag, the application starts but doesn't use more than 1Gig of RAM.

Any suggestions ?
Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 15 2005
Added on Jan 12 2005
14 comments
316 views