Skip to content

High GC pause cases high publish latency #22866

Description

@shibd

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

We have observed that using Individual ack frequently results in young generation GC and relatively high GC pauses.

image
  • Resource: k8s cluster
    • broker(1.5CPU)(3CPU 8Gi)
    • bookie(2.5CPU 8Gi) 250Gi gp3 ssd
    • zookeeper(1CPU 4Gi)
  • Version: 3.2.2

Performance cmd:

bin/pulsar-perf consume test-c 1200 -n 10 -st Shared -t 10
bin/pulsar-perf produce test-p -s 100 -time 1200 -n 10 -t 10 -ml 256M

Solution

The issue should be caused by the large long[] allocated by bitmap. The allocation invoking chain.

image image

Maybe this is a normal phenomenon and can be solved by increasing the CPU, I would like to share it here to see if there are any similar problems and suggestions in the community.

Alternatives

No response

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Activity

  1. added
    type/enhancement
    on Jun 7, 2024
  2. lhotari commented on Jun 7, 2024

    @lhotari
    Member

    Btw. The metric might be wrong. It's not necessarily pause time, but GC time that happens in the background. See #18891

  3. mattisonchao commented on Jun 7, 2024

    @mattisonchao
    Member

    I think so. But we might need to improve here to avoid allocating a very large long[] to give GC pressure. :)

  4. self-assigned this
    on Jun 7, 2024
  5. lhotari commented on Jun 14, 2024

    @lhotari
    Member

    I think so. But we might need to improve here to avoid allocating a very large long[] to give GC pressure. :)

    One alternative would be to switch to use https://github.com/lemire/RoaringBitmap/ .

  6. reopened this on Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type/enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions