The statistics log collects information about memory usage, active sessions, persisted (or swapped) sessions and the number of times models run.
Server statistics log files grow rapidly and multiply quickly when statistics logging is enabled. The maximum file size for this log file and all others is governed by the Log File Max Size setting in the logging.properties
Log entries that begin with log.serverStat
contain information about serverStatus
Log entries that begin with logging.serverStats.logBy
have meanings similar to their access log counterparts.
Entries in the properties file determine what information is logged. The logging.ServerStats
section of the WEB-INF/config/logging.properties
file can have any number of entries. Each entry begins with log.serverStats.criterion
and has the following attributes to determine what is logged.
- Item For example:
- Comparator For example:
- Threshold For example:
- Message For example:
log.serverStats.criterion.tooManySessions.message="Session threshold reached"
- flushImmediately For example:
An item is one value from the following list:
Number of sessions that were accessed since the last update. Snapshot.ErrorsLogged
Number of ERROR level events generated. The error details are normally recorded in the event log. Accumulated.MemFree
Total current Java heap memory free in bytes. Snapshot.MemInUse
Total current Java heap memory in use in bytes. Snapshot.MemTotal
Total Java heap size in bytes. Snapshot.ModelCacheEntries
Number of models currently in cache. Snapshot.ModelCacheRegenEntries
Number of regenerated web applications currently in cache. Snapshot.OutputCacheHits
Number of hits to cached output data (when the Cache Control builder is used). Accumulated.OutputCacheMisses
Number of misses to cached output (how many times output data was put in cache). Accumulated.PeakSessions
Maximum number of sessions in memory since IBM® WebSphere® Portlet Factory servlet started. Accumulated.Regens
Total number of requests for regenerated models. Accumulated.RegensFromCache
Of the total Regens requested, the number that were obtained from cache. Accumulated.RestoredSessions
Number of sessions recovered from failover. Accumulated.Sessions
Current number of user sessions in memory. Sessions stay in server memory until a logout or until the session expires due to inactivity. It includes web application sessions. Snapshot.SevereErrorsLogged
Number of SEVERE level events generated. Accumulated.WarningsLogged
Number of WARNING level events generated. Accumulated.WebAppJSPSourceWritten
Number of times a generated JSP source page is written to disk. This happens just before a page is rendered for the first time. Accumulated.WebAppMethodClassWritten
Number of times a generated method class for a web application is written (to genjava folder) and compiled. Accumulated.WebAppRequests
Number of requests to web application models.WebAppsInSessions
Total number of model instances held in all sessions in memory. Snapshot.WebAppSOAPRequests
Similar function as WebAppRequests, but it is specifically for incoming SOAP requests.
A comparison operator is one of the following values:
(greater than or equal to)
(less than or equal to)
A message is text that describes the logged event.
Indicates to write the log immediately rather than queue it for output.
Parent topic: IBM WebSphere Portlet Factory properties files: wpf7