Skip to Main Content

Java APIs

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!

Heap increases not having effect in Java or Eclipse

843810Jun 2 2005 — edited Jun 3 2005
Hello,

I'm developing an application routinely needs a JVM heap of 300MB or more so I need to increase the size of my Java heap.

The problem is that the memory allocation modifications I have made to both Java and Eclipse do not seem to be having any effect.

The JVM and Eclipse settings are both "-vmargs -Xms512M -Xmx1024M". I believe they are not taking effect because the output of a Runtime.getRuntime().maxMemory() call during my processing thread is 66650112, which is ~66.6MB. Has anyone ever seen anything like this? Can you recommend troubleshooting tips or a possible solution?

My JRE version is 1.5.0_02, my Eclipse version is 3.0.2, and I'm running the code directly from Eclipse on Windows XP Pro or Windows 2003 Server.

Thanks in advance,
Peter

P.S. I posted this in the Debugging Tools and Techniques forum but found that it was not the right environment for the question. Sorry for re-post. Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 1 2005
Added on Jun 2 2005
5 comments
194 views