|
From: Hazelton, P. <PHa...@fn...> - 2004-10-27 10:11:21
|
Hi If you've seen the previous mails on this topic and want the solution, I've worked out how to use these tools together. Here you go: Once a "jvmstat enabled" JVM is started it writes a HotSpot "perfdata" file to the temp directory of the user who started the JVM. The file's name is the process id of the JVM. When you run the jvmps or one of the other jvmstat instruments they seem to look for this file, in the temp directory of the user running the jvmstat instrument. The temp directory is determined by the TMP environment variable. In my case jvmstat was looking for the in C:\Documents and Settings\my_user\Local Settings\Temp. When I start the JVM normally the "perfdata" is in the directory, but using Wrapper it goes to C:\WINNT\Temp. Thus, the problem is not that Wrapper is not starting the JVM in a monitorable mode, but rather that the jvmstat tools just can't locate the "perfdata" left by the JVM. So, the simplest fix for this is changing the TMP environment variable to point to C:\WINNT\Temp before starting the jvmstat tools. Obviously with this information you could work out different, more elegant, ways of solving the problem. Cheers Paul my config: Windows 2000 SP4 J2SDK 1.4.2_06 jvmstat 2.0_b11 Wrapper 3.1.2 _________________________________________________________________________= __________________________ The views expressed in this email are, unless otherwise stated, those of = the author and not those of the FirstRand Banking Group an Authorised Financial Service Provider o= r its management. The information in this e-mail is confidential and is intended solely for= =20the addressee. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, any disclosure, copying, distribut= ion or any action taken or=20 omitted in reliance on this, is prohibited and may be unlawful. Whilst all reasonable steps are taken to ensure the accuracy and integrit= y of information and data=20 transmitted electronically and to preserve the confidentiality thereof, n= o liability or=20 responsibility whatsoever is accepted if information or data is, for what= ever reason, corrupted=20 or does not reach its intended destination. =20 ________________________________ |