I want to use WireMock to record and then playback around 20,000 requests. What would be the memory requirements for this?
I setup WireMock in a container with 2GB allotted memory, and it ran out of heap space while recording the traffic. (I was sending requests in a loop, with random 500ms to 3s delays).
Then I increased the memory to 6GB, and it was able to record everything, but when I stopped the WireMock server, while saving the stubs, it ran out of memory. I wanted to know if it's common to use WireMock recording and playback to record such amounts of stubs. We want to run some tests that involve a lot of permutations of requests.
1000 stubs I had recorded before took only 30MB of disk space, so 20,000 would have taken roughly 600MB.
I believe I can't use --no-request-journal as my objective is to record stubs. Can I somehow trigger a save after each stub recording? Can I somehow hook into this?
Thanks a lot!