wiremock: Slow response times
Hi. We are seeing slow response time both in local machines and CI, which makes our tests fail in some cases.
I’m attaching a reproducer for a simple test for which I always see response times higher than 500ms and up to 900ms. It just uses the default WireMockServer
except for DYNAMIC_PORT
. Any chance you can reproduce this? Otherwise, any ideas on what could be causing this for such a simple case?
WireMock version: 2.29.0
Reproducer: reproducer.zip
Java Flight Recorder profiling data: WireMockTest_2021_07_19_130207.jfr.zip
Issue seen in:
- macOs Big Sur with GraalVM CE 21.1.0
- macOs Sierra with OpenJDK 11
- Docker CentOS based image (CI)
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 17 (10 by maintainers)
Commits related to this issue
- Small performance improvement - ensure that the ObjectMapper used by Json is initialised on the main thread and inherited by worker threads. See #1569. — committed to wiremock/wiremock by deleted user 3 years ago
Sorry, typo. I meant #1436.