we use wiremock with @ConnectWireMock annotation on open base class (kotlin) from which test classes inherit. With more tests fired, we get “OutOfMemoryError: Java heap space”.
The problem does not occur if we use QuarkusTestResourceLifecycleManager & @QuarkusTestResource on each class.
Perhaps there is something we forgot about regarding the configuration.
I have prepared a reproducer that illustrates the drastic drop in performance of gradle check between these two approaches.
On the 'main' branch: @ConnectWireMock, on 'with-lifecycle-manager' branch: @QuarkusTestResource -> https://github.com/Tincoquesse/quarkus-wiremock-oom-reproducer
Regarding documentation -> https://docs.quarkiverse.io/quarkus-wiremock/dev/index.html
we use wiremock with @ConnectWireMock annotation on open base class (kotlin) from which test classes inherit. With more tests fired, we get “OutOfMemoryError: Java heap space”.![Screenshot 2024-04-26 at 16 18 40](https://github.com/quarkiverse/quarkus-wiremock/assets/28060759/b689c8d2-090f-4e3a-8593-ed9099e4ba5d)
The problem does not occur if we use QuarkusTestResourceLifecycleManager & @QuarkusTestResource on each class. Perhaps there is something we forgot about regarding the configuration.
I have prepared a reproducer that illustrates the drastic drop in performance of gradle check between these two approaches. On the 'main' branch: @ConnectWireMock, on 'with-lifecycle-manager' branch: @QuarkusTestResource -> https://github.com/Tincoquesse/quarkus-wiremock-oom-reproducer
We use the following version of Wiremock:![Screenshot 2024-04-26 at 16 10 14](https://github.com/quarkiverse/quarkus-wiremock/assets/28060759/bb0a1bfa-dd16-4552-9902-6f601518b494)
Quarkus 3.9.1 Gradle 8.6 Java 21