From owner-freebsd-questions@FreeBSD.ORG Mon Nov 25 21:59:28 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 1254950D for ; Mon, 25 Nov 2013 21:59:28 +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 C7C0E2CB5 for ; Mon, 25 Nov 2013 21:59:27 +0000 (UTC) Received: from mail.s1.d2ux.org (mail [10.0.0.3]) by mail.s1.d2ux.org (Postfix) with ESMTP id B632E84F25D9; Mon, 25 Nov 2013 22:59:26 +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 VkmT8P8i01Wa; Mon, 25 Nov 2013 22:59:25 +0100 (CET) Received: from [192.168.100.13] (146-52-45-153-dynip.superkabel.de [146.52.45.153]) by mail.s1.d2ux.org (Postfix) with ESMTPSA id 0512184F25C6; Mon, 25 Nov 2013 22:59:24 +0100 (CET) Message-ID: <5293C7F7.6040503@d2ux.org> Date: Mon, 25 Nov 2013 22:58:15 +0100 From: Uwe Heber User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130922 Icedove/17.0.9 MIME-Version: 1.0 To: freebsd-questions@freebsd.org Subject: FreeBSD9.2: Tomcat process with very high memory allocation X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 8bit Cc: Matthias Petermann 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 21:59:28 -0000 Hello FreeBSD team, we are hosting a Java web application on our FreeBSD 9.2 server on which Tomcat 7.0 is used as runtime environment. During monitoring the Java process we have found out the Java process allocates 9GB of memory: 39819 www 35 20 0 9051M 439M uwait 4 0:31 0.00% jsvc www 39819 0.0 1.4 9268296 449704 ?? IJ 4:05PM 0:30.60 /usr/local/bin/jsvc -java-home /usr/local/openjdk6 -server -user www -pidfile /var/run/tomcat7.pid -wait 30 -out For this reason, we have reconfigured the Tomcat by setting up the minimum and maximum heap size in file /usr/local//bin/setenv.sh with following values: CATALINA_OPTS="$CATALINA_OPTS -Xms128m" CATALINA_OPTS="$CATALINA_OPTS -Xmx512m" After the Tomcat reboot the allocation remains at this very high consumption. Our question at this point: [1] Is this problem already known? [2] What are possible options regarding the setup which could solve the problem? If you need further information, please do not hesitate to contact us. Thanks for your support. -- Best regards, Uwe