logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 50844] DateFormat.getDateTimeInstance() is very expensive, we can cache it to improve performance
Date Thu, 05 May 2011 05:52:13 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=50844

--- Comment #1 from Lily <lilyj999@gmail.com> 2011-05-05 05:52:13 UTC ---
We faced the similar problem for performance of log4j. Basically we log a bunch
of messages for each http request. Then, we found that http response time gets
hits. So what we ended up was to first log each message to a StringBuffer,
after some messages are logged, i.e. 100, we then call log4j api to log. This
has improved the response time. However, we still see a response hit when the
chunk of messages
are written to file.

Lily
http://www.alldiscountbooks.net

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

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


Mime
View raw message