[BUG] Proxyman is not responding when leave it overnight
Description
Some users report that Proxyman is unresponsive when it is running overnight. It can be a result of out-of-memory. We have to find a solution to fix it.
Acceptance Criteria
- Automatically reduce the memory usage if it exceeds a certain point.
- Auto clear old requests/responses to save memory. Make sure the app is always responsive 👍
Can confirm, uses sub 100mb memory at the beginning, but goes up to almost 5gb after some time.
@ilendemli can you share with me what domain/apps are in the Tool -> SSL Proxying List?
If it contains:
-
*: All Wildcard - Web Browser: Google Chrome, Safari, ...
It's a reason why you get a huge memory usage.
@NghiaTranUIT there was one entry, github.com, used almost 1gb of memory at about 24h uptime, it went down to ~95mb after removing it
1gb of memory at about 24h uptime
n general, Proxyman keeps uncompress data of all Github's requests/responses. Thus, it might accumulate to 1 Gb for 24h. I suppose that it's reasonable.
I don't want to automatically purge the data until the user actually does it (By Clicking on the clearing button).
In my case, the recording was disabled but System and External Proxy Override were active with that entry in the SSL Proxying List. So it was accumulating the data without me ever having any way to access it. Kinda feels odd, doesn't it?
@NghiaTranUIT I think it is not needed to keep uncompressed data as long as it is not recording.