Make it clearer that JAVA_OPTS is about JSVC options
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat6 (Ubuntu) |
Fix Released
|
Wishlist
|
Thierry Carrez |
Bug Description
JAVA_OPTS is somewhat misleading since it is JSVC options and not all Java options are recognized, which leads to bug reports like :
I put that in /etc/default/
JAVA_OPTS=
-XX:+CMSPermGen
-Djava.
But I got this message:
Invalid option -enableassertions
Then I move to:
JAVA_OPTS=
-XX:+CMSPermGen
-Djava.
and I got:
Invalid option -server
Then, if I remove '-server':
JAVA_OPTS=
-XX:+CMSPermGen
-Djava.
tomcat finally starts.
But why that? and how can I be sure that tomcat is running with
assertions and server enabled?
Changed in tomcat5.5 (Ubuntu): | |
status: | Incomplete → New |
Changed in tomcat6 (Ubuntu): | |
assignee: | nobody → Thierry Carrez (ttx) |
status: | Triaged → In Progress |
Sounds like a JVM bug: What JVM are you using ? Could you try passing those options directly to "java" to test how it reacts ?