java - ThreadDump Collection from Tomcat -


i trying threaddump of jvm. used top command , ps aux find process id , user of pid [which root].

so run following command threaddump

sudo -u root jstack -f pid > threaddump1.txt

but getting following exception---------------------------------

error attaching process: doesn't appear hotspot vm (could not find symbol "ghotspotvmtypes" in remote process)

sun.jvm.hotspot.debugger.debuggerexception: doesn't appear hotspot vm (could not find symbol "ghotspotvmtypes" in remote process)**     @ sun.jvm.hotspot.hotspotagent.setupvm(hotspotagent.java:411)     @ sun.jvm.hotspot.hotspotagent.go(hotspotagent.java:305)     @ sun.jvm.hotspot.hotspotagent.attach(hotspotagent.java:140)     @ sun.jvm.hotspot.tools.tool.start(tool.java:185)     @ sun.jvm.hotspot.tools.tool.execute(tool.java:118)     @ sun.jvm.hotspot.tools.jstack.main(jstack.java:92)     @ sun.reflect.nativemethodaccessorimpl.invoke0(native method)     @ sun.reflect.nativemethodaccessorimpl.invoke(nativemethodaccessorimpl.java:62)     @ sun.reflect.delegatingmethodaccessorimpl.invoke(delegatingmethodaccessorimpl.java:43)     @ java.lang.reflect.method.invoke(method.java:497)     @ sun.tools.jstack.jstack.runjstacktool(jstack.java:140)     @ sun.tools.jstack.jstack.main(jstack.java:106) 

any or suggestion or input appreciated.

ok. figure out problem. tomcat running under docker. have run commands within docker. followed below mentioned steps.

1. access docker 2. find pid of tomcat running command within docker. 3. run command /<oracle path>/bin/jstack pid >> filename 

Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -