Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx05.eternal-september.org!.POSTED!not-for-mail From: markspace Newsgroups: comp.lang.java.programmer Subject: Re: Setting a property for System.getProperty() Date: Thu, 09 May 2013 09:48:49 -0700 Organization: A noiseless patient Spider Lines: 25 Message-ID: References: <38d76348-f691-439f-b476-50eeb2908c14@googlegroups.com> <3b41a19c-9f4b-4061-9f87-659361e099c2@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Thu, 9 May 2013 16:45:14 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="fba3415ba68d85d643935af2f52f0b4b"; logging-data="21423"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19fG8Vx23qf8utfhVeUVPgHHgXofaUWEnc=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 In-Reply-To: <3b41a19c-9f4b-4061-9f87-659361e099c2@googlegroups.com> Cancel-Lock: sha1:Jx4IKqkxtcgQBjVkHsnI5Her+SQ= Xref: csiph.com comp.lang.java.programmer:23967 On 5/9/2013 9:14 AM, RVic wrote: > Well, apparently it IS being set, in /etc/init.d for that file I > see: --------------------------------- JVM_PARAM='-verbose:gc > -XX:+PrintGCDetails -Dcn.instance=router -Dcn.env=mirror' > > export JVM_PARAM > > # Call the common script /home/cnadmin/scripts/tomcat/tomcat.sh $1 > ---------------------------------------------------- > > So I guess it is being set here. I shall go back to the drawing > board, apparetnyl what I believed to be the problem may not be the > problem. Thanks for your help guys. RVic > Does this actually do anything? I don't think the jvm will treat the JVM_PARAM variable in a special way. Google at least didn't seem to come up with anything. So unless the JVM_PARAM is on the invocation line to tomcat.sh, I don't think anyone is going to see these values. You might try modifying the tomcat.sh script to dump its parameters to a file where you can see them, just to verify what's being passed in to the tomcat instance. There might be a better way too; maybe the ps command can be induced to dump the command line of a running process.