-
Enhancement
-
Resolution: Done
-
Minor
-
1.0.0.Alpha15
-
None
org.jboss.as.controller.audit.ManagedAuditLoggerImpl.log/logJmxMethodAccess() does some work such as creating the log item which will just be thrown away if getLoggerStatus()==DISABLED.
It may be worth checking if that is the case and skipping the work that will not be needed. If it was not for the applyHandlerUpdates() call, I think an "isDisabled" volatile flag could be used to avoid taking the lock at all there, which can be expensive due to it being a fair lock.
This does not appear to show up as a issue unless you are performing a lot (thousands) of management operations in quick succession.