The slow startup has been fixed in main. The problem is that the startup code was
looking for a log msg to determine if Hypersonic had started and it does
not receive this when log4j is used.

The only time I have seen the nul problem is when both the legacy logging and
log4j mbeans are configured.

----- Original Message ----- 
From: "Guy Rouillier" <[EMAIL PROTECTED]>
To: "JBoss User" <[EMAIL PROTECTED]>
Sent: Wednesday, May 23, 2001 1:00 PM
Subject: [JBoss-user] log4j slows down hypersonic startup


> I started working with log4j today, and I noticed a very long delay starting
> hypersonic when log4j is used.  Here is what I see with log4j (console
> logging and file logging disabled):
> 
> 2001-05-23 15:06:15,015  INFO [Hypersonic] (root) Starting
> 2001-05-23 15:06:45,031  INFO [Hypersonic] (root) Database started
> 2001-05-23 15:06:45,031  INFO [Hypersonic] (root) Started
> 
> Here is what I see with console logging and file logging (log4j disabled):
> 
> [2001-05-23 03.41.10.203][Hypersonic] Starting
> [2001-05-23 03.41.15.203][Hypersonic] Server 1.4 is running
> [2001-05-23 03.41.15.203][Hypersonic] Press [Ctrl]+[C] to abort
> [2001-05-23 03.41.15.203][Hypersonic] Database started
> [2001-05-23 03.41.15.203][Hypersonic] Started
> 
> Notice with log4j hypersonic takes 30 seconds to start, while with console
> and file logging it takes only 5.  Why the difference?
> 
> While I'm here, I'm getting a bunch of null characters in server.log with
> FileLogging.  Console logging is working fine.  This only appears to be
> happening during startup.  All the messages logged by EJBs are showing up as
> are all the shutdown messages.  After about 19153 nulls, here are the first
> lines I see:
> 
> [2001-05-23 03.54.12.953][Verifier] guyr.DbSource: Verified.
> [2001-05-23 03.54.12.953][Container factory] Deploying guyr.DbSource
> [2001-05-23 03.54.12.953][Container factory] Container Invoker RMI
> Port='4444'
> [2001-05-23 03.54.12.953][Container factory] Container Invoker Client
> SocketFactory='Default'
> [2001-05-23 03.54.12.953][Container factory] Container Invoker Server
> SocketFactory='Default'
> 
> It seem like every character getting logged during startup is being
> translated into a null.  Is anyone else getting this?  I'm using 2.2.1.
> 
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to