Portlet Factory, Version 6.1.2
Statistics Log Properties Sample Entries
These are sample entries for the Statistics Log properties. The first entry loads two criteria, including tooMuchSessions.
File: WEB-INF/config/logging.properties Entry: logging.serverStats.criteria Sample Value: tooMuchSessions,tooMuchModelsLoadedThe first attribute entry sets flushImmediately to true.
File: WEB-INF/config/logging.properties Entry: logging.serverStats.criterion.tooManyModelsLoaded.flushImmediately Sample Value: trueThe second attribute entry defines the source of the data being monitored.
File: WEB-INF/config/logging.properties Entry: logging.serverStats.criterion.tooManySessions.item Sample Value: SessionsThe third attribute entry defines the comparator to be greater than.
File: WEB-INF/config/logging.properties Entry: logging.serverStats.criterion.tooManySessions.comparator Sample Value: >The fourth attribute entry defines the threshold value as 5000.
File: WEB-INF/config/logging.properties Entry: logging.serverStats.criterion.tooManySessions.threshold Sample Value: 5000The fifth attribute entry defines the text message to send to the log file.
File: WEB-INF/config/logging.properties Entry: logging.serverStats.criterion.tooManySessions.message Sample Value: "Too many sessions opened"Each item in serverStats log will be checked to see if it meets the requirement of a filter. There may be more than one criteria that is satisfied. For each criterion met, a warning log is created and sent to the attached log drivers.
For example, one poll of the IBM® WebSphere Portlet Factory servlet receives the following statistics:
CacheRegs: 500 ModelsLoaded: 7000 Sessions: 6000The WebSphere Portlet Factory servlet will store all of these statistics in a log object and send it to the drivers defined in log.serverStats.default.*. The resulting log satisfies two criteria: tooMuchSessions and tooMuchModelsLoaded, so two warning logs will be created and sent to the drivers defined in log.serverStats.criterion.tooMuchSessions and log.serverStats.criterion.tooMuchModelsLoaded.
Parent topic: Statistics log.properties file entries and format
Library | Support |