anyproxy icon indicating copy to clipboard operation
anyproxy copied to clipboard

Cache folder grows too big over time. Is there a way to limit/disable the cache?

Open cakoose opened this issue 5 years ago • 5 comments

Linux 4.15.0 Node 12.14.1 AnyProxy 4.0.5

We have a long-running Node service that runs AnyProxy like this:

import anyproxy from 'anyproxy'
...
const proxyServer = new anyproxy.ProxyServer({
    ...
});
proxyServer.on(...);
proxyServer.on(...);
proxyServer.start();

Every day, the cache directory grows by ~12 GB. Since this is a long-running process, eventually the cache directory grows too big and we run out of disk space.

Is there a way to configure AnyProxy so that either:

  1. The cache folder is disabled?
  2. The cache folder is limited to a certain size, e.g. with LRU eviction?

cakoose avatar Feb 20 '20 21:02 cakoose

same issue...

LiboDing avatar Mar 25 '20 01:03 LiboDing

Same issue

grigorii-horos avatar Jul 02 '20 22:07 grigorii-horos

Here is my solution: exec the cmd in crontab: kill -2 anyproxy.pid singal 2 will clean the cache dir

LiboDing avatar Jul 14 '20 02:07 LiboDing

Same issue! Any resolution?

laissonsilveira avatar Jul 12 '21 13:07 laissonsilveira

same issue...

denmodo avatar Dec 03 '21 13:12 denmodo