From owner-freebsd-questions@FreeBSD.ORG Mon Nov 25 22:32:26 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CB580516 for ; Mon, 25 Nov 2013 22:32:26 +0000 (UTC) Received: from mail.s1.d2ux.org (static.209.96.9.5.clients.your-server.de [5.9.96.209]) by mx1.freebsd.org (Postfix) with ESMTP id 8A4302ECB for ; Mon, 25 Nov 2013 22:32:26 +0000 (UTC) Received: from mail.s1.d2ux.org (mail [10.0.0.3]) by mail.s1.d2ux.org (Postfix) with ESMTP id 5A38E84F25EB for ; Mon, 25 Nov 2013 23:32:25 +0100 (CET) Received: from mail.s1.d2ux.org ([10.0.0.3]) by mail.s1.d2ux.org (mail.s1.d2ux.org [10.0.0.3]) (amavisd-new, port 10024) with ESMTP id XkMBRDlcy6OR for ; Mon, 25 Nov 2013 23:32:23 +0100 (CET) Received: from [192.168.2.117] (p579D29C4.dip0.t-ipconnect.de [87.157.41.196]) by mail.s1.d2ux.org (Postfix) with ESMTPSA id 6BBD384F25E8 for ; Mon, 25 Nov 2013 23:32:23 +0100 (CET) Message-ID: <5293EB36.9000303@petermann-it.de> Date: Tue, 26 Nov 2013 01:28:38 +0100 From: Matthias Petermann User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: Re: FreeBSD9.2: Tomcat process with very high memory allocation References: <5293C7F7.6040503@d2ux.org> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Nov 2013 22:32:26 -0000 Hello Anton, On 11/25/2013 11:08 PM, Anton Sayetsky wrote: > There is _no_ problem. Tomcat has 9 GiB of virtual memory and 439 MiB > of resident. > The actual amount of really used mem is 439 MiB. > Virtual contains all memory that theoretically can be used (but NOT > allocated at a point of time in contrast of res) by process, all > shared libraries that it used etc etc. In practice, virt memory shows > nothing helpful. > You should take a look on only resident memory of processes in most cases. > http://linuxpoison.blogspot.com/2009/10/what-is-difference-among-virt-res-and.html Just for curiosity - is there a way to display all (theoretically) used virtual memory of a process? So I'd like to understand how it calculates the total size shown in top. Many thanks in advance. Best regards, Matthias