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.0
feature 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
installUtility
and 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.0
feature and arequestTiming
element toserver.xml
(or aconfigDropin
override) and change the attributes as needed. For example:<featureManager><feature>requestTiming-1.0</feature></featureManager> <requestTiming slowRequestThreshold="10s" hungRequestThreshold="10m" sampleRate="1" />
slowRequestThreshold
is the main setting and should generally be set to your maximum expected response time.hungRequestThreshold
is not required and defaults to 10 minutes. It additionally gathers thread dumps when exceeded.- Ideally, performance test
requestTiming
and increasesampleRate
if 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
TRAS0112W
messages. - Upload the following files:
logs/messages*log
logs/console.log
logs/ffdc/*
For background, see WebSphere Liberty Request Timing.