Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 61A139C4F for ; Thu, 12 Apr 2012 13:06:44 +0000 (UTC) Received: (qmail 645 invoked by uid 500); 12 Apr 2012 13:06:40 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 587 invoked by uid 500); 12 Apr 2012 13:06:40 -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 578 invoked by uid 99); 12 Apr 2012 13:06:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Apr 2012 13:06:40 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of knst.kolinko@gmail.com designates 209.85.213.173 as permitted sender) Received: from [209.85.213.173] (HELO mail-yx0-f173.google.com) (209.85.213.173) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Apr 2012 13:06:34 +0000 Received: by yenr5 with SMTP id r5so1271370yen.18 for ; Thu, 12 Apr 2012 06:06:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=5rgqJY1Ckrqq9ZvuV3AXUBrwzZUfxGNikPlSRl1EjjI=; b=YolhEj5YaWf3VJgt2iS4lSAhqHXW7soMMMSQEJPP+lXuKJn6HIaOzCGLCg61PVNa46 VTqyb1UJHDiVY2mQg0CSjSneuQy4WE3Hcz7fVfCaFyzn7G8080cUIA1FmFr5sFUdAAVB nCMYklTZ7xtIN1e/yKdlStazUqk7L34EOWc3uzeEED0H5ti3jlT5PUf6p0xV4aD7HNpV bHtoY11TMcuoF2Fvr2MYc5sIu8yzNrWQnhhpXeepKl9KwVaSsvqKuklZ0BxHjhcnY754 9TPCF6akVXxkMrGyZbfvrB0mBzv/xxn8qChY/mg6Kbny1Rl9keN/+HBQg9ms/QtMozVO 9ZmQ== MIME-Version: 1.0 Received: by 10.236.115.200 with SMTP id e48mr359354yhh.14.1334235973463; Thu, 12 Apr 2012 06:06:13 -0700 (PDT) Received: by 10.146.204.18 with HTTP; Thu, 12 Apr 2012 06:06:13 -0700 (PDT) In-Reply-To: References: Date: Thu, 12 Apr 2012 17:06:13 +0400 Message-ID: Subject: Re: Increase in Virt Memory and RSS memory - Tomcat 6.0.x From: Konstantin Kolinko To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 2012/4/12 : > Hi, > > We are observing an increase in VIRT and RES memory of tomcat6.0 =A0which= internally invokes our custom API is invoked (This API internally does an = JNI call). > The same API code when invoked through a standalone java process repeated= ly does not lead to an increase in the VIRT /RES memory. > > Is there any way this could be debugged further? Any hints would be reall= y helpful. > 1. Treat Tomcat itself as a standalone application. Take a memory dump and load it into Profiler (e.g. Eclipse MAT) to see where the memory really goes. 2. The usual pitfall with "repeatedly invoked the servlet using a GET request" tests is that such clients usually ignore sessionid provided by Tomcat. Thus the count of active sessions grows rapidly. (That is if your servlet uses a session. This is more usual for JSP pages where sessions are enabled by default and people forget to add <%@page session=3D"false"%>). Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org