baidu / baidu/Jprotobuf-rpc-socket

不开启httpServer服务导致内存泄露问题

Open
#44 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Java
Stars
535
Forks
216
PR merge metrics
No merged PRs in 30d

Description

所以现在有问题了,ServerStatus 这个地方启动,当 httpServerPort 参数没有填的时候 即为 -1 的时候,他无法启动 ServerStatus 构造方法中的 消费者线程,导致了
public static final BlockingQueue ASYNC_REQUEST = new LinkeBlockingQueue();
内存溢出!

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by inspecting the ServerStatus constructor and the ASYNC_REQUEST BlockingQueue declaration mentioned in the issue. Reproduce the behavior with httpServerPort set to -1 and observe whether the consumer thread starts and whether queued RequestInfo objects continue accumulating. Done means the no-httpServer configuration no longer causes unbounded queue growth or a memory leak.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, 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.