Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Error while trying to run visualgc  RSS feed

 
Raja Mirrah
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Raja Mirrah
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help me as soon as possible. I need the solution very badly...... Please help


Warm Regards,
 
Kees Jan Koster
JavaMonitor Support
Rancher
Posts: 251
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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+.

 
Raja Mirrah
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.......
 
Francois Nadeau
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Raja Mirrah
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!