facebook

Java Heap size error on Tomcat

  1. MyEclipse IDE
  2.  > 
  3. WebSphere Development
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #339402 Reply

    jehanjaleel
    Member

    Hi,

    I have a Tomcat 6 server which I am running through MyEclipse 10. When my app loads as Tomcat starts up I am getting “java.lang.OutOfMemoryError: Java heap space”.

    As suggested I went to Window-> Prefernces-> Tomcat 6.x -> and added “-Xmx1024m” to the Optional Program arguments section. But the error kept coming. Then I went to Tomcat install dir and added to catalina.bat file “set CATALINA_OPTS=-Xms256m -Xmx1024m “.
    But the error still comes.

    Any suggestions?

    Thanks,
    Jehan

    #339426 Reply

    Jehan,

    Sorry that you are seeing this issue.

    Can you please try these settings by going to Window > Preferences > MyEclipse > Servers > Tomcat > Tomcat 6.x > JDK. In the Optional Java VM Arguments section you can try adding :
    -Xmx512M

    If you are still seeing issues , Can you please open <MyEclipse installation directory>/myeclipse.ini in any text editor and change the values based on the size of your workspace.
    -vmargs
    -Xmx512m
    -XX:MaxPermSize=384m

    If you are still seeing the issue, please try increasing the MaxPermSize and check whether that is working.

    Please check this link for more information :
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-10087.html

    Let us know how it works for you.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Java Heap size error on Tomcat

You must be logged in to post in the forum log in