Skip to content

bthread_worker_usage超出bthread_worker_count #1231

Description

@leshphonc

Describe the bug (描述bug)
应用场景是dmkit当发起一个调用unit的请求时,bthread_worker_usage有时会超出bthread_worker_count很多,
当bthread_worker_count设置为9的时候,bthread_worker_usage最大会跳到100多,
当bthread_worker_count设置为48的时候,bthread_worker_usage最大会跳到1200多,
然后就会一直timeout,无论请求多少次。
此时如果过一会不管他,再次请求就好了。。。

To Reproduce (复现方法)
偶尔的访问调用会触发 bthread_worker_usage 的爆炸式增长,正常情况下是不会增长太多的,bthread_worker_usage也就长个1左右

Expected behavior (期望行为)
bthread_worker_usage波动正常,不会出现跳跃

Versions (各种版本)
OS: centos 7
Compiler:
brpc: commit 2ae7f04
protobuf: 2.5.0

Additional context/screenshots (更多上下文/截图)
1599556575113
WeChatbfc8219ad99a001851121a190aacd2ff

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions