Can I attach JProfiler to externally started applications?
Profiling externally started applications is generally done by making a copy of the start script (if there is one) and adding the necessary command line parameters (see the help page remote session invocation table) to start the application under the control of JProfiler’s agent library. When running the modified startup script, the applications main class is started only after a connection is made with JProfiler’s GUI frontend on a specified port. In JProfiler’s GUI frontend, you create a remote session which connects on the same port and start it. After a connection is established, profiling continues just as with local sessions.