Memory usage logging
If configured in file log4j2.xml, Guidewire logs contain memory usage messages that provides information on the use of memory by the JVM. To enable memory usage logging, you must set parameter MemoryUsageMonitorIntervalMins in config.xml to a value other than the default of 0.
A memory usage message looks similar to the following:
serverName 2016-04-09 16:44:14,423 INFO Memory usage: 80.250 MB used, 173.811 MB free, 254.062 MB total,
2048.000 MB max
The following list describes the different types of information that you see in a memory logging message.
Memory usage |
Meaning |
|---|---|
|
Amount of memory allocated to objects. This includes memory for the following memory types:
|
|
Amount of un-allocated memory |
|
Amount of memory that the JVM process reserves from the operating system. |
|
Amount of maximum total memory that PolicyCenter allows the JVM to use. |
It is common for a server to use up the maximum amount of memory fairly quickly, so that used and total are at
or near the max value. This indicates normal operation. If the server needs more memory, it triggers garbage
collection to free up the memory used by stale objects.
