Saturday, January 5, 2013

Increase Java heap size in Eclipse to avoid not responding problems

Most of programmers had encountered not responding problems in eclipse while developing mostly Java Swing Applications. Most probably these kind of errors occurs due to less java heap size.
So, If you can change this java heap size, then you will be able to improve the performance.

click below links for information's about java heap size.
 
Following are steps for increasing and managing manually the heap size.
Go to the eclipse folder where you extract the eclipse zip file. Note the path to eclipse.exe file as shown in figure below.
 Now you can add code segment for manually managing  heap like below.
D:\eclipse\eclipse.exe -vmargs -Xms1024m -Xmx2048m -XX:PermSize=1024m -XX:MaxPermSize=1024m

you can change above size as you wish, for example
 
D:\eclipse\eclipse.exe -vmargs -Xms512m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=512m

Now, open the command prompt (click start then type cmd and press Enter).
Copy the above code (D:\eclipse\eclipse.exe -vmargs -Xms1024m -Xmx2048m -XX:PermSize=1024m -XX:MaxPermSize=1024m).
Then, right click on cmd and press Enter. It will open the Eclipse........

You can also make a shortcut with these setting to future use without doing this every time when you start Eclipse.
For making shortcut, go to the eclipse extracted folder and right click on Eclipse.exe and click on Create a shortcut. It will create shortcut of eclipse, now right click on that short cut and select properties like below figure.

Hence, add above code (D:\eclipse\eclipse.exe -vmargs -Xms1024m -Xmx2048m -XX:PermSize=1024m -XX:MaxPermSize=1024m) to target filed of that and click OK button.
Now, you can use this shortcut for starting Eclipse with these setting easily.....


 
Do not forget to leave your comments below.

8 comments:

  1. this post is very useful.thanks for this post.
    join us

    ReplyDelete
  2. Great post! I am actually getting ready to across this information, Also great with all of the valuable information you have Keep up the good work you are doing well.

    Java training in Chennai

    Java training in Bangalore

    Java training in Hyderabad

    Java Training in Coimbatore

    Java Online Training

    ReplyDelete
  3. This blog is the general information for the feature. You got a good work for these blog.We have a developing our creative content of this mind.Thank you for this blog. This for very interesting and useful.
    angular js training in chennai

    angular js training in tambaram

    full stack training in chennai

    full stack training in tambaram

    php training in chennai

    php training in tambaram

    photoshop training in chennai

    photoshop training in tambaram

    ReplyDelete
  4. This is a nice article here with some useful tips for those who are not used-to comment that frequently.
    Thanks for this helpful information I agree with all points you have given to us. I will follow all of them.
    web designing training in chennai

    web designing training in omr

    digital marketing training in chennai

    digital marketing training in omr

    rpa training in chennai

    rpa training in omr

    tally training in chennai

    tally training in omr

    ReplyDelete