Java: jstat: not working, how do I run it?

Hello Experts,

having problems running jstat.

here is what I am doing:

jdkDir> jstat -gc processPID 250 2

but it keeps saying that the PID is not found or it throws a java exception. I confirm, via task manager (windows) tomcat's PID and it is running. Yet, I can not run jstat.

can you experts help?

thx,

Regards,
epifanio67Asked:
Who is Participating?
 
ksivananthConnect With a Mentor Commented:
check the version of java and where the jstat is enabled!
0
 
epifanio67Author Commented:
got it... thk u!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.