You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by Radim Kolar <hs...@sendmail.cz> on 2008/09/10 00:09:31 UTC

Swap Sessions to disk

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
-- 
View this message in context: http://www.nabble.com/Swap-Sessions-to-disk-tp19402329s134p19402329.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.


Re: Swap Sessions to disk

Posted by Kevan Miller <ke...@gmail.com>.
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