-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
High ram consumption #16
Comments
I started basic wiremock container - it consumes only ~100MB.
|
Hello! I'll take a couple of weeks for investigation, what component is responsible for such excessive consumption. |
Thanks for the response. Looking forward for the results of the investigation! We are planning to increase the number of the mocked hostnames so currently it looks like a blocker for us :( |
Hello, is there any progress? |
Hi! I've explored RAM consumption on my env - Ubuntu Linux, docker CE - and I've got these results: 5 hostnames (~140 MiB per host):
13 hostnames (~113 MiB per host):
It's looks quite close to original wiremock RAM consumption. Could you please answer
|
How to explain that every new hostname adds 150M of RAM? GRPC Wiremock creates new wiremock instance for every hostname? Regarding your questions:
|
May be there is some way to place all contracts to just one wiremock instance? |
That's right - GRPC Wiremock creates new wiremock instance for every hostname. It allows us to not change mapping files and have separate GUI for every hostname.
Unfortunately it requires the change of GRPC Wiremock architecture. I can see two ways:
If you have resources to implement it, I can help with architecture decisions. |
Also consider to use orbstack - I've heard it drammatically speeds up docker containers on MacOS. |
Hi. Could you please help to investigate how to lower RAM consumption? Every new mocked hostname greatly increases mock server RAM consumption. Statistics is the following:
The whole statistics:
6 hostnames
8 hostnames
ce33554a0a74 autotests-mock-server-1 3.18% 2.404GiB / 7.667GiB 31.36% 4.54MB / 115kB 0B / 282MB 313
10 hostnames
cd9bb0bd2bfb autotests-mock-server-1 4.26% 2.955GiB / 7.667GiB 38.54% 4.54MB / 128kB 0B / 283MB 374
The text was updated successfully, but these errors were encountered: