[jboss-jira] [JBoss JIRA] (WFCORE-1503) Reading the logging subsystem resource can be slow if several log files exist

James Perkins (JIRA) issues at jboss.org
Mon Apr 25 12:43:00 EDT 2016


    [ https://issues.jboss.org/browse/WFCORE-1503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13196753#comment-13196753 ] 

James Perkins commented on WFCORE-1503:
---------------------------------------

This also affects MBeans as it looks like the resource tree is read. The {{ModelControllerMBeanServerPlugin.queryNames()}} reads resources. The logging resource definitely needs to be fixed. This could be any issue with any other dynamic resources as well.

> Reading the logging subsystem resource can be slow if several log files exist
> -----------------------------------------------------------------------------
>
>                 Key: WFCORE-1503
>                 URL: https://issues.jboss.org/browse/WFCORE-1503
>             Project: WildFly Core
>          Issue Type: Bug
>          Components: Logging
>            Reporter: James Perkins
>            Assignee: James Perkins
>
> The logging subsystem uses a dynamic resource to list log files as resources. These are the files that are allowed to be read or downloaded and are attached to known file handlers.
> When several file handlers are defined the file tree walker is invoked several times per {{read-resource-operation}}. This may be happening for each stage of an operation. Ideally we could either cache the file listing per-operation or only execute at the runtime stage. This may not be an option for dynamic resources however.
> As a result of this poor performance the web console is very slow to load the logging subsystem configuration. This is not an issue with the web console.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list