Subject: Memory Question (what tools to use)
Q: What are the best 2008 tools/techniques for monitoring memory usage by the Domino Server and the various server processes (especially router and http). Also, how is memory allocated for the JVM, through the Server or as a separate process like the other server tasks?
A: By 2008, I assume you mean Windows 2008 (the Operating System)? To my knowledge, the techniques we use for troubleshooting memory usage on Windows have not changed significantly for Windows 2008.
The best tools tools to use are:
1). Domino diagnostics such as Domino stats, memory dumps, NSD (this is most helpful to Support, but we have some tooling on the way to assist with analysis in this area)
2). Perfmon stats (resists the temptation to use Task Manager; just don’t do it). With Perfmon, you want to use the Process Object, the Private Bytes and Virtual Bytes counters, and log the instance you are interested in (like http or router).
Private Bytes indicates how much memory has been allocated for private use, whereas Virtual Bytes shows all memory usage (private, reserved, shared). Keep in mind that Domino uses ALOT of shared memory, so Virtual Bytes is the real key here. If you are getting past 1.6-1.7 GB, then you have problems (for Windows 32 bit specifically).
As far as JVM memory usage, the JVM is loaded under the process that uses it (for instance AMGR, HTTP, etc), so it is not a separate process, but must run inside the Domino process that invokes it. This can definitely lead to problems if you set the JVM MAx Heap size too big. Even if the JVM doesn’t use the memory (RAM or pagefile), it will still reserve the space from the address space, which impacts all the other activities that need to happen for a given process, for example HTTP.
Some resources that discuss Perfmon and Task Manager:
Title: Domino Server Memory Usage Drops when Minimizing the Server Console
Doc #: 1109688
URL: http://www.ibm.com/support/docview.wss?rs=899&uid=swg21109688
Title: Using Windows Task Manager to determine Domino memory consumption
Doc #: 1230851
URL: http://www.ibm.com/support/docview.wss?rs=899&uid=swg21230851
Title: Domino Server Performance Troubleshooting Cookbook
Doc #: 1234550
URL: http://www.ibm.com/support/docview.wss?rs=899&uid=swg21234550