[prev in list] [next in list] [prev in thread] [next in thread] 

List:       log4j-user
Subject:    Re: log4j never close files??
From:       James Stauffer <stauffer.james () gmail ! com>
Date:       2006-01-26 16:23:24
Message-ID: c83e39890601260823h1af4f8adscd521f1090015c21 () mail ! gmail ! com
[Download RAW message or body]

I wrote my own file appender that sounds similar to your appender and
it doesn't have problems (but we do run on JRE 1.4).  Post your code
so we can see it.

On 1/24/06, Qian Wang <jane6210@yahoo.com> wrote:
> Hi,
>    Recently, I ran into some "too many open files"
> problem. i have a DirectoryRollingFileAppender extends
> RollingFileAppender. each day, i will create a new
> directory then all the activities on the new day will
> be logged to the new directory; however, recently,
> because our uses number increased a lot, i began to
> get "too many open files" error.  i went to the
> directoires created several days back, tried to delete
> some old log files, but windows tells me that I can't
> delete those files because they are still in use. but
> in my DirectoryRollingFileAppender, before i rollover
> old logs, i did close all the old files. Then how come
> the log files handles are still being held by log4j?
>
> I know i could upgrade our jdk from 1.4 to 1.5 to
> slove the "too many open files" error, but that
> involves some legacy code and not feasible now.
>
> Can anyone shed some light on this problem?
>
> Thanks
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>


--
James Stauffer
Are you good? Take the test at http://www.livingwaters.com/good/

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic