...
Code Block |
---|
Process: service:jmx:rmi:///jndi/rmi://kb-test-adm-001.kb.dk:8144/jmxrmi Username: monitorRole Password: test |
...
VisualVM (advanced)
TPTP is at advanced profiling tool for Eclipse
Install the TPTP Eclipse plugin though the normal Help -> Install New Software.... The plugin is part of the default Eclipse update site
Install the TPTP Agent controller on the machine with the process, which needs to be profiled. You might need to change the default ports used 10002, 10003, 10005 and 10006, these are defined in config/serviceconfig.xml. Start the Agent Controller.
Start the application with the following code snippet added to the java command
Code Block |
---|
'-agentlib:JPIBootLoader=JPIAgent:server=controlled;HeapProf:allocsites=true'
|
eg. the last line ine the start_HarvestJobManager becomes
Code Block |
---|
java \-Xmx1536m '-agentlib:JPIBootLoader=JPIAgent:server=controlled;HeapProf:allocsites=true' \-Ddk.netarkivet.......
|
Define a profiling configuration under Run -> Profile configurations.
...
VisualVM is a very powerful and easy to use profiling tool.
Setup
- Download the newest Visual from: https://visualvm.dev.java.net/ (VisualVM is actually part of Sun's JDK distribution, but usually in a older version).
- Start VisualVM as the user running the application to profil.
- VisualVM displays all the running processes for the current user in the left menu. Open the relevant process and start investigating .