Bug #1416
Mis à jour par Sebastien Jacquot il y a presque 10 ans
Occurs sometimes :
- at startup
- when using TIGERSearch
- when computing Index or Lexion of Partition with a lot of parts
- more ?
h3. Solution 0
Set more Java memory when launching Tomcat :
<pre>
edit /etc/init.d/tomcat6
after:
# Escape any double quotes in the value of JAVA_OPTS
set:
JAVA_OPTS="-Djava.awt.headless=true -Xms512m -Xmx4096m -XX:PermSize=256m -XX:MaxPermSize=1024m"
</pre>
h3. Hypothesis 1
Some Java object are not garbaged when the TXM web app is reloaded.
<pre>
[insert here the tomcat startup logs warning about the not garbaged objects
</pre>
This is a known bug, one simple solution is :
- to not reload tomcat apps, but restart tomcat
- to isolate the webapps
This solution is used by the ENS tomcat VMs.
h3. Solution 1
- Be able to diagnose what causes the heap exception
- fix the heap causes
- at startup
- when using TIGERSearch
- when computing Index or Lexion of Partition with a lot of parts
- more ?
h3. Solution 0
Set more Java memory when launching Tomcat :
<pre>
edit /etc/init.d/tomcat6
after:
# Escape any double quotes in the value of JAVA_OPTS
set:
JAVA_OPTS="-Djava.awt.headless=true -Xms512m -Xmx4096m -XX:PermSize=256m -XX:MaxPermSize=1024m"
</pre>
h3. Hypothesis 1
Some Java object are not garbaged when the TXM web app is reloaded.
<pre>
[insert here the tomcat startup logs warning about the not garbaged objects
</pre>
This is a known bug, one simple solution is :
- to not reload tomcat apps, but restart tomcat
- to isolate the webapps
This solution is used by the ENS tomcat VMs.
h3. Solution 1
- Be able to diagnose what causes the heap exception
- fix the heap causes