How to increase JVM heap size (Tomcat Heap Size) in IDE's (in Netbeans and Eclipse)?

In NetBeans:

It is possible that the java virtual machine will begin to throw OutOfMemoryError when  your Java program requires a large amount of memory using Netbeans. So for increasing the JVM Heap Size of Tomcat in Netbeans we have to set VM arguments of the Tomcat.

Here is the steps to increase the Heap Size of Tomcat in Netbeans.
1. Go to Servers tab  of  Services , you will find Tomcat tab there.Here is the screen shot.

2.  Right click on tomcat  and go to properties, new  window will  open, now go to Platform tab  set   VM arguments ( -Xms64m -Xmx512m  )  in VM Options's textbox. Here is the screen shot.


3.  At last close the window. All done.


In Eclipse :

1. Open the Server tab in Eclipse and double click the Tomcat server .Here is the screen shot.


2. Click on Open launch  configuration link in General Information tab.




3. Select Argument tab and set VM arguments ( -Xms64m -Xmx512m  ) in the end.


4. Click Apply -> Ok. All done.
Share on Google Plus

About JK STACK

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment