You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Remko Popma (JIRA)" <ji...@apache.org> on 2014/03/13 03:49:43 UTC

[jira] [Commented] (LOG4J2-565) Log4j2 loading time

    [ https://issues.apache.org/jira/browse/LOG4J2-565?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13932825#comment-13932825 ] 

Remko Popma commented on LOG4J2-565:
------------------------------------

In your configuration, can you change the first line to 
{code}
<Configuration status="trace" ...>
...
{code}
and post a comment with the internal log4j2 status log output that should appear on the console?
That should give some indication of what log4j is doing at startup.

> Log4j2 loading time
> -------------------
>
>                 Key: LOG4J2-565
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-565
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 2.0-rc1
>         Environment: Using ejre1.6.0_25 in an ARM926EJ-S rev 5 (v5l)
>            Reporter: Tiago Cardoso
>
> Everything runs fine on the Desktop computer, but the embedded system struggles to obtain the Logger.
> It takes 17 seconds just to run this line:
> Logger logger = LogManager.getLogger("testLogger");
> The classpath is empty and the whole applications is just:
> public static void main(String[] arg){
>     System.out.println("Starting application:" + System.currentTimeMillis());
>     Logger logger = LogManager.getLogger("testLogger");
>     logger.trace("Going to leave application." + System.currentTimeMillis());
>     System.exit(1);
> }
> The same system is able to run a client graphic application without this kind of event.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org