You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christoph Hanke <ch...@imtek.uni-freiburg.de> on 2019/06/25 11:58:09 UTC

Memory problems due to org.apache.tomcat.dbcp.dbcp.AbandonedTrace?

Hi,

I have got a jspx Page which gets reloaded every 30 seconds to show some
status information. Consequently there are database requests every 30
seconds. Before switching from glassfish to tomcat (7.0.94) there were
no issues with that, but now the memory consumption is bloating over time.

Looking at the heapdump I recognized that the the traceLists of the used
preparedStatements and the resultSets are the cause of the memory
consumption. 

I already tried to use***removeAbandoned*=true and
setting*removeAbandonedTimeout=5 *seconds, as well as turning off my
jspx-database-requests over night,  thinking this could provide the
necessary "timeout" for the connection / AbandonedTrace objects (
https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/tomcat/dbcp/dbcp/AbandonedTrace.html
) to get cleaned up. Unfortuneatly it did not. I'm now thinking to turn
of the tracking (by using |*clearTrace
<https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/tomcat/dbcp/dbcp/AbandonedTrace.html#clearTrace()>*()|
) but it seems a little bit hackish to me. Has someone eventually an
idea where to look at or what to do?

Kind regards

Chris


Re: Memory problems due to org.apache.tomcat.dbcp.dbcp.AbandonedTrace?

Posted by Mark Thomas <ma...@apache.org>.
On 25/06/2019 12:58, Christoph Hanke wrote:
> Hi,
> 
> I have got a jspx Page which gets reloaded every 30 seconds to show some
> status information. Consequently there are database requests every 30
> seconds. Before switching from glassfish to tomcat (7.0.94) there were
> no issues with that, but now the memory consumption is bloating over time.
> 
> Looking at the heapdump I recognized that the the traceLists of the used
> preparedStatements and the resultSets are the cause of the memory
> consumption. 
> 
> I already tried to use***removeAbandoned*=true and
> setting*removeAbandonedTimeout=5 *seconds, as well as turning off my
> jspx-database-requests over night,  thinking this could provide the
> necessary "timeout" for the connection / AbandonedTrace objects (
> https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/tomcat/dbcp/dbcp/AbandonedTrace.html
> ) to get cleaned up. Unfortuneatly it did not. I'm now thinking to turn
> of the tracking (by using |*clearTrace
> <https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/tomcat/dbcp/dbcp/AbandonedTrace.html#clearTrace()>*()|
> ) but it seems a little bit hackish to me. Has someone eventually an
> idea where to look at or what to do?

Do the logs indicate you have a connection leak?

Mark

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