There are a couple of things you can do to avoid the out of memory errors.

These 2 will only postpone the inevitable:
    - increase the amount of memory the VM can use
    - decrease the session timeout value

I don't think there's a mechanism in Tomcat 3.2 that would allow you to
persist your sessions. You could write an interceptor to do so though.

Session persistence is available in Tomcat4.0. You need to configure the
PersistentManager in the server.xml file. It is turned off by default.

One way to get around the out of memory errors would be to store as little
information as possible in your sessions and keep everything in the db
backend. For instance you could store the sql query in the session and keep
all the data in a database. This way, if the server goes down for any reason
you would still have all of your information in the db.

Justy

----- Original Message -----
From: "Michał Trojanowski" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, September 20, 2001 3:21 AM
Subject: session storing in tomcat 3.2


> Hi. I've got a problem. I'm using Tomcat 3.2 where I run
> quite complex JSP application. When too many users open
> their sessions on Tomcat, the java VM gets out of memory and
> Tomcat stops. I'd like to know if there is a possibility in Tomcat
> to store active sessions to the hard drive when a memory runs
> out and retrieve them when needed. I know, that in Tomcat 4.0
> one of features is "persistent sessions", but does this mean, that
> in previous versions there is no possibility to store sessions at all?
>
> Thanks for help.
>
> Michal Trojanowski
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
>  http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
>

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to