WebSphere Liberty requestTiming Recipe
WebSphere Liberty requestTiming
gathers details on HTTP requests exceeding a configured threshold and
generally has an overhead of less
than 4%.
- The requestTiming-1.0feature must be installed. Verify withproductInfo; for example:$ wlp/bin/productInfo featureInfo | grep requestTiming requestTiming-1.0- If it's not installed, you may install it with installUtilityand then restart Liberty; for example:wlp/bin/installUtility install requestTiming-1.0
 
- If it's not installed, you may install it with 
- Add the requestTiming-1.0feature and arequestTimingelement toserver.xml(or aconfigDropinoverride) and change the attributes as needed. For example:<featureManager><feature>requestTiming-1.0</feature></featureManager> <requestTiming slowRequestThreshold="10s" hungRequestThreshold="10m" sampleRate="1" />- slowRequestThresholdis the main setting and should generally be set to your maximum expected response time.
- hungRequestThresholdis not required and defaults to 10 minutes. It additionally gathers thread dumps when exceeded.
- Ideally, performance test requestTimingand increasesampleRateif testing shows an unacceptable overhead though this may cause missing some slow requests.
 
- If dynamic
configuration updates are enabled (the default), then saving the
configuration will enable requestTiming; otherwise, restart Liberty.
- Reproduce the problem and confirm the presence of
TRAS0112Wmessages.
- Upload the following files:
- logs/messages*log
- logs/console.log
- logs/ffdc/*
 
For background, see WebSphere Liberty Request Timing.