Forums Register Login

Error while trying to run visualgc

+Pie Number of slices to send: Send
Hi All,

I am gettting the following error when i try to run visualgc in Solaris.

visualgc 5440
Exception in thread "main" java.lang.NoClassDefFoundError: java/lang/StringBuilder
at sun.jvmstat.monitor.VmIdentifier.canonicalize(VmIdentifier.java:144)
at sun.jvmstat.monitor.VmIdentifier.<init>(VmIdentifier.java:181)
at com.sun.jvmstat.tools.visualgc.Arguments.<init>(Arguments.java:185)
at com.sun.jvmstat.tools.visualgc.VisualGC.main(VisualGC.java:42)


Note i have set JVMSTAT_JAVA_HOME, JVMSTAT_HOME,DISPLAY variable for X windows.

Can any one tell me what could be the problem?

Your early response is highly appreciated.

Warm Regards,
Raj
+Pie Number of slices to send: Send
Please help me as soon as possible. I need the solution very badly...... Please help


Warm Regards,
+Pie Number of slices to send: Send
Dear Raja,

What version of Java are you runngin visualgc in? Sounds like you are running it in Java 1.4 and looks like you need 1.5+.

+Pie Number of slices to send: Send
Hi Kees Jan Koster,

I am running in Java1.5 only......

these are all the parameters which i have set before executing .....


JVMSTAT_JAVA_HOME=/opt/bea923/jdk1.5.0_17
JVMSTAT_HOME=/home2/ctp/jvmstat



I am running the visualgc in Java1.5 only.......
+Pie Number of slices to send: Send
Hi Raja,

Just to be 100% sure, can you tell us what happens when you run

in the same window that you are executing your program?

Cheers.
+Pie Number of slices to send: Send
i am interested in monitoring a java process and the name is rules7

so in solaris i found the process by giving the following command


ps -ef|grep rules7
root 23813 23812 0 Jul 30 ? 0:00 /bin/sh ./bin/startManagedWebLogic.sh rules7
root 23812 1 0 Jul 30 ? 0:31 java -Dlogid=rules7 -Dlogname=/ctp02/log/rules7/ctperr -cp :/opt/oracle/10.2.0/
ctp 29981 20573 0 03:18:23 pts/6 0:00 grep rules7
ctp 23863 23821 0 Jul 30 ? 12:12 /opt/bea923/jdk1.5.0_17/bin/sparcv9/java -Dweblogic.Name=rules7 -server -Xms512



Here i want to monitor the process 23863 which is running under the user name ctp (Note i have logged in as ctp only)

when i run visualgc with process id, i get the following error.




/home2/ctp/jvmstat/bin
$ visualgc 23863
23863 not found
$





Can anyone tell me what could be the problem?

Note: visualgc is working for one sample program which i ran.

Warm Regards,

Raj
eat bricks! HA! And here's another one! And a tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2238 times.
Similar Threads
VisualGC help
Exception in thread "main" java.lang.StackOverflowError
How to read excel file of 2MB and having around 200 sheets
can't run from the command line to save life
Write and Update CSV files
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 23:59:38.