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

James Livingston (JIRA) issues at jboss.org
Fri Jan 23 00:23:49 EST 2015


     [ https://issues.jboss.org/browse/WFCORE-491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

James Livingston reassigned WFCORE-491:
---------------------------------------

    Assignee: James Livingston


> 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: James Livingston
>            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