Results 1 to 3 of 3
Thread: Java heap size
- 11-22-2008, 02:06 AM #1
Member
- Join Date
- Nov 2008
- Posts
- 1
- Rep Power
- 0
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
- 11-24-2008, 06:42 AM #2
Member
- Join Date
- Jul 2008
- Posts
- 68
- Rep Power
- 0
how much available memory do you have on the machine you are trying to run this on? Why does eclipse need 2G of ram?
- 12-12-2008, 06:10 AM #3
Member
- Join Date
- Jun 2008
- Posts
- 23
- Rep Power
- 0
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..
Similar Threads
-
java.lang.OutOfMemoryError: Java heap space
By paul in forum Advanced JavaReplies: 11Last Post: 06-12-2010, 05:30 PM -
Java Heap Space
By sandeeprao.techno in forum Advanced JavaReplies: 19Last Post: 10-30-2008, 11:27 AM -
Java heap space error
By gezzel in forum New To JavaReplies: 19Last Post: 09-25-2008, 12:07 AM -
Java heap space?
By javanewbie in forum New To JavaReplies: 1Last Post: 06-24-2008, 06:55 PM -
Heap Sort in Java
By Java Tip in forum AlgorithmsReplies: 0Last Post: 04-16-2008, 10:27 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks