Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 18037 invoked from network); 16 Sep 2008 02:35:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Sep 2008 02:35:52 -0000 Received: (qmail 89373 invoked by uid 500); 16 Sep 2008 02:35:48 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 89343 invoked by uid 500); 16 Sep 2008 02:35:48 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 89332 invoked by uid 99); 16 Sep 2008 02:35:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Sep 2008 19:35:47 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kevan.miller@gmail.com designates 66.249.82.227 as permitted sender) Received: from [66.249.82.227] (HELO wx-out-0506.google.com) (66.249.82.227) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Sep 2008 02:34:48 +0000 Received: by wx-out-0506.google.com with SMTP id r21so1319796wxc.25 for ; Mon, 15 Sep 2008 19:35:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:mime-version:subject:date:references :x-mailer; bh=0dldKKFkbcJV/H0P5JIz4RN8XRScJazs8LTFmYiLAbs=; b=AEDAL810HuONMJ+C3VFjhKP0cyk7tWNaKgfFxS8XthL02z0pxzfewnP3q1+on0TUnL zvxZ/+DhVFtJwWEfMnMv5+ZhnalHyqqPmCtYigR/tKk/htiCXHyMNjQToI771cF+Ab0t rzpmWsP0Idb8peurB4vZphLcyxgj/WIAfRwac= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type:mime-version:subject :date:references:x-mailer; b=fLMSbDap/N6sBCiYAiCIgFcWX/XF9sG7dpPbj6zHT/l6+84/IBx4SSMKwFfITUWkPJ LrSCknsIfYTtmDn1qo9MuvmAQLAFeu9Ee8sh3yJNzQTBLoIpmuQYWZGN1A4++NTVXk7q JdP0mWTelC+PIqJVMsDeV1ffnmi+NI4tFbjZU= Received: by 10.70.90.6 with SMTP id n6mr480436wxb.31.1221532503472; Mon, 15 Sep 2008 19:35:03 -0700 (PDT) Received: from ?10.0.1.185? ( [65.190.205.55]) by mx.google.com with ESMTPS id i17sm20120734wxd.12.2008.09.15.19.35.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 15 Sep 2008 19:35:02 -0700 (PDT) Message-Id: <2B281218-CFBB-47BA-8CAC-6A7152A1DD0C@gmail.com> From: Kevan Miller To: user@geronimo.apache.org In-Reply-To: <19402329.post@talk.nabble.com> Content-Type: multipart/alternative; boundary=Apple-Mail-23-559649453 Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: Swap Sessions to disk Date: Mon, 15 Sep 2008 22:35:01 -0400 References: <19402329.post@talk.nabble.com> X-Mailer: Apple Mail (2.926) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-23-559649453 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit On Sep 9, 2008, at 6:09 PM, Radim Kolar wrote: > > I have problem with session management. Currently G stores all > sessions in > memory, so after memory is exhausted, G crashes. > > Its very easy to DOS Geronimo server that way (just run ab benchmark > tool > from apache) and it takes just a few minutes. Also lot of bots don't > bother > with sending session cookie back - they are eating valuable server > memory if > session handling is enabled for JSP page. > > I propose to change tomcat session manager to manager with swap to > disk > feaure. its called org.apache.catalina.session.PersistentManager and > it > should be used by default and configured via portlet. Other > applications > servers, like WAS, can limit number of open sessions and thus > increasing > reliability. > > https://issues.apache.org/jira/browse/GERONIMO-3838 https://issues.apache.org/jira/browse/GERONIMO-3376 was intended to enable this support. A problem was fixed in 3376. However, I'm pretty sure the full function was not properly tested. Working properly, this would give you the ability to configure the maxActiveSessions for a StandardManager or configure a StandardManager. Agreed that it would be nice to be able to configure these features via the Admin Console. I'm not sure that PersistentManager should be the default, however. I'd be happy to start with just being able to configure this, period. Are you offering to help implement this? Your contributions would be most welcome! --kevan --Apple-Mail-23-559649453 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
On Sep 9, 2008, = at 6:09 PM, Radim Kolar wrote:


I = have problem with session management. Currently G stores all sessions = in
memory, so after memory is exhausted, G crashes.

Its very = easy to DOS Geronimo server that way (just run ab benchmark tool
from = apache) and it takes just a few minutes. Also lot of bots don't = bother
with sending session cookie back - they are eating valuable = server memory if
session handling is enabled for JSP page.

I = propose to change tomcat session manager to manager with swap to = disk
feaure. its called org.apache.catalina.session.PersistentManager = and it
should be used by default and configured via portlet. Other = applications
servers, like WAS, can limit number of open sessions and = thus increasing
reliability.

https://issue= s.apache.org/jira/browse/GERONIMO-3838

=
https://issue= s.apache.org/jira/browse/GERONIMO-3376 was intended to enable this = support. A problem was fixed in 3376. However, I'm pretty sure the full = function was not properly tested. Working properly, this would give you = the ability to configure the maxActiveSessions for a StandardManager or = configure a StandardManager.

Agreed that it = would be nice to be able to configure these features via the Admin = Console. I'm not sure that PersistentManager should be the default, = however. I'd be happy to start with just being able to configure this, = period.

Are you offering to help implement = this? Your contributions would be = most welcome!

--kevan

= = --Apple-Mail-23-559649453--