2

We plan on using mitmproxy for our test and staging environments. However, we are running into the issue that these environments have limited memory available. MITMproxy seems (according to spec?) to simply store all our HTTPS API communications in memory. Since our applications use API's very intensively we fear we would run out of memory rather quickly.

So I was wondering, is there a good way to limit memory usage of MITMproxy?

Mat Ha
  • 53
  • 4
  • Does this answer your question? [MemoryError: mitmproxy has crashed](https://stackoverflow.com/questions/62932169/memoryerror-mitmproxy-has-crashed) – Robert Aug 05 '20 at 16:36
  • I am not sure if it is the mitmproxy GUI that keeps all data in RAM or that you don't save the data to disk. I use `mitmdump` and save everything to file using `-w ` option and don't have any memory problems. – Robert Aug 05 '20 at 16:40
  • @Robert how would that work? You simply save everything to a file? Can you then still use some GUI / webinterface to view that? We simply want to have an extra window open where we can see what our project is currently doing regarding API calls. And we can't rely on having to manually SSH into our virtual machines to fetch any log files. We currently use CamillaProxy for this purpose as it only logs locally when the window is open (so it's gone when window is closed), but is has sadly been abandoned. – Mat Ha Aug 06 '20 at 09:18
  • Mitmproxy/mitmdump have an optional web interface [mitmweb](https://docs.mitmproxy.org/stable/tools-mitmweb/) that may be of use to you. But when what will be logged to RAM or disk I don't know. Just try it out yourself. – Robert Aug 06 '20 at 09:32

0 Answers0