Hide Forgot
Description of problem: Install EAP 6.4.8 as Windows 2008 service and set it for JFR according to link[1], start it as service, whoever JFR didn't work. ------ [1]https://access.redhat.com/solutions/662203 Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. install EAP 6.4.8 on Windows 2008. 2. configure EAP to use JFR by link[1] above and then install EAP as service. 3. start EAP service, then run command "jcmd $JBOSS_PID JFR.start" to see the error. 4. or run command "jmc", the EAP will not show in the list. If change to SYSTEM role according to link[2], the list only show PID number along with a "!" sign, and it can't be open. 5. If use pstools command like "psexec.exe -s jcmd $JBOSS_PID ..." it didn't work either. ------------------------- [2]https://blogs.technet.microsoft.com/askds/2008/10/22/getting-a-cmd-prompt-as-system-in-windows-vista-and-windows-server-2008/ Actual results: Error for step 3th above: ~~~ com.sun.tools.attach.AttachNotSupportedException: Insufficient memory or insufficient privileges to attach at sun.tools.attach.WindowsVirtualMachine.<init>(WindowsVirtualMachine.java:64) at sun.tools.attach.WindowsAttachProvider.attachVirtualMachine(WindowsAttachProvider.java:69) at com.sun.tools.attach.VirtualMachine.attach(VirtualMachine.java:214) at sun.tools.jcmd.JCmd.executeCommandForPid(JCmd.java:139) at sun.tools.jcmd.JCmd.main(JCmd.java:128) ~~~ Error for step 4th above: ~~~ [3]http://www.stevenschwenke.de/couldNotOpenPerfMemory ~~~ Error for step 5th above: ~~~ jcmd exited on WIN-xxxxx with error code 0. ~~~ Expected results: JFR will work as expected. Additional info:
Dear Experts, Can we have any info or plan about this issue? Best Regards, Zhang Xu
Closing. This is completely unrelated to EAP. This is a Java/OS level issue. These Java utilities that connect directly to the JVM must be run as the same user that Java is running as.