Pete,

I was using a profiling tool (OptimizeIt - great product) and I can track
how object instances pretty easily.  Once Charles' and my patches get
combined, I'll try to see if anything is holding on to instances of
inputstreams.  This should let me figure out what if anything is still
holding streams open.  Hopefully we can get to the bottom of this soon.

Serge Knystautas
Loki Technologies
http://www.lokitech.com/
----- Original Message -----
From: "Peter Donald" <[EMAIL PROTECTED]>
To: "Java Apache Mail Server" <[EMAIL PROTECTED]>
Sent: Friday, November 24, 2000 1:45 AM
Subject: Re: AW: BIG BUG: James using 90%-98% of the processor time
underWin2000


> Hi,
>
> hmmmm - I though I deleted this bug in Avalon. So I went had a look at
> James source and there is also a bug there aswell. The specific file it is
> in is AvalonMailRepository.java. In the function
>
>     public synchronized MailImpl retrieve(String key) {
>         MailImpl mc = (MailImpl) or.get(key);
>         try {
>             mc.setMessage(sr.get(key));
>         } catch (Exception me) {
>             throw new RuntimeException("Exception while retrieving mail: "
> + me.getMessage());
>         }
>         return mc;
>     }
>
> sr.get(key) returns an InputStream but nowhere is it closed. Someone
should
> change this to something like
>
> InputStream ins = sr.get(key)
> mc.setMessage( ins );
> ins.close();
>
> This may remove the bug. Look for other instances of similar behaviour in
> James to get the rest of the bugs like this. Essentially as InputStream is
> never explicilty closed it may for somereason in some VMs remain dorment
> and not GCed and finalized. This of course means that the files can not be
> deleted on win32 due to file being still open.
>
>
> Cheers,
>
> Pete
>
> *------------------------------------------------------*
> | Despite your efforts to be a romantic hero, you will |
> | gradually evolve into a postmodern plot device.      |
> *------------------------------------------------------*
>
>
>
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Archives:  <http://www.mail-archive.com/james%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
>
>



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives:  <http://www.mail-archive.com/james%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to