-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Karthik,

On 11/8/13, 3:34 AM, N.s.Karthik wrote:
> server Jdk1.6.20 Tomcat : 6.0.26 o/s : suse10

Upgrade. Everything. Seriously.

> client visual vm 1.3.5 O/s windows jdk :1.6.20
> 
> I need to use the Visual VM GC to monitor remote JVM's GC
> activity.

Do you absolutely require Visual VM, or can you use any JMX client?

> this requires the following
> 
> "jstatd -J-Djava.rmi.server.hostname=192.168.4.32 
> -J-Djava.security.policy=/tmp/KARTHIK/jdk1.7.0_40/policy/tools.policy"

Note
> 
that you can connect via JMX without using jstatd. Do you really
need jstatd?

> currently i need to execute this outside the TOMCAT env, but  if
> the same could be configured from within "Catalina.sh"
> 
> Can this be  configured in "catalina.sh" ,if yes HOW ???

I've never used jstatd, but it seems like it should be run one-time on
a server hosting any number of JVM processes. I don't think you want
to run this kind of thing from catalina.sh, unless you have a
complicated procedure to check to see if it's already running, etc.

If you're going to run jstatd on your server, I would recommend that
you run it on startup using /etc/init.d or whatever and leave it
running. Or, even better, use another script to launch your Tomcat
instance: first, it checks for jstatd and runs it if necessary, and
then it calls catalina.sh. Now you call startup-my-jvm.sh instead of
catalina.sh.

If you must "do it from catalina.sh", then please put it instead in
setenv.sh, because Tomcat upgrades won't conflict with whatever you
put in there.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSfQL4AAoJEBzwKT+lPKRYHOQQALak1jl2335Y7VL/bAJl8ULL
WIuhFDdqsceD17afAB3FiLEXFuCpyszOo5rsWHr+C6VgMp7CIdzwPIqaznJT3XMx
B1pJGB4WVBlpXz/bBgL7lUoAWXEEwO5BC4ixfuPeArKRaPd+QC5M2OQnOzdM7+fZ
uwM9vHErBrkv12KHDXCxUfSWlTbwIzMTLV6vbjZe/IKfL6s3+JZsyMxIHV5r2ElD
KbeeyrDIDZ1RuVomtN9WS/5s1Ah9wqDMcjphaCD8/ci5eXbPJRJQiE6w9G7kWshg
D+wVB66dWEp5+b2BclT/tsEavI4kg/niBdrJv6QwmUcfngNxm+ISeB94ujefR8pt
ujif8ppySSmRKZ50hU59nu2c09JeJyozq28fAhc9Tqj1FoZ2iKN85PRlkalczvEb
5PaAAK0VzLd7+nw+o+dFyjlyV9aLWb117d0LgyBbhDuMCGByZRNK4CGxFv6jFK4m
Ya/VkF2H6siP4N7ELe5ejcuC98p9xMaGlUJoCrqWKViwtHmsXA4QkFS60G6Nr31J
WEpjOS4hJjZDPyVgXZK7emRoRU6RG0NUPo+ccwshhK2vVjhU15WCAFQqo5VqE9eh
o6Apwpau2/fLO19e5mEw9LNXvOw3Lw3Pwfu3CP5NaYN35spS3D4UxHgRvSovdxGF
VYiGgedJ5QIQcogmgDzJ
=S7UH
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to