Labels

algorithms (22) Design Patterns (20) java (19) linux (14) Snippet (13) service mix (6) soa (4)

Eclipse and tomcat out of memory

Open launch configuration and add the following to the VM arguments.

image

-Xms768m -Xmx1024m -XX:MaxPermSize=512m

2 comments:

  1. OutOfMemory in PermGen on Tomcat may not be just because of in sufficient memory but also due to serious leak as explained in <a href="http://javarevisited.blogspot.sg/2012/01/tomcat-javalangoutofmemoryerror-permgen.html>PermGen memory leak in Tomcat</a>. As Tomcat use different classloader to load different web app.

    ReplyDelete

Search 24 Bytes