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 3B2F99AAF for ; Thu, 3 May 2012 15:38:25 +0000 (UTC) Received: (qmail 85612 invoked by uid 500); 3 May 2012 15:38:22 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 85499 invoked by uid 500); 3 May 2012 15:38:21 -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 85490 invoked by uid 99); 3 May 2012 15:38:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 May 2012 15:38:21 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [217.146.183.250] (HELO nm14-vm0.bullet.mail.ukl.yahoo.com) (217.146.183.250) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 03 May 2012 15:38:14 +0000 Received: from [217.146.183.183] by nm14.bullet.mail.ukl.yahoo.com with NNFMP; 03 May 2012 15:37:53 -0000 Received: from [77.238.184.53] by tm14.bullet.mail.ukl.yahoo.com with NNFMP; 03 May 2012 15:37:53 -0000 Received: from [127.0.0.1] by smtp122.mail.ukl.yahoo.com with NNFMP; 03 May 2012 15:37:53 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s1024; t=1336059473; bh=g7WSvHuoDTWs2+YvZ4o0oN6v7Io8HNrLpu91DU5SOdc=; h=X-Yahoo-Newman-Id:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding:X-Antivirus:X-Antivirus-Status; b=52lnoM6E1j7c7auGJMfhctlpsit2wanVCKDbrhzfgdjlt3QcAkhRjSLWxcHykuoz55NMAi0Ff4VpGHI/MJxdtkdYKaJbjy2ej0xBHmCvo3pzvc+A6eW71AFJyCTPPt7crY3jx+c2ihQM+XIUSOHD4YT1DeNp9RJbrvGBQUFmkYk= X-Yahoo-Newman-Id: 166278.2640.bm@smtp122.mail.ukl.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: XFmcmq4VM1nf5aMWe0QpRi1QT1hgbLmaDSOq68_rOCyrVXA 8Ug6Zp6nYl1SoHlh273R5itwGKAdURbla6r4F3AV1LQ4DlsivQFLbuenJul8 v2hLjEJTglJEr8KPdk9Nc.567lrx_SqwiTHsvJpawo86bD6G66P_UoKmddXi z6Rg3U.N5FXy52dRL5T6SUFg0VZc3m13bsAIJ1N5DRgJqbhZN7ZUNqcQ7kJc 5N.DVW04nBQJLd3mFUDkKiFm0wMN0.EilTZhuXNS6YDAGoLC2rBMj6xrZ1uT Nl0UkTcOxcw0ii0XPGNlrtFuyOQ3fqFoYcvsZLummsBAHAefHgBPYg6ASx4R zQS.layhY2KUy.fwWxHyxE6o0zq4Xm0cuuHiOc8e.irQhSLkMcRcb9r9bxAz QVxseXL2zyBaBoo3Zstv9mkmwXNucdNVBO1tU4kZkGrVeQFD.HrKFjYFzeLE O50U- X-Yahoo-SMTP: 4morDKeswBDE3lIuzd.cm_qbJNxlcsznEWqdK4MN Received: from [127.0.0.1] (miguel_3_gonzalez@85.49.193.157 with plain) by smtp122.mail.ukl.yahoo.com with SMTP; 03 May 2012 15:37:52 +0000 GMT Message-ID: <4FA2A64B.4050301@yahoo.es> Date: Thu, 03 May 2012 17:37:47 +0200 From: =?UTF-8?B?TWlndWVsIEdvbnrDoWxleiBDYXN0YcOxb3M=?= User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Tomcat pausing and no java process References: <4FA25F8C.6030804@yahoo.es> <4FA28854.6000300@pidster.com> <4FA29612.10106@yahoo.es> <4FA29D50.5060404@christopherschultz.net> In-Reply-To: <4FA29D50.5060404@christopherschultz.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Antivirus: avast! (VPS 120503-0, 03/05/2012), Outbound message X-Antivirus-Status: Clean X-Virus-Checked: Checked by ClamAV on apache.org > Unlikely. If you are using SSL or serving large static files, > APR/tcnative should be something that you look into using. I do use SSL, but all is dynamic jsps > > Honestly, I would put more effort into upgrading to a more recent > version of Tomcat than looking into using APR/tcnative. > >>>> No errors before in catalina.out. The only error found today >>>> (It crashed 3 times in 3 hours) was an outofmemory error. >>>> >>>> I changed from 1024Mb to 1536Mb in catalina.sh: >>>> >>>> CATALINA_OPTS="$CATALINA_OPTS -Xms1536m -Xmx1536m" >>> Do you actually have 2Gb of free RAM to assign to the Tomcat >>> process? Well, as someone asked: ]# cat /proc/meminfo MemTotal: 4194304 kB MemFree: 3700308 kB > Tomcat 5.5 doesn't really care what heap size it's got as > long as it's more than 4MiB or so. The page you referenced in here > doesn't even mention Tomcat 5.5. > > Usually the GC does do its job properly, and that includes pausing the > whole JVM in order to reclaim memory if necessary. The above thread > from ServerFault is about unresponsiveness, not about OOME: the GC > caused unresponsiveness to avoid OOME (and it worked). > > Stop making crazy claims and actually look at your own environment to > figure out what's going on. We had several crashes today: First - 1 outofmemory error Second- 3 Tomcat pausing Third - 2 or 3 times where catalina.out didn't show any error and tomcat died, only a big increase of memory use right before the java process died. That's why I assumed that maybe I have set the heap memory too high (I set it up because of the out of memory errors). That's why I googled to see if anyone had seen issues and that's why I reached that URL I have set up this: -XX:+HeapDumpOnOutOfMemoryError -XX:+UseConcMarkSweepGC -Xms128m -Xmx768m -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails I hope this way I can trace if there is any memory leak in the webapp. Considering that the developer decided to restart Tomcat once a week because the webapp didn't have enough resources, I find this very likely. Thanks for your inputs, Miguel --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org