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 4B92A771F for ; Mon, 21 Nov 2011 13:29:54 +0000 (UTC) Received: (qmail 15887 invoked by uid 500); 21 Nov 2011 13:29:50 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 15722 invoked by uid 500); 21 Nov 2011 13:29:50 -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 15713 invoked by uid 99); 21 Nov 2011 13:29:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Nov 2011 13:29:50 +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 vavra@602.cz designates 209.85.160.173 as permitted sender) Received: from [209.85.160.173] (HELO mail-gy0-f173.google.com) (209.85.160.173) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Nov 2011 13:29:44 +0000 Received: by ghbg19 with SMTP id g19so2318522ghb.18 for ; Mon, 21 Nov 2011 05:29:23 -0800 (PST) Received: by 10.152.144.73 with SMTP id sk9mr8872779lab.34.1321882162303; Mon, 21 Nov 2011 05:29:22 -0800 (PST) Received: from [192.168.1.211] (94.112.242.230.static.b2b.upcbusiness.cz. [94.112.242.230]) by mx.google.com with ESMTPS id hh9sm9592086lab.1.2011.11.21.05.29.20 (version=SSLv3 cipher=OTHER); Mon, 21 Nov 2011 05:29:21 -0800 (PST) Message-ID: <4ECA522C.7090809@602.cz> Date: Mon, 21 Nov 2011 14:29:16 +0100 From: =?UTF-8?B?SmFuIFbDoXZyYQ==?= User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Tomcat recycling References: <4EC67B49.10503@602.cz> <4EC6BBBE.60009@christopherschultz.net> In-Reply-To: <4EC6BBBE.60009@christopherschultz.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hello, > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Jan, > > On 11/18/11 10:35 AM, Jan Vávra wrote: >> is there any way how to tell tomcat: Recycle after X minutes OR Y >> requests like it is eg. on the IIS server? > Tomcat does not come with any mechanism for doing that. IIS has hacks to > work-around horrible programming; Tomcat has some workarounds > (ThreadLocal purging, etc.) but generally not. As I wrote I think I'd would be a good enhancement of Tomcat. > >> If I add my own script containing "/etc/init.d/tomcat restart" to >> the crontab I loose the user sessions and users have to relogin. > Then you need to fix your app. Unless you have changed the default, > Tomcat will persist sessions across restarts. This doesn't work if your > webapp puts non-serilizable objects into the session. Remember, just > marking a class as "implements Serializable" might not be enough. Thanks for a good hint. It works. > >> I experience some problems with OutOfMemory error. > Fix your webapp. > >> On tomcat I run a periodic thread that downloads CRLs and I >> suspect this of memory leaks. > Certificate Revocation Lists? What do you do with them? > > Why just guess at the cause of your memory leak when you can fairly > easily look at the objects that are taking up lots of room? Get a memory > profiler and take a look. If you want to validate a certificate that is outdated but comes with a timestamp, you need to have a historical crl to judge whether the cert was or wasn't revoked during it's validity period. Some authorities are deleting outdated certs from their crl. Jan >> I consider to cut out this to a standalone process called via >> crontab. > That would be my preference. I believe timer threads have no business > running inside a servlet container, but there are many who disagree > with me. > > - -chris > -----BEGIN PGP SIGNATURE----- > Version: GnuPG/MacGPG2 v2.0.17 (Darwin) > Comment: GPGTools - http://gpgtools.org > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk7Gu74ACgkQ9CaO5/Lv0PA9EwCgrJQWqZuyAJMu1BuOHazSJDeR > 8GEAnArB7wYhJ5KVsAGqT4h9UhzCyee6 > =HKqZ > -----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