Changes between Version 34 and Version 35 of FAQs

Show
Ignore:
Timestamp:
12/15/10 15:49:18 (9 years ago)
Author:
ibaldin (IP: 152.54.9.21)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FAQs

    v34 v35  
    138138$ mvn clean; mvn package; ant deploy 
    139139}}} 
     140 
     141---- 
     142Q: Tomcat is running out of memory? 
     143e.g. logs/catalina.out reports exceptions 
     144{{{ 
     145Caused by: java.lang.OutOfMemoryError: PermGen space 
     146}}} 
     147 
     148A: locate Tomcat's start.sh, within there is a line that looks like this: 
     149{{{ 
     150declare -x CATALINA_OPTS="-ea -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 -Xmx1024m" 
     151}}} 
     152add another option to it: 
     153{{{ 
     154declare -x CATALINA_OPTS="-ea -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000 -Xmx1024m  -XX:MaxPermSize=512M" 
     155}}} 
     156Here we are declaring PermGen space to be 512M, which is quite large. Anything at 128M or above would improve the situation as Tomcat default is 64M.