[jboss-jira] [JBoss JIRA] (WFCORE-491) Improve ManagedAuditLoggerImpl.log() performance when disabled

James Livingston (JIRA) issues at jboss.org
Fri Jan 2 00:43:29 EST 2015


James Livingston created WFCORE-491:
---------------------------------------

             Summary: Improve ManagedAuditLoggerImpl.log() performance when disabled
                 Key: WFCORE-491
                 URL: https://issues.jboss.org/browse/WFCORE-491
             Project: WildFly Core
          Issue Type: Enhancement
          Components: Domain Management
    Affects Versions: 1.0.0.Alpha15
            Reporter: James Livingston
            Assignee: Brian Stansberry
            Priority: Minor


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.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list