Re: jststd configuration in catalina.sh for GC on Tomcat

2013-11-13 Thread N.s.Karthik
Cris

If you must do it from catalina.sh, then please put it instead in
setenv.sh

* I presume /tomcat/bin/setenv.sh*

Thx for the same.  

Need a additional Info settings.

 jstsatd execution (start / stop) needs to be in parallel to the Tomcat
start/stop... How this configure the same ? 

with regards
karthik



--
View this message in context: 
http://tomcat.10.x6.nabble.com/jststd-configuration-in-catalina-sh-for-GC-on-Tomcat-tp5007596p5007861.html
Sent from the Tomcat - User mailing list archive at Nabble.com.

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



Re: jststd configuration in catalina.sh for GC on Tomcat

2013-11-13 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Karthik,

On 11/13/13, 4:37 AM, N.s.Karthik wrote:
 Cris
 
 If you must do it from catalina.sh, then please put it
 instead in
 setenv.sh
 
 * I presume /tomcat/bin/setenv.sh*
 
 Thx for the same.
 
 Need a additional Info settings.
 
 jstsatd execution (start / stop) needs to be in parallel to the
 Tomcat start/stop... How this configure the same ?

AIUI, jstatd needs to be running to access the JVM. I'm not sure it
matters when it starts, and I'm not sure why you'd ever bother
stopping it. Shouldn't it be running all the time?

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

iQIcBAEBCAAGBQJShCv6AAoJEBzwKT+lPKRYtMAP/j6Zjm49MHUDTeOnIyaiEcgJ
iyg5jI1QgTz2AvAUSAeLqK3E9sV5x+BC7RNoi/+2SOcumP4J2sE7ajb6EF9wL01s
gO7iQP9GwowxrBKKl/bZR4eqwsAsrsb3+TYroRNmU5S3h+qoU4DVWD6kOHDoYXJl
KJycFhJRlXZmOxDPTctC0a8qlI6eIp0piNW9xDvtKXx7LmoKJL004kgkdQdZg8Md
n3QUUvbakxR/RpoJKEx6Dv4cJQ5H/IVcHaUf1BQMHCmz1YjxbHbh63/4n8Iu3LtR
gAxeL0OevmxmXQX8nCN5SkRtIpONuQDrCknnIu1KYzxYxUP8RgOdBQDtF//1f5ZV
xaYtJCDPMTCALHacjv9vEznW1ljFcgLAyeziwtghzvYOj7fcUVRve/qsNWFsfqi5
MnHp/AKxNAltapxmJ6NgRCB2bm8sQXrX3k5q0nVjv2YloqQlYKQ5e2dxjDayUGBQ
Emk44woZOYhKWEN5wdKtJCV5pfmgeBam/g0RIVNc1E+Ig4kYvzvd6S3qGsqzIM9i
E7p3Euswzeh5l9XjFklSYXVwCGobWMtHusW5eiSATHMP5TMFJsuKl9Qk/lnJKRxJ
bDhHObKAObFeapsuoIV4jlsBbzy7OWPgpXNKhEnBWNC+65KV4kpYg7VkBa0pNXLe
teFw23w99wOEyFYhqyWc
=tAn0
-END PGP SIGNATURE-

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



Re: jststd configuration in catalina.sh for GC on Tomcat

2013-11-08 Thread Christopher Schultz
-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