--------------

You should use the 'setenv' subcommand of svccfg(1M).

eg.

svccfg -s setenv CATALINA_OPTS "Xms256m -Xmx256m"
svccfg -s setenv JAVA_OPTS -Dcom.sun.management.jmxremote
svccfg -s setenv JAVA_HOME /usr/java/jre

-- Renaud
---------------

This doesn't work for me. When I use svccfg -s setenv CATALINA_OPTS "Xms256m 
-Xmx256m" the properties as displayed via svccfg's listprop are so:

[b]method_context              framework
method_context/environment  astring  "CATALINA_OPTS=\"-Xms256m -Xmx256m\""[/b]

This is ignored when svcadm restarts the tomcat process. I've gone in via 
editprop and removed the backslashes and extra quotes so it looks like this:

[b]method_context              framework
method_context/environment  astring  "CATALINA_OPTS=-Xms256m -Xmx256m"[/b]

but that parameter seems to be ignored during startup and restart.
 
 
This message posted from opensolaris.org

Reply via email to