The Server Stats viewer is a simple model for viewing server stats log files. Server stats logs are recorded on the server and take a snapshot every five minutes of activity within a Web Experience Factory WAR. For more information on server stats and other performance-related logs, see this information on the Web Experience Factory wiki: http://www-10.lotus.com/ldd/pfwiki.nsf/dx/performance-best-practices#Use+WebSphere+Portlet+Factory+built+in+logging+and+diagnostic+tools+to+look+at+performance+related+information
A screenshot of the model is shown below. By default it will show the server stats for the WAR where the viewer is running, but you can enter a different filename and click the "Update" button.
You can customize the view by editing the model. One simple customization you can make is to modify which columns are visible. This is done in the Rich Data Definition builder, by setting the "Hidden" checkbox when you select one of the fields.
The associated Java class (StatsReader.java) does the work of reading and parsing the log file, and generating XML data for all the log entries. It puts data in the format defined in the associated schema file (serverStats.xsd). Currently the code will only create a row in the data for log entries with a non-zero number of requests.
To download the sample, click on "Attachments" below and select ServerStatsViewer.zip. To install the sample into a Web Experience Factory project, right-click on the project and select Import / WebSphere Portlet Factory Archive.