Open stanosamek opened 1 year ago
I'm also seeing some memory pressure issues when running on k8s via the helm chart, the memory usage looks very leaky.
@stanosamek @tstonely-mt did you ended up finding a solution? We're seeing the same problem here...
@thomasjoulin Yes, in the end we ended up setting the memory config properties. I think it was the two below. Memory usage stabilised after that :+1:
# maximum number of expectations held in the in-memory ring buffer
mockserver.maxExpectations=1000
# maximum number of log entries to hold in memory, this include recorded requests, expectation match failures and other log entries
mockserver.maxLogEntries=5000
Hi,
we have a problem with OutOfMemoryError: Java heap space after loading expectations and running some tests. We are using mockserver in version 5.13.2 and we are running server with helm chart on Kubernetes. We were trying to fix issue with switching storing expectations into file system with parameter mockserver.persistExpectations=true but mockserver is still using approx. 600MB and failing on heap space.
We were also trying to add jvmOptions into values.yaml. In deployment we can see environment property JVM_OPTIONS.
How can we increase JVM heap for mockserver?
Thank you