Using incorrect JVM Garbage Collector
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat6 (Ubuntu) |
Fix Released
|
Medium
|
Thierry Carrez |
Bug Description
Binary package hint: tomcat6
The default garbage collector for tomcat should be the Concurrent Mark-Sweep (CMS) Collector as it is the recommended GC for Web Application Severs.
The default garbage collector doesn't guarantee quick response times, and often times causes hangs during garbage collection.
As Tomcat 6 is a web application server, it should use the CMS GC.
Here is the diff to fix it:
diff /etc/default/
17a18,20
> # Use a concurrent garbage collector for improved response time
> JAVA_OPTS=
>
To do this, the following option can be added to `/etc/default/
...
# Arguments to pass to the Java virtual machine (JVM).
#JAVA_OPTS=
# Use a concurrent garbage collector for improved response time
JAVA_OPTS=
...
Reference:
http://
Additional Material:
http://
Thanks for making Ubuntu Server enterprise ready!
tags: | added: patch |
Changed in tomcat6 (Ubuntu): | |
assignee: | nobody → Thierry Carrez (ttx) |
importance: | Low → Medium |
status: | Confirmed → In Progress |
Which version is this for?
Regards
chuck