You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by John Clark Naldoza y Lopez <nj...@ntsp.nec.co.jp> on 2001/07/11 02:57:30 UTC

Memory Leak Problem?

Hi,


I'm involved in a project using Tomcat 3.2.2 on Solaris 2.6 with JDK
1.3.0_02.

We have a web-app that has a lot of intensive File I/O.  And it uses
sessions.

When we logged in and did some intensive I/O process, switching between
the different apps quickly, it was observed that the memory usage
gradually increased.  After waiting for some time, the memory usage did
not come down.

Is there any memory leak problem with Tomcat's 3.2.2 session management?

Would a memory leak occur if your tomcat server cannot write to the web
client's TCP socket?  (Which does occur when switching between these
applications from the web client.)


Cheers,


John Clark
-- 
     /) John Clark Naldoza y Lopez                           (\
    / )    Software Design Engineer II                       ( \
  _( (_    _  Web-Application Development                    _) )_
 (((\ \>  /_>    Cable Modem Network Management System <_\  </ /)))
 (\\\\ \_/ /         NEC Telecom Software Phils., Inc.  \ \_/ ////)
  \       /                                              \       /
   \    _/  phone: (+63 32) 233-9142 loc. 3112            \_    /
   /   /  cellphone: (+63 919) 399-4742                     \   \
  /   / email: njclark@ntsp.nec.co.jp                        \   \

Re: Memory Leak Problem?

Posted by John Clark Naldoza y Lopez <nj...@ntsp.nec.co.jp>.
Dan Hinojosa wrote:
> 
> Did you close you I/O objects?  That can cause more memory usage.
> 

>From the class itself, yes...  But I'm not sure if it would really be
called when an IO exception in the realm of an HTTP Connection Reset by
Peer is raised.  Could it be so?


Cheers,


John Clark

-- 
     /) John Clark Naldoza y Lopez                           (\
    / )    Software Design Engineer II                       ( \
  _( (_    _  Web-Application Development                    _) )_
 (((\ \>  /_>    Cable Modem Network Management System <_\  </ /)))
 (\\\\ \_/ /         NEC Telecom Software Phils., Inc.  \ \_/ ////)
  \       /                                              \       /
   \    _/  phone: (+63 32) 233-9142 loc. 3112            \_    /
   /   /  cellphone: (+63 919) 399-4742                     \   \
  /   / email: njclark@ntsp.nec.co.jp                        \   \

Re: Memory Leak Problem?

Posted by Dan Hinojosa <dh...@qwest.net>.
Did you close you I/O objects?  That can cause more memory usage.

John Clark Naldoza y Lopez wrote:

> Hi,
>
> I'm involved in a project using Tomcat 3.2.2 on Solaris 2.6 with JDK
> 1.3.0_02.
>
> We have a web-app that has a lot of intensive File I/O.  And it uses
> sessions.
>
> When we logged in and did some intensive I/O process, switching between
> the different apps quickly, it was observed that the memory usage
> gradually increased.  After waiting for some time, the memory usage did
> not come down.
>
> Is there any memory leak problem with Tomcat's 3.2.2 session management?
>
> Would a memory leak occur if your tomcat server cannot write to the web
> client's TCP socket?  (Which does occur when switching between these
> applications from the web client.)
>
> Cheers,
>
> John Clark
> --
>      /) John Clark Naldoza y Lopez                           (\
>     / )    Software Design Engineer II                       ( \
>   _( (_    _  Web-Application Development                    _) )_
>  (((\ \>  /_>    Cable Modem Network Management System <_\  </ /)))
>  (\\\\ \_/ /         NEC Telecom Software Phils., Inc.  \ \_/ ////)
>   \       /                                              \       /
>    \    _/  phone: (+63 32) 233-9142 loc. 3112            \_    /
>    /   /  cellphone: (+63 919) 399-4742                     \   \
>   /   / email: njclark@ntsp.nec.co.jp                        \   \