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.