alibaba / alibaba/anyproxy

anyproxy占用内存问题

Open
#439 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.9k
Forks
1.2k
PR merge metrics
No merged PRs in 30d

Description

### **anyproxy占用内存问题**

const AnyProxy = require('anyproxy');
const options = {
port: 8001,
webInterface: {
enable: false
},
throttle: 10000,
forceProxyHttps: true,
silent: true,
dangerouslyIgnoreUnauthorized: true
};
const proxyServer = new AnyProxy.ProxyServer(options);
proxyServer.start();

**用法如上,在长时间使用后,anyproxy代理线程占用的内存越来越大。
查看堆快照,发现web版界面中的很多内容留在了堆里,并且无法被GC掉。
请问这个问题该怎么解决?###**

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the long-running anyproxy process with the shown AnyProxy.ProxyServer options and capture heap snapshots over time. Inspect retained objects associated with the disabled web interface and verify that the proxy's memory usage stops growing and those objects become collectible.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.