Hi,
Thanks for your response, Craig McClanahan, and Dmoss.
If this is the case, does it mean that I cannot cache session data ? Then how
do I store my session data?
Is it by the way of writing data into hard disk as files?
May be I am bit confused , pls give your opinions.
thanks in advance.
-easwaran.P
---------------------------------------- Message History
----------------------------------------
From: [EMAIL PROTECTED] on 10/27/99 02:58 PM GMT
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: Re: caching long field as session data in JWS memory
Palanisamy Easwaran wrote:
> Hi,
>
> I tried to cache (session.putValue("SessionData",longfield)) a long field
data
> which is retrieved from database using JWS , it worked for few records.
> But, when I tried the same with more number of records , ofcourse I got the
> expected exception
>
> java.lang.OutOfMemoryError at java.lang.StringBuffer.append(Compiled
Code)
> at
> MyDbServlet.doGet(Compiled Code) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:715) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:840) at.
>
> I would like to know what is the maximum size of session data can be cached in
> memory of a web server?,
> how do we identify the size of session data allowed in cache of a web server?
>
The only limit is the overall heap size allocated to the JVM that is running the
servlet engine -- there is no limit on any individual session object (this is
true
of *all* objects in Java).
Most JVMs default to a fairly small maximum heap size (16 megs or 32 megs), but
offer a command line option or something to change the limit. Check the JWS
docs
for how to do it there.
>
> any help is appreciated,
>
> thanks in advance,
> easwaran.P
>
Craig McClanahan
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html