1
votes

I have scheduled Java Agents. I would like to use a profiler to monitor the JVM to see how the server is performing.

When developing and testing, I run the agent from my Domino Designer from my workstation.

The workstation and server have a Java JRE installed.

Domino and Notes appears to have its own JVM directory.

Tools like VisualVM seem to connect to the computers JVM, how would I use something like VisualVM to monitor the JVM used to run xpages and agents?

1

1 Answers

0
votes

Based on this QA and my attempts many years ago I think you can't do it your way.

Edited to reflect comments...

Anyway, I was able to profile XPages indirectly via heap monitoring or NSD dumps (that's the extreme - for freezing code).

For XPages, take a look at this project XPages Toolbox. For Java Agent, try native agent profiler:

http://searchdomino.techtarget.com/tutorial/How-the-Agent-Profiler-tool-improves-Notes-Domino-performance

http://www.ibm.com/support/knowledgecenter/SSVRGU_9.0.0/com.ibm.designer.domino.main.doc/H_PROFILING_AGENTS_AND_WEB_SERVICES_STEPS.html

In worst case, try to debug your agent to get a picture of collections it iterates or paths it goes in the code execution. Just be aware - remote debugger tends to attach to one of two JVMs - agent manager's or http's task. Be sure it attaches to the right one.