Skip to content

Memory leak on Karaf when using the command "shutdown --reboot" #561

@j3rem1e

Description

@j3rem1e

I have noticed a memory leak in pax-logging in Karaf 4.4.6 when using the command shutdown --reboot. I have millions of loggers stored in the static variable m_loggers.

After investigation, it seems that I have two pax-logging-api bundles: the first one is in the 'uninstalled' state and the second one is 'started'. It is this first bundle that holds the affected collection of m_loggers.

The initial issue likely originates from the shutdown command, or from references preventing the bundles from unloading completely, but perhaps we should add a safeguard here to handle this scenario? the command seems like to work correctly, but the jvm crashed severals days after because of this memory leak.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions