Wiremock originating OutOfMemoryError: Java heap space in Kubernetes Cluster

706 views
Skip to first unread message

Bikram Panda

unread,
Nov 8, 2022, 8:43:33 PM11/8/22
to wiremock-user
Hi ,

We have close to 48 Mocks / mappings ( very simple ones) which are running on a single node over a Kubernetes Cluster for Performance Test purpose. 

Wiremock flags are as below

java -jar wiremock-jre8-standalone-2.33.2.jar

When we are putting a load for 25 users for a period of 30 mins ( 350 TPS) after 15 mins the POD is crashing showing Out of Memory issue.

Resources configuration- Memory Limits:- 4GiB

Is there any way we can fix this.

Appreciate your help on this


Screenshot 2022-11-07 at 16.33.13.png

snegithan vikram

unread,
Nov 9, 2022, 4:31:31 AM11/9/22
to wiremock-user
@bikram Try adding this " --no-request-journal"  and " --disable-request-logging "  to ur command.

For example :-     java -jar wiremock-jre8-standalone-2.33.2.jar  --no-request-journal  --disable-request-logging

In addition, you can also try adding " --logged-response-body-size-limit" so that wiremock wont store response body exceeding the mentioned size. 

Refer :- https://wiremock.org/docs/running-standalone/ for commandline options


Bikram Panda

unread,
Nov 9, 2022, 4:48:33 AM11/9/22
to snegithan vikram, wiremock-user
Yes doing this now with below 

java -Xms256m -Xmx6048m -jar wiremock-jre8-standalone-2.33.2.jar --no-request-journal --disable-request-logging

Will share the result shortly

--
You received this message because you are subscribed to the Google Groups "wiremock-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wiremock-use...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/wiremock-user/5f316ab6-b261-45e8-bf95-0e778b3df75cn%40googlegroups.com.

Bikram Panda

unread,
Nov 9, 2022, 10:19:24 AM11/9/22
to snegithan vikram, wiremock-user
Thanks a lot for the pointer. Just to update with the below changes it worked like a charm

java -Xms256m -Xmx6048m -jar wiremock-jre8-standalone-2.33.2.jar --no-request-journal --disable-request-logging

snegithan vikram

unread,
Nov 10, 2022, 9:56:50 AM11/10/22
to Bikram Panda, wiremock-user
Glad to hear that
Reply all
Reply to author
Forward
0 new messages