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 15D6010A3B for ; Tue, 16 Apr 2013 20:55:19 +0000 (UTC) Received: (qmail 52304 invoked by uid 500); 16 Apr 2013 20:55:15 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 52235 invoked by uid 500); 16 Apr 2013 20:55:15 -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 52224 invoked by uid 99); 16 Apr 2013 20:55:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Apr 2013 20:55:15 +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 (athena.apache.org: domain of pid@pidster.com designates 209.85.215.182 as permitted sender) Received: from [209.85.215.182] (HELO mail-ea0-f182.google.com) (209.85.215.182) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Apr 2013 20:55:11 +0000 Received: by mail-ea0-f182.google.com with SMTP id q15so439537ead.41 for ; Tue, 16 Apr 2013 13:54:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pidster.com; s=google; h=x-received:references:from:in-reply-to:mime-version:date:message-id :subject:to:content-type; bh=BfsHujogYUD0BVq7FE8NfMMHT1H2oEsdabfdlQt52JQ=; b=qcsagASs24ByrbpXbtddSGR0LA0geWBGslCfm/zMBCHjpFi/bwTRz3LXRsrEJ0rQHX ksvZcxKSItysLiM/04DUi5i8DqAFYjwYjW5eTYU5XtrW8HScaVSna8HA3bHnyLaQzu9k hEFen7BHk2Q4RY7jQEVb+5HGMzRGuqdH7CJok= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:references:from:in-reply-to:mime-version:date:message-id :subject:to:content-type:x-gm-message-state; bh=BfsHujogYUD0BVq7FE8NfMMHT1H2oEsdabfdlQt52JQ=; b=e4CsE/cFC9bnZSy2AKFNrXARw7OurfDpZbeer22rfSjXKV089K+2lUPLtqP2eKA5X1 QXUu5Gsd7NjvT2DwG/7n4pmHItvblNjj/8XGlYUNnxl6y8EAr51oF3WtEPIdbyqaO+8X SsoADSokKjm7g4Ffkr7Ps++XYhPhaoUXfEmcpctAvk0r1ouvHQ2Z32yh6BYv4+19zP5Q IjAxuNCmpIVHMTc6MGL9NOUQa6CfK9TTAmkKHLWM/0sjcFvjB0IhXPeVutwTE+1GZs6g 8SIxOPOILimTolG11alJZOxie9jLhA/VKMRXSTavWgK5EAjA+UNH84rhMPstu8fh/0bE jiAw== X-Received: by 10.14.223.72 with SMTP id u48mr3134932eep.44.1366145689319; Tue, 16 Apr 2013 13:54:49 -0700 (PDT) References: <5230540501921740190@unknownmsgid> <516D1A19.5090608@ice-sa.com> <516DA96D.2060407@christopherschultz.net> From: =?UTF-8?B?UMOvZCBzdMOocg==?= In-Reply-To: <516DA96D.2060407@christopherschultz.net> Mime-Version: 1.0 (1.0) Date: Tue, 16 Apr 2013 21:54:48 +0100 Message-ID: <-7116370485504284132@unknownmsgid> Subject: Re: ParNew promotion failed in verbose GC logs To: Tomcat Users List Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQl2gHTDeOkkV/jFTWrUNsxZquJozLgVrUO3868HlZWLdPbigthCRe/X6sE407FM4XPvijxf X-Virus-Checked: Checked by ClamAV on apache.org On 16 Apr 2013, at 20:42, Christopher Schultz wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA256 > > Vidyadhar, > > On 4/16/13 1:14 PM, Techienote com wrote: >> With default setting we were getting frequent OOM errors. After >> analyzing the heap dump we found >> org.apache.poi.hssf.usermodel.HSSFSheet is accumulating more heap >> memory. As per the application development this is the normal >> behavior and have suggested to increase the maximum heap size to >> 2048MB > > So, you keep lots of spreadsheets in memory for some reason? I can't > imagine that loading a Microsoft Excel document into memory and > keeping it in what POI calls "horrible spreadsheet format" is the best > way to keep that information around. I suppose only /you/ know you > requirements. > > Just how many spreadsheets do you need to keep in memory? > >> After increasing the max heap size we were seeing some large GC >> pauses for the same we tried to change the JVM policy to CMS and >> added following parameters >> >> -XX:+UseConcMarkSweepGC -XX:+UseParNewGC >> -XX:+CMSParallelRemarkEnabled > > Did you enable verbose GC logging before/after you enabled those > options? Did it help anything? Do you have any idea *why* your GCs > were taking so long, or did you just Google for "java gc is taking a > long time" and enable those options because they were "recommended" by > someone? > >> Since then the long pauses reduced from 112 seconds to 90 seconds. > > Without seeing your data, I would guess that it's only a coincidence > that your pauses have decreased in duration: you have likely not had > any improvement by changing the GC configuration. > >> Also we have seeing regular permanent generation concurrent mark >> failure which got reduced after changing NewSize to 512MB. > > Well, the NewSize shouldn't have any bearing on anything happening in > PermGen, other than maybe allowing OutOfMemoryErrors to occur if you > overfill PermGen. But that's not happening, here. +1 Did CMS in 1.5 actually collect in PermGen? (Genuinely don't know the answer to that) p > >> -Dsun.rmi.dgc.client.gcInterval=3600000 >> -Dsun.rmi.dgc.server.gcInterval=3600000 -XX:+DisableExplicitGC > > If I understand correctly (and I don't claim to be a GC ergonomics > expert), those options are mutually-exclusive. Disabling explicit GC > should disable the RMI's use of .. explicit garbage-collection. So, if > you really are using RMI, disabling explicit garbage-collection can > ruin everything. [See > http://www.oracle.com/technetwork/java/gc-tuning-5-138395.html#1.1.Other%20Considerations|outline]. > > Have you tried with a supported version of a Java VM? > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG/MacGPG2 v2.0.17 (Darwin) > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ > > iQIcBAEBCAAGBQJRbalsAAoJEBzwKT+lPKRY1/kP/isK8UjCkC3PB1WCgSp9aDNI > iOomoVHiXlL/0m4YTp/mxveB+8rs5edxrJPSeWJkpJAEs/4MU3MXVflapC2a90ij > FhcXd0QvR1Cf0KE97wWiwXWRTtn60wOErutvOqZ9/HnaVwWRBZhczlJ+ZEwQ9ms1 > vcFQMFsoOVFpFQT1rh4T+1ruRO+qorT1ybl7gkIPXNb4mkdgqrxkCiSwI2eB0w/p > b2Ig1ugx9wNB9petyfhVpOffl7jbl/18KdJXj5N1hKQ2tAfzOCSf6nTNeFluG+zd > J9/Wa6nOePgGf8+OzeIbvHS96u4SBOYt3NR1d/Vz1eIk1dvAxkp5aiBTvtv3l+Js > /TogUoHSjXILfH+zzutvoucHCFcAOtDD4O658z/BcfROnRBpz6TYoEhtGob3d+Zp > TFDM3N3WUt+566pKwNQtJfrOGJjq5IM7iBZKeofDiZGmJ1FiL89gdCWuHNpzvCX8 > sV8xuwBVEWXQwz+VuLW2FB9PaTSOUBqOMBjbt3sjjuY7Uw6lMEszDhXP7nAhlYEj > EsF9uXoWZBWMJZF+1p9KhjD3qNBhTKgB21TSzq59Mjw7FvhZE5pKDOqhYP/uyxi8 > nigqrjKJbKATBztpOiR8bjvb+LSJy0hvf6bNhvAZY6S4qRU6K2kWkFfPz3v6QIiz > GmxHvSCPXNHhx+X7S+3t > =YmSW > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org