Total members 11346 |It is currently Sat Aug 02, 2014 9:33 am Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

All times are UTC [ DST ]



  here how to increase java heap size
Sun May 25, 2008 3:37 pm 

Last days, I was working on a project which needs big heap size.And i always have the following exception
"main" java.lang.OutOfMemoryError: Java heap space
I found that the default java heap size is : 128MB , so my application need more about 1GP !!.
So the solution was to make it larger using the following command :

java -Xms<initial heap size> -Xmx<maximum heap size>

like
java -Xms32m -Xmx128m

in netBeans you can change your project heap size from Project Properties :
Attachment:
File comment: screenshot
1.gif
1.gif [ 26.86 KiB | Viewed 59089 times ]


_________________
Please recommend / share my post if you found it helpful.


Author:
Mastermind
User avatar Posts: 2694
Have thanks: 73 time
  Re: here how to increase java heap size
Tue Jun 24, 2008 2:17 pm 
In netBeans,Open the configuration file etc/netbeans.conf(In netBeans installed directory) and modify the #netbeans_default_options="-J-Xmx128m to -J-Xmx96m and -J-XX:MaxPermSize=96m to -J-XX:MaxPermSize=64m". This way also we have to increase the Heap size.


Author:
Newbie
User avatar Posts: 10
Have thanks: 0 time
  Re: here how to increase java heap size
Tue Jun 24, 2008 4:18 pm 
Thank you so much for this addition :gOOd: :grin:

_________________
Please recommend / share my post if you found it helpful.


Author:
Mastermind
User avatar Posts: 2694
Have thanks: 73 time
  Re: here how to increase java heap size
Tue May 05, 2009 1:18 am 
Just what I was looking for! cheers.


Author:
Newbie
User avatar Posts: 1
Have thanks: 0 time
  Re: here how to increase java heap size
Tue Dec 15, 2009 10:02 pm 
Thank you ....
you saved my app.. :-)


Author:
Newbie
User avatar Posts: 1
Have thanks: 0 time
  Re: here how to increase java heap size
Wed Feb 10, 2010 7:51 am 
thank you for gave me some knowledge about this topic.


Author:
Newbie
User avatar Posts: 1
Have thanks: 0 time
  Re: here how to increase java heap size
Mon Feb 22, 2010 8:09 pm 
To be precise,

(Java 1.1)
java -ms32m -mx128m MyClassName

(Java 1.2 / 2.0)
java -Xms32m -Xmx128m MyClassName


'X' indicates that these are non-standard options that might not function the same way in future JVMs.


Author:
Newbie
User avatar Posts: 19
Have thanks: 0 time
Post new topic Reply to topic  [ 7 posts ] 

  Related Posts  to : here how to increase java heap size
 Set image size as a percentage of the page size     -  
 Get Directory size in java     -  
 increase the number of bank lines by <br/>     -  
 How can I increase the PageRank of my website on Google?     -  
 How to increase WordPress Blog speed-decrease Page load time     -  
 get string size in c++     -  
 What is the size of this Structure     -  
 Array size to zero     -  
 Nav button size     -  
 how to find size without using sizeof     -  

All times are UTC [ DST ]









Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team