Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 54241 invoked from network); 21 Aug 2007 17:26:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Aug 2007 17:26:40 -0000 Received: (qmail 29893 invoked by uid 500); 21 Aug 2007 17:26:26 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 29879 invoked by uid 500); 21 Aug 2007 17:26:26 -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 29868 invoked by uid 99); 21 Aug 2007 17:26:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 10:26:26 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.228.181.118] (HELO diebold.com) (208.228.181.118) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2007 17:26:58 +0000 Received: from ([10.9.55.61]) by mailgate2.diebold.com with ESMTP id 5502098.77841926; Tue, 21 Aug 2007 13:25:43 -0400 Received: from brspex03.ad.diebold.com ([10.151.20.73]) by USNCEXCN02.ad.diebold.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 21 Aug 2007 13:25:43 -0400 Received: from BRSPEX00.ad.diebold.com ([10.151.20.121]) by brspex03.ad.diebold.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 21 Aug 2007 14:25:41 -0300 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RES: Re: Memory problems Date: Tue, 21 Aug 2007 14:25:40 -0300 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Re: Memory problems Thread-Index: Acfj7H8Wfh1p5yEmSJufADqmk01/BAAK5Xtw From: "Milanez, Marcus" To: "Tomcat Users List" X-OriginalArrivalTime: 21 Aug 2007 17:25:41.0133 (UTC) FILETIME=[4C2723D0:01C7E418] X-Virus-Checked: Checked by ClamAV on apache.org Have you considered using Lambda Probe for tracking tomcat memory use = details? Give it a try, maybe you'll be able to find alive object = references that could be garbage collected. http://www.lambdaprobe.org/ -----Mensagem original----- De: news [mailto:news@sea.gmane.org] Em nome de Morten Enviada em: ter=E7a-feira, 21 de agosto de 2007 09:11 Para: users@tomcat.apache.org Assunto: Re: Memory problems >> Are there any way to stop Tomcat from cached these large byte[]=20 >> internally? >> The ByteChunks are referenced from IntermediateOutputstream,=20 >> C2BConverter and OutputBuffer. >Hmm. Those are all Tomcat util classes, so they're almost certainly=20 >held by something else. Can you find out what's holding on to those=20 >instances, and make sure the chain of references goes entirely through=20 >Tomcat rather than via JBoss, your webapp or something you've cached in = >your session? > The graph looks like this: The byte[] is referenced from: - ByteChunk (A) - ByteChunk (B) ByteChunk (A) is referenced by: - org.apache.tomcat.util.buf.C2BConverter (AA) - org.apache.tomcat.util.buf.IntermediateOutputStream (AB) - org.apache.catalina.connector.OutputBuffer (AC) ByteChunk (B) is referenced by: - org.apache.catalina.connector.OutputBuffer (AC) C2BConverter (AA) is referenced by: - HashMap$Entry (AAA) - org.apache.catalina.connector.OutputBuffer (AC) IntermediateOutputStream (AB) is referenced by: - org.apache.tomcat.util.buf.C2BConverter (AA) - org.apache.tomcat.util.buf.WriteConvertor (ABA) - sun.nio.cs.StreamEnocder (ABB) OutputBuffer (AC) is referenced by: - org.apache.catalina.conncetor.CoyoteOutputStream (ACA) - org.apache.catalina.connector.CoyoteWriter (ACB) - org.apache.catalina.connector.Response (ACC) HashMap$Entry (AAA) is referenced by: - [] org.apache.catalina.conncetor.CoyoteOutputStream (ACA) is referenced by: - org.apache.catalina.connector.Response (ACC) org.apache.catalina.connector.CoyoteWriter (ACB) is referenced by: - org.apache.catalina.connector.Response (ACC) org.apache.catalina.connector.Response (ACC) is referenced by: - org.apache.catalina.connector.ResponseFacade (ACCA) - [] (ACCB) - org.apache.catalina.connector.Request (ACCC) I cannot find any trace of any JBoss or any webapp class. Best regards, Morten --------------------------------------------------------------------- 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 --------------------------------------------------------------------- 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