Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 886A6200D3B for ; Fri, 10 Nov 2017 14:46:59 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 87116160C03; Fri, 10 Nov 2017 13:46:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D61CD160BF2 for ; Fri, 10 Nov 2017 14:46:58 +0100 (CET) Received: (qmail 82709 invoked by uid 500); 10 Nov 2017 13:46:57 -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 82691 invoked by uid 99); 10 Nov 2017 13:46:57 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Nov 2017 13:46:57 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 36BF1D7E79 for ; Fri, 10 Nov 2017 13:46:56 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_NUMSUBJECT=0.5, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id CnIp_XIy7pSo for ; Fri, 10 Nov 2017 13:46:55 +0000 (UTC) Received: from mail-oi0-f46.google.com (mail-oi0-f46.google.com [209.85.218.46]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 4C3D961174 for ; Fri, 10 Nov 2017 13:46:55 +0000 (UTC) Received: by mail-oi0-f46.google.com with SMTP id i192so1339651oib.12 for ; Fri, 10 Nov 2017 05:46:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=d8Qe1OQVEPkhz8xuiSyfRkf+aJEO91h2eoIv06jihSc=; b=qq8cDj3SfHbquTwfyevI7L7+YI0gvwdkUahbpPQHlKcXA6OfKTvx/e0XOdepxiM/Xj PS/tRQ09lXnQKl6JeMLcocyaHFJwMDtnN+zysejZWs5GqWq2zNRYnKNrNx0Xkb69E0Z6 tHDi05ymc9Ph7MP3jH5mhrFfEp12CFwhRa+t1susujduUcRR7dYVFNnHuYyRaTEbVy+Y I75mJU644VJtzL/vvkjTPW3hb3tKIE0OmJMKlWADTSI8Ix37oBXxXuSBUV2B1OUUfjwJ 2UN5kXYT7ap0as2z/zeMxiLXwLOuizJV+MMyQ4CoTCYJsJvI6tIQF8/ZbnITYsm5HjJA q9Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=d8Qe1OQVEPkhz8xuiSyfRkf+aJEO91h2eoIv06jihSc=; b=arHeMj6qeJfVmYP97RZ2YKeV7lW4TeUheMsg0PApWfzDJa9cb4ALrBhcipCPWGfgR1 VkbGv+T+Y1QFmr2oShLXktu7T1JjpDn5tEmz51rInj7Jg5gHqUR/A55kJpQvDPFasAFJ Hbk2rClF74u/wL03YWwM45Ays7KjGADS/0/BT9rYsIaz5RB6iL91/5zQuYbrIDdFlHXx bfRL6OgFtXxx41iN2iNtp2PIS9/+zqFb1zNTtYd7mA7fy9toY2jxvSmaK/YKLSDlPL/2 KMlx1Kk6H5U+r6DlMli15iCm96YPFw8KYchWTNa6qS0G46UGIzjjdjTtSMwz8v0lXzEb qZ9g== X-Gm-Message-State: AJaThX7dnU0Aqc2oxdLTlgu91GAVc7cG5KGhC+MsarullOAbb6+WCF5O dmDg/0FwqTT/hESzggfUdJrfkj2RQw9fzhsuScpbLCqI X-Google-Smtp-Source: AGs4zMYN6c9TtoKhnGxsPJL/EivMunkRmx8yPLOrdLw1Rhk6WDA+/9JItv3SSodfKok04W11IXp9k+dQbzpUGc5d264= X-Received: by 10.202.84.10 with SMTP id i10mr262243oib.152.1510321614389; Fri, 10 Nov 2017 05:46:54 -0800 (PST) MIME-Version: 1.0 Received: by 10.74.37.83 with HTTP; Fri, 10 Nov 2017 05:46:53 -0800 (PST) In-Reply-To: References: From: Konstantin Kolinko Date: Fri, 10 Nov 2017 16:46:53 +0300 Message-ID: Subject: Re: Service killed by signal 9 To: Tomcat Users List Content-Type: text/plain; charset="UTF-8" archived-at: Fri, 10 Nov 2017 13:46:59 -0000 2017-11-10 12:31 GMT+03:00 Greg Huber : > Since switching to jsvc, randomly I am getting tomcat restarting, looking > at the logs I see that the jsvc is using alot of memory total-vm: and > being killed by the system. > > Nov 9 13:11:11 prodbox kernel: Out of memory: Kill process 1287 (jsvc) > score 121 or sacrifice child > Nov 9 13:11:11 prodbox kernel: Killed process 1287 (jsvc) > total-vm:3453120kB, anon-rss:378280kB, file-rss:0kB, shmem-rss:0kB > > I am using the below on properties on the startup (from previous version > statup scripts): > > -Xms256M -Xmx768m -Xss1280k -XX:+UseParallelGC -XX:MaxGCPauseMillis=1500 > -XX:GCTimeRatio=9 -server -XX:+DisableExplicitGC > > (I replaced -Xss256k with -Xss1280k to stop crashing see > https://issues.apache.org/jira/browse/DAEMON-365) The links in that issue go to a thread that explains that the issue is actually caused a kernel bug. It was reported & diagnosed in June 2017, thus should it have already been fixed? 1,2 Mb of stack for each thread mean that for 200 threads you will need 240 Mb of memory just for thread stacks. Most of that is wasted memory: You do not need to increase -Xss unless you are hitting StackOverflowError. > Is there a way to limit the total-vm or find out why its got so big? > -XX:+DisableExplicitGC ?? > > Standard tomcat install with apache/modjk. https://wiki.apache.org/tomcat/FAQ/Linux_Unix#Q5 In Tomcat Manager web application there is "Server Status" page. It has a table that shows current memory consumption, as reported by Java. The values can also be queried via JMX (e.g. with jconsole application). Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org