Hi There @Tom,
I'm currently launching a Wiremock pod (release 2.27.2) in a Kubernetes cluster and observing heap usage growing till it get's the following errors:
Exception in thread "Connector-Scheduler-5a9f4771-1" java.lang.OutOfMemoryError: Java heap space
Resources configurations are these:
Memory Limits: 2 GB
CPU Limits: 2 cores
Wiremock flags are the following ones:
--container-threads 1200 --jetty-acceptor-threads 20 --global-response-templating --async-response-enabled --async-response-threads 50 --no-request-journal
And tuned Java Options are the following:
-server -XX:+PrintFlagsFinal -Xms750M -Xmx1024M -Xss256k -XX:MaxMetaspaceSize=256m -XX:CompressedClassSpaceSize=32m -XX:ReservedCodeCacheSize=32m -XX:NativeMemoryTracking=summary -XX:+UseG1GC -XX:+UseStringDeduplication -XX:MaxGCPauseMillis=750
I have only 3 mappings enabled on this wiremock instance, but each one of them are using a specific transformer that generates responses body randomly.
Can you please help me out to understand what can be the cause for this java heap to get without any free space?
Can this be related with the way i'm implementing my transformers or with the configurations i'm using?
Grafana dashboard with JVM metrics is attached.
Thanks,
Nuno Marcos