Plese fill the template when you reporting a new issue, thanks!
Which platform are you running AnyProxy
Windows
The version of the AnyProxy
最新版本
Your expected behavior of AnyProxy
加入配置参数,可以选择不记录请求记录减少内存占用
The actual behavior of AnyProxy
随着运行时间的增加内存使用不断加大最后进程奔溃
The log of the error
不知道是内存泄露,还是因为记录了请求信息导致内存占用,请问有办法不记录请求记录单纯的当做web代理来使用吗
2条答案
按热度按时间zynd9foi1#
请问你是不是使用了rule config,并且shouldInterceptHttpsReq直接return true了?
我看了anyproxy的部分代码,如果要拦截https请求,每次处理connect请求,都会新建一个tcp服务器,会不会是因为tcp服务器太多而导致的内存占用?
我的做法是,在shouldInterceptHttpsReq中,找出需要拦截的请求,设置为true,其他的请求返回false,这样可以一定程度的缓解
具体可以在./lib/requestHandler.js里面搜索getPort
不知道有没有帮到你
zfycwa2u2#
@gitby15 我确实是使用了rule config,并且拦截了https请求