Request Metrics is a tool which is part of Websphere Application Server which helps in tracking request flow and identifying the time spent by Request in major Websphere components.
Request Metrics can be enabled from AdminConsole of Websphere Application Server ,once enabled user can choose the components for which the request needs to be tracked and provide different levels of tracking. The Collected RequestMetrics data can be either saved to logs or can be redirect to Application Response Measurement Agents for offline analysis. Below is a snapshot of how RequestMetrics data will be available in logs
[7/21/12 11:51:40:812 GMT+05:30] 0000001c PmiRmArmWrapp I PMRM0003I: parent:ver=1,ip=184.108.40.206,time=1342851353875,pid=140,reqid=1,event=1 - current:ver=1,ip=220.127.116.11,time=1342851353875,pid=140,reqid=1,event=1 type=URI detail=/hitcount elapsed=125
The above message indicates that this particular request for hitcount has spent around 125 milliseconds and also contains other details related to the request.
There is also a filtering mechanism using which various filter's can be specified which helps in reducing the scope of request tracking and helps in optimizing performance. The Request tracking can be narrowed based on SourceIP,EJB Methods etc
Above all Request Metrics is an effective tool which can give important information regarding requests flowing inside Websphere Application Server. Please visit Websphere Application Server infocentre to obtain more information on RequestMetrics.