Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 48464 invoked from network); 21 Aug 2007 11:15:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2007 11:15:48 -0000 Received: (qmail 14313 invoked by uid 500); 21 Aug 2007 11:15:31 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 14298 invoked by uid 500); 21 Aug 2007 11:15:31 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 14287 invoked by uid 99); 21 Aug 2007 11:15:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 04:15:31 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jak-tomcat-user@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from [80.91.229.2] (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 11:15:29 +0000 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1INRhO-0007gN-Iy for users@tomcat.apache.org; Tue, 21 Aug 2007 13:15:02 +0200 Received: from vpn.autocom.dk ([62.242.145.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Aug 2007 13:15:02 +0200 Received: from morten by vpn.autocom.dk with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Aug 2007 13:15:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: users@tomcat.apache.org From: "Morten" Subject: Memory problems Date: Tue, 21 Aug 2007 13:09:47 +0200 Lines: 25 Message-ID: X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: vpn.autocom.dk X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3138 Sender: news X-Virus-Checked: Checked by ClamAV on apache.org Hi We have implemented a picture server in Tomcat. The pictures are cached in a map. When the memory is nearly full, some entries are removed from map. However, eventually the entries in the map become fewer and fewer even though the memory consumption stays high. In other words more and more memory are used outside the map. According to a heap dump done by jmap, there are many org.apache.tomcat.util.buf.ByteChunk instances referencing large byte[], which we suspect to be previously used pictures. We have tried both Tomcat 5.5.9 and Tomcat 6 under JBoss 4.2.0. Both showed the same behaviour. Are there any way to stop Tomcat from cached these large byte[] internally? The ByteChunks are referenced from IntermediateOutputstream, C2BConverter and OutputBuffer. Best regards, Morten Knudsen --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org