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 bu...@apache.org on 2011/01/24 15:45:23 UTC
DO NOT REPLY [Bug 50641] New: "Too Many Open Files" while using
RollingFileAppender with NDC
https://issues.apache.org/bugzilla/show_bug.cgi?id=50641
Summary: "Too Many Open Files" while using RollingFileAppender
with NDC
Product: Log4j
Version: 1.2
Platform: PC
OS/Version: Linux
Status: NEW
Severity: critical
Priority: P2
Component: Appender
AssignedTo: log4j-dev@logging.apache.org
ReportedBy: ranjith.raj@hcl.com
In our Application we use RollingFileAppender with NDC to create individual
logs for each user(or jobs).Each file opened by the Log4j is not closed by it
in any form.After few days of deployment of our application in the server in
Linux.
We got an error with "Too many open files" which resulted in restarting the
server.Since, log files were not closed this error has occured.
We tried to close the log file by closing the appenders for each log file,but
even then when the next request comes in .log4j opens all the previous log
files for every request.
Is it possible to delete or remove the logger instance from repository to avoid
this issue.
--
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