Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-22-2008, 02:06 AM
Member
 
Join Date: Nov 2008
Posts: 1
Rep Power: 0
jmdrocks is on a distinguished road
Default Java heap size
Hello,

I am trying to increase the heap size of JVM. I am using Eclipse as an IDE.

I do so by using eclipse -vmargs -Xmx2048m..

And when I try to see whether JVM has increased the size by
Runtime rt = Runtime.getRuntime();
System.out.println(rt.maxMemory());

But I find that the memory maximum which could be allocated is just 980mb.

Can anyone help me with this ?

Thanks,
Jahangir
Bookmark Post in Technorati
Reply With Quote
  #2 (permalink)  
Old 11-24-2008, 06:42 AM
Member
 
Join Date: Jul 2008
Posts: 68
Rep Power: 0
racerxadam is on a distinguished road
Default
how much available memory do you have on the machine you are trying to run this on? Why does eclipse need 2G of ram?
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 12-12-2008, 06:10 AM
Member
 
Join Date: Jun 2008
Posts: 23
Rep Power: 0
itmani2020 is on a distinguished road
Default regd heap size
Hi myself also faced this and got resolved by following approach..


Try this

Just navigate in u r eclipse

Windows --> prefeence-->java-->installed JRE-->click on the java version installed and click edit button right and give the value -Xmx768m in theDefault VM arguments and click ok.

Thast it..

Close the eclipse and open it again..
Bookmark Post in Technorati
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java Heap Space sandeeprao.techno Advanced Java 19 10-30-2008 11:27 AM
Java heap space error gezzel New To Java 19 09-25-2008 12:07 AM
Java heap space? javanewbie New To Java 1 06-24-2008 06:55 PM
Heap Sort in Java Java Tip Algorithms 0 04-16-2008 10:27 PM
java.lang.OutOfMemoryError: Java heap space paul Advanced Java 1 07-25-2007 08:07 PM


All times are GMT +2. The time now is 03:08 AM.



VBulletin, Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2009, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org