Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Fix performance issue caused by invalid logging configuration #8908
Conversation
- Configure the root log level in bin/pulsar startup script to use "info" level by default. This can be done by setting the "pulsar.log.root.level" system property. - since the root log level was debug, all code blocks within log.isDebugEnabled() got executed. This caused a lot of unnecessary memory allocations and wasted CPU cycles.
|
/pulsarbot run-failure-checks |
|
/pulsarbot run-failure-checks |
|
Good catch! +1 |


Motivation
Profiling a 3 node Pulsar cluster running with 2.7.0 version showed allocation hotspots in
log.debugmethods. This indicated that the root logger level was set to debug.Modifications
Configure the root log level in
bin/pulsarstartup script touse
infolevel by default. This can be done by settingthe
pulsar.log.root.levelsystem property.since the root log level was debug, all code blocks within
log.isDebugEnabled()got executed.This caused a lot of unnecessary memory allocations and wasted CPU cycles.