You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by roman v <ro...@gmail.com> on 2021/01/28 13:00:37 UTC

Possible memory leak in AprEndpoint

Hi!

I'm using tomcat 9 and in my application, the capacity of used memory
by direct buffer pools is increasing over time, after some research I
found that in AprEndpoint in method doClose "socketBufferHandler" is
not executing "free()" method call, and the link is just set to
"EMPTY":> socketBufferHandler = SocketBufferHandler.EMPTY;
It looks like because of this allocated native memory is not released.

Am I missing something here or is this a bug in tomcat?

Best Regards,
Roman

Re: Possible memory leak in AprEndpoint

Posted by roman v <ro...@gmail.com>.
Hi Chris,

The exact version is 9.0.37

Best Regards,
Roman

On Thu, Jan 28, 2021 at 5:17 PM Christopher Schultz <
chris@christopherschultz.net> wrote:

> Roman,
>
> On 1/28/21 08:00, roman v wrote:
> > I'm using tomcat 9 and in my application, the capacity of used memory
> > by direct buffer pools is increasing over time, after some research I
> > found that in AprEndpoint in method doClose "socketBufferHandler" is
> > not executing "free()" method call, and the link is just set to
> > "EMPTY":> socketBufferHandler = SocketBufferHandler.EMPTY;
> > It looks like because of this allocated native memory is not released.
> >
> > Am I missing something here or is this a bug in tomcat?
>
> What exact version of Tomcat 9 are you running?
>
> -chirs
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Re: Possible memory leak in AprEndpoint

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Roman,

On 1/28/21 08:00, roman v wrote:
> I'm using tomcat 9 and in my application, the capacity of used memory
> by direct buffer pools is increasing over time, after some research I
> found that in AprEndpoint in method doClose "socketBufferHandler" is
> not executing "free()" method call, and the link is just set to
> "EMPTY":> socketBufferHandler = SocketBufferHandler.EMPTY;
> It looks like because of this allocated native memory is not released.
> 
> Am I missing something here or is this a bug in tomcat?

What exact version of Tomcat 9 are you running?

-chirs

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org