Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
Using LOG.debug(...) can lead to multiple unexpected memory allocation, even when the logger it's turned off.
For example, int and long parameter are boxed into Integer and Long objects and the var-arg parameters are using an Object[] to hold
them.
We should guard all usages of LOG.debug() with the if (LOG.isDebugEnabled() guard.
Attachments
Issue Links
- links to