I want to profile an .exe-wrapped Windows Service that is written in Java EE and is deployed on JBoss 4.2.2 GA, which logs on as Local System. Wrapping was done by using the Tanuki Java service wrapper. My profiler of choice is jProfiler, which cannot detect the aforementioned service. So far, my question seems to be answered here, but to change the logon account of the service stops its proper functionality.
Is there a workaround on jProfiler or another profiler which could I use to profile this service?
You can add VM parameters to a Tanuki service wrapper in wrapper.conf like this:
wrapper.java.additional.n=...
To get the VM parameter for profiling, execute Session->Integration Wizards->New Remote Integration in the JProfiler GUI.
You can also use the "quick attach" functionality in JProfiler to profile a Windows service that is already running. JProfiler will list all services that are running on your local machine when you activate the "Show services" button in the top right corner of the attach dialog.