Memory allocation on startup problem
843811Jan 12 2005 — edited Feb 15 2005Hi,
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