Results 1 to 3 of 3
Thread: Heap size
- 08-22-2010, 07:56 AM #1
Senior Member
- Join Date
- Jan 2010
- Posts
- 138
- Rep Power
- 0
- 08-22-2010, 11:57 AM #2
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
What you mean required heap size? You can find the available heap size and based on it you may take some decisions. But it should not be so critical stuff. And also you can find maximum and free memory at that time.
Java Code:Runtime.getRuntime().totalMemory(); Runtime.getRuntime().maxMemory(); Runtime.getRuntime().freeMemory();
- 08-22-2010, 11:59 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
If you can clear-up what you exactly want to do it's much easier to comment. And also please note that check the spellings on above three line of code, I just wrote them in the forum editor...
Similar Threads
-
get maximum heap size that can be allocated
By gautam.aditya97 in forum Java 2DReplies: 3Last Post: 04-05-2010, 05:03 AM -
no heap space... need more heap
By anupam.kumar in forum Advanced JavaReplies: 3Last Post: 02-08-2010, 04:42 PM -
Setting frame size to the size of an image
By Yoruichi in forum AWT / SwingReplies: 5Last Post: 04-22-2009, 04:37 PM -
[SOLVED] JAVA heap size problem
By sreedevi in forum New To JavaReplies: 3Last Post: 02-11-2009, 07:05 AM -
Java heap size
By jmdrocks in forum EclipseReplies: 2Last Post: 12-12-2008, 06:10 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks