You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Manikumar Reddy <ku...@nmsworks.co.in> on 2014/09/05 14:15:38 UTC

log4j2 Slow Starup

Hi,

I am using log4j 2.0.2. I have 20 rolling file appenders.
log4j initialization is taking more than 20 seconds.

java stack trace is showing  PluginManager.collectPlugins code.

Is there any way to reduce the startup time?
Is it possible to disable the plugin find process?


Thanks
Kumar

Re: log4j2 Slow Starup

Posted by Gary Gregory <ga...@gmail.com>.
We are about to release 2.1; would you be able to git clone, build and test
our master branch to see if you see similar results?

Gary

On Fri, Sep 5, 2014 at 8:15 AM, Manikumar Reddy <ku...@nmsworks.co.in>
wrote:

> Hi,
>
> I am using log4j 2.0.2. I have 20 rolling file appenders.
> log4j initialization is taking more than 20 seconds.
>
> java stack trace is showing  PluginManager.collectPlugins code.
>
> Is there any way to reduce the startup time?
> Is it possible to disable the plugin find process?
>
>
> Thanks
> Kumar
>



-- 
E-Mail: garydgregory@gmail.com | ggregory@apache.org
Java Persistence with Hibernate, Second Edition
<http://www.manning.com/bauer3/>
JUnit in Action, Second Edition <http://www.manning.com/tahchiev/>
Spring Batch in Action <http://www.manning.com/templier/>
Blog: http://garygregory.wordpress.com
Home: http://garygregory.com/
Tweet! http://twitter.com/GaryGregory

Re: log4j2 Slow Starup

Posted by Matt Sicker <bo...@gmail.com>.
Are you using the packages attribute in your configuration? Like:

<Configuration packages="...">

If so, could you try without it? This is a known issue by the way.


On 5 September 2014 07:15, Manikumar Reddy <ku...@nmsworks.co.in> wrote:

> Hi,
>
> I am using log4j 2.0.2. I have 20 rolling file appenders.
> log4j initialization is taking more than 20 seconds.
>
> java stack trace is showing  PluginManager.collectPlugins code.
>
> Is there any way to reduce the startup time?
> Is it possible to disable the plugin find process?
>
>
> Thanks
> Kumar
>



-- 
Matt Sicker <bo...@gmail.com>