java version "1.6.0_20"
Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) 64-Bit Server VM (build 16.3-b01, mixed mode)
ubuntu 10.04 LTS 64-bit
You must invoke jstack as the user who started/is running the given process.
The above error occurs if you invoke jstack as "root"/via sudo (Has Super Cow
Powers but is still the wrong user)
I guess you tried the "-F" option, because it didn't work without it.
Therefore, you tried the sledgehammer :). "-F" IS for a hung process.
If you want to create a thread dump of e.g. tomcat6 (installed from
ubuntu package repo) you must type the following:
"sudo -u tomcat6 jstack 8812"
Executes jstack as user tomcat6, who is running the service tomcat6,
assuming tomcat's pid is 8812.
This is not an ubuntu bug, it's - say - some sort of usability issue
with this jstack thing. Blame Sun/Oracle . . .
** Changed in: sun-java6 (Ubuntu)
Status: New => Invalid
--
jstack thread dump error: get_thread_regs failed for a lwp
https://bugs.launchpad.net/bugs/597098
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs