[jboss-dev] Re: Excessive logging in AS 4.2.3 and AS 5
Dimitris Andreadis
dandread at redhat.com
Wed Sep 17 10:57:21 EDT 2008
Excessive DEBUG logging usually means that those message should really be at trace level
coupled with an isTraceEnabled() guard, as well.
This happens because the developers are lazy to switch to trace level when they are
coding/testing their stuff, so they rather just DEBUG away and let the admin configure INFO
or higher for those particular categories.
So the solution is really to tell those project decrease their logging level.
On the AS side the only thing we can do is filter those messages away by default, although
some useful logging will be lost, as well.
If you code thinking that DEBUG messages will always show up in the log, then you would be a
lot more defensive as to what makes a DEBUG message.
Jay Balunas wrote:
> I personally think that this give a poor first impression of AS. Especially since it does not show in console, so users will not be immediately aware of the cause until they investigate the logs.
>
> my $.02
>
> Jay
>
> ----- "Galder Zamarreno" <galder.zamarreno at redhat.com> wrote:
>
>> Hi,
>>
>> Jay Balunas wrote:
>>> I posted this up to the Design of POJO Server forum, but I'm not
>> sure if that was the correct place there was not a "Design of AS" ;-)
>>> While doing some performance testing for Seam I noticed that the
>> default logging for AS 4.2.3 and AS 5.0 CR2 was set to debug, Note
>> that console logging is limited to info so this only shows in the
>> log.
>>> This causes huge performance issues and exposes the user to way too
>> much information. I have discussed this on the EAP side in
>> JBPAPP-1187. They fixed it to some degree, but it still needs some
>> work.
>>> This is basically what I'm seeing
>>>
>>> Starting 4.2.3 - 1.2 mb - with app
>>> Starting 5.0 CR2 - 1.3 mb - with no app
>>>
>>> A few requests with one user and seam app creates MBs of logs.
>>>
>>> >From my testing performance hit was huge. The average went from 14
>> sec to 4 sec with 50 users and 25 requests each when I switched the
>> threshold for the log file to info. The server.log file size (with a
>> few requests) was only 97kb compared to the 1.2 above with just
>> starting the server. That test was with 4.2.3 not 5.0.
>>> Is there a reason that the logging is set this way? My opinion is
>> that we should give the user the best initial performance, and concise
>> information.
>>
>> IMO, it depends on what you're using it for. For
>> production/staging/loadtesting yes, for development no.
>>
>> cc'ing jboss-dev
>>
>>
>>> Thoughts?
>>>
>>> Thanks,
>>> Jay Balunas
>>>
>> --
>> Galder Zamarreño
>> Sr. Software Maintenance Engineer
>> JBoss, a division of Red Hat
>
More information about the jboss-development
mailing list