I am really confused about: In my windows 2008r2, I have a windows service, in fact it's a java progress running as SYSTEM user. Now, I use Jstack rawly to the the service. But it occur error :
insufficient memory or insufficient privilege to attach
But if I use Jstack's options -F , it can work finely. I view the jdk's source, It uses a class BugSpotAgent to finish above.
I want to know the root cause I can't use Jstack rawly, is it the SYSTEM user privilege problem? I also have try to use PsExec.exe(a tool) to run my Jstack rawly(That means I will use SYSTEM user to run Jstack), but it still can't work.
Can you help me?
Thanks & Regards!