Public bug reported:
Binary package hint: tomcat6
I have not fully investigated. However, I added the line:
JAVA_OPTS="$JAVA_OPTS -Xmx4096m -Xms1024m -XX:PermSize=256m
-XX:MaxPermSize=512m -XX:NewSize=128m
-Dri.home=/home/reubenf/code/depend"
to /etc/init.d/tomcat6. The ri.home variable was not available to my
webapp after a tomcat restart.
I then added the same line to /var/share/tomcat6/bin/catalina.sh. Two
things happened:
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.
** Affects: tomcat6 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/706570
Title:
JAVA_OPTS defined in /etc/init.d/tomcat6 do not propagate to startup
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs