Add documentation about JAVA_OPTS defined in /etc/init.d/tomcat6 not propagating to startup
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
tomcat6 (Ubuntu) |
Confirmed
|
Wishlist
|
Unassigned |
Bug Description
Binary package hint: tomcat6
I have not fully investigated. However, I added the line:
JAVA_OPTS=
to /etc/init.
I then added the same line to /var/share/
1) The server failed to start because I have only 4GBs of RAM, and thus max heap was too large. (Adjusted in catalina.sh and all was well.)
2) Once I fixed the max heap, ri.home was available to my webapp.
Thus for some reason JAVA_OPTs is not being passed between the scripts properly. You should also define a spot in /etc/init.d/tomcat6 for developers to add their own JAVA_OPTs, to minimize hackery.
Changed in tomcat6 (Ubuntu): | |
importance: | Undecided → Wishlist |
status: | New → Confirmed |
summary: |
- JAVA_OPTS defined in /etc/init.d/tomcat6 do not propagate to startup + Add documentation about JAVA_OPTS defined in /etc/init.d/tomcat6 not + propagating to startup |
Reuben, it's not obvious in the init script but the proper place is /etc/default/ tomcat6 which includes a JAVA_OPT line, which actually clobber the one in the init script due to the "if -z JAVA_OPT". This actually bit me recently due to a tomcat update.