Skip to content

[Bug] Severe performance degradation due to file read hang with single-core max-out #25055

@g0715158

Description

@g0715158

Search before reporting

  • I searched in the issues and found nothing similar.

Read release policy

  • I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

User environment

version:3.0.10
jdk 17
os arm

Issue Description

When I split the snapshot and ledgers directories of the bookie from one into four, a problem arises during stress tests with 500KB large messages: file reading gets stuck, resulting in extremely low performance. At this time, IO, network, and overall CPU utilization are all low, but a single CPU core becomes fully saturated. Thread stack analysis shows that the process is blocked in the file reading phase.

Image Image

Error messages


Reproducing the issue

When I split the snapshot and ledgers directories of the bookie from one into four, a problem arises during stress tests with 500KB large messages: file reading gets stuck, resulting in extremely low performance. At this time, IO, network, and overall CPU utilization are all low, but a single CPU core becomes fully saturated. Thread stack analysis shows that the process is blocked in the file reading phase.

Additional information

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugThe PR fixed a bug or issue reported a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions