Skip to content

garbage collection occured too often #8875

Closed

Description

@w6m6

Describe the bug
After we upgrade pulsar from 2.4.0 to 2.6.2, we found the frequency of garbage collection is much higher than v2.4.0 and the Journal Add latency of bookie is increased, which might related to the increase of gc frequency.

Screenshots
WechatIMG90

Activity

  1. added
    type/bug
    on Dec 9, 2020
  2. lhotari commented on Dec 12, 2020

    @lhotari
    Member

    This is probably caused by efa984b . There's a fix in PR #8908 . /cc @sijie

  3. lhotari commented on Dec 13, 2020

    @lhotari
    Member

    There's also a PR to enable Log4j2's Garbage Free logging mode, it's #8944 . Applying both #8908 and #8944 should reduce GC pressure.

    Since both PRs are simply changes to the bin/pulsar script, it would be easy to path the wrapper script to re-test with the changes. I have created a script to patch the apachepulsar/pulsar-all docker images for 2.6.2 and 2.7.0 here: https://github.com/lhotari/pulsar-docker-images-patch-log4j2-config

    @w6m6 are you running Pulsar in k8s or do you run it without docker images? Would you be able to re-test with the patched bin/pulsar script? (see https://github.com/lhotari/pulsar-docker-images-patch-log4j2-config for patching the docker images)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions