Hello Community members , I have a query with rega...
# help
a
Hello Community members , I have a query with regards to wiremock rust implementation . I have been using the java wiremock for performance testing and have seen high resource being utilised . i wanted to use wiremock with rust and understand if we have any quick wins with regards to resources and performance . I have tried using https://beltram.github.io/stubr/html/ docker image - ghcr.io/beltram/stubr:0.6.2 but looks like it does not support the arm64 , issue logged - https://github.com/beltram/stubr/issues/503 Please recommend any other solution / wiremock rust image that can be used with existing WireMock json stubs as input . TIA 🙏
l
Hi, I don't know if there is anyone in this community who is familiar with the rust project you are using. We do have people running performance tests against WireMock java so maybe you issue is related to the settings you are using.
a
thanks for your reply , i thought so I have used below args mainly to be able to reduce the resource utilisation which are reccommened but it is still very resource intensive
Copy code
--global-response-templating --verbose --async-response-enabled=true --no-request-journal
anything else i should be adding to reduce the utilisations?
l
You seem to have the obvious options. What version of WireMock are you using? You might also want to try adding an option for
--max-template-cache-entries
in older versions of WireMock this defaulted to unlimited cache entries if it wasn't specified. We did update this to have a default value of
1000
but it might be worth specifying a value anyway if your response templates are large or complex ?
From the docs:
Copy code
--max-template-cache-entries: Set the maximum number of compiled template fragments to cache. Only has any effect when response templating is enabled. As of WireMock 3.7.0, this defaults to 1000 cache entries. Before WireMock 3.7.0 the default was unlimited.
You could also try adding this option:
Copy code
--disable-request-logging: Prevent requests and responses from being sent to the notifier. Use this when performance testing as it will save memory and CPU even when info/verbose logging is not enabled.
a
thanks , i will try these options as well . i have been using 3.10.0 version
👍 1