Skip to content

Commit

Permalink
Remove variable usage for requestTiming
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Grigorenko <[email protected]>
  • Loading branch information
kgibm committed Oct 31, 2022
1 parent a00d0f7 commit fd28345
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
3 changes: 0 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@
<liberty.var.HTTPS_PORT>9443</liberty.var.HTTPS_PORT>
<liberty.var.MAX_TRACE_SIZE_MB>100</liberty.var.MAX_TRACE_SIZE_MB>
<liberty.var.MAX_TRACE_SIZE_COUNT>2</liberty.var.MAX_TRACE_SIZE_COUNT>
<liberty.var.MAX_REQUEST_SECONDS>60</liberty.var.MAX_REQUEST_SECONDS>
<liberty.var.HUNG_REQUEST_SECONDS>300</liberty.var.HUNG_REQUEST_SECONDS>
<liberty.var.REQUEST_TIMING_SAMPLE_RATE>1</liberty.var.REQUEST_TIMING_SAMPLE_RATE>
<liberty.var.MAX_CONCURRENT_THREADS>100</liberty.var.MAX_CONCURRENT_THREADS>
<liberty.var.TRACE_SPECIFICATION>*=info</liberty.var.TRACE_SPECIFICATION>

Expand Down
9 changes: 3 additions & 6 deletions src/main/liberty/config/server.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@
<variable name="TRACE_SPECIFICATION" defaultValue="*=info" />
<variable name="MAX_TRACE_SIZE_MB" defaultValue="100" />
<variable name="MAX_TRACE_SIZE_COUNT" defaultValue="2" />
<variable name="MAX_REQUEST_SECONDS" defaultValue="60" />
<variable name="HUNG_REQUEST_SECONDS" defaultValue="300" />
<variable name="REQUEST_TIMING_SAMPLE_RATE" defaultValue="1" />
<variable name="MAX_CONCURRENT_THREADS" defaultValue="50" />

<!--
Expand Down Expand Up @@ -151,9 +148,9 @@
<!-- https://openliberty.io/docs/latest/slow-hung-request-detection.html -->
<featureManager><feature>requestTiming-1.0</feature></featureManager>
<requestTiming
slowRequestThreshold="${MAX_REQUEST_SECONDS}s"
hungRequestThreshold="${HUNG_REQUEST_SECONDS}s"
sampleRate="${REQUEST_TIMING_SAMPLE_RATE}"
slowRequestThreshold="60s"
hungRequestThreshold="300s"
sampleRate="1"
/>

<!-- https://openliberty.io/docs/latest/log-trace-configuration.html -->
Expand Down

0 comments on commit fd28345

Please sign in to comment.