I’m using wiremock for performance testing and I s...
# help
j
I’m using wiremock for performance testing and I see a degradation in the wiremock performance. I’m using the standalone version with those parameters: java -jar wiremock-standalone-3.2.0.jar --no-request-journal --disable-request-logging --async-response-enabled=true --container-threads=100 Any recommendations for optimalisation?
o
One would need to profile to say for sure what causes the degradation. 100 threads seems to be too much for the async responses
j
Decreasing the threads to 50 make no difference. What is the best way to profile wiremock?
o
JFR on Java 17, Async profiler on 11 or 17
But you can start from simpler tools just to capture what gets saturated.
j
I’m having a JFR file now, let’s see if I can find anything useful
o
Memory and blocked threads are the first things to check
j
Is see a couple of blocked threads with the function equalToXmlPatterns. No memory issues found…
Issue fixed, changing the selectors to regex instead of xpath and equalToXml 👍🏼
o
Well, equalToXml is likely to be heavy. How big the XMLs are?