On Feb 21, 2007, at 11:19 AM, Christine Tran wrote: > Chris Jackson wrote: > >> 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. >> > > No follow-up to this? I'm still befuddled by the requirements when > you fill out method_context/[stuff]. My next suggestion is instead > of using svccfg against the repository, modify the manifest and put > in the method_context stuff and re-import. This is the *only* time > I recommend this, because the existence of method_context/[stuff] > in a manifest causes SMF to auto-fill-in-the-blank for you for some > other method_context properties. When you use svccfg, SMF doesn't > tell you that you need some other method_context/[stuff] to be > filled out with the "default" value, it just silently fails. I've > found this out playing with setting privileges. > > If that still doesn't work, I would setenv in the method. However, > this goes against the principle of not having to modify any file > when you want to change service properties. > > Let us know how this works out. > > CT
The problem still persists, and I'm thoroughly stumped. I've also run into a similar problem. When I specify JAVA_OPTS=- Dcom.sun.management.jmxremote The parameter is successfully passed during startup/restart. Yet I need to specify two parameters for JAVA_OPTS on this server as so: JAVA_OPTS=-Dcom.iuniverse.tts.jobroot=/iuniverse/apps/tomcat/webapps/ axis/WEB-INF \ -Dcom.sun.management.jmxremote This doesn't seem to work no matter how I add it in, whether it's as a method_context, via svccfg, via raw editing with editprop. It just causes the entire JAVA_OPTS value to be ignored. So again I have to resort to passing these parameters in a startup script that SMF calls. Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/smf-discuss/attachments/20070221/76a8c96e/attachment.html>