Jen wrote:
>
> I have a servlet that have a lot information to
> display. when I click one of the link which calls the
> servlet again, I got OutOfMemoryError. How can I deal
> it? I am runing on weblogic 5.1 on NT.
>
It's unclear what you want to happen (other than for
the error message to go away :-) You're going to have
to either use less memory or increase the amount of
memory available to the java runtime.
If you're not familiar with the -mx family of command
line parameters, then RTFM, usage is runtime specific.
If you know about -mx and friends, but aren't sure how
to add a command line param to weblogic, then your best
bet is to ask on a weblogic specific mailing list, or go
to the weblogic home page (presumably they have one) and
check there.
If you're asking about how to reduce memory usage in
your app, then you're going to need to do some research,
there isn't one simple answer. Try starting at:
<URL:http://java.sun.com/people/linden/intro.html>
<URL:http://www.apl.jhu.edu/~hall/java/FAQs-and-Tutorials.html>
Incidentally, moving from Strings to StringBuffers may
not be a good idea, it depends on the app. There is no
silver bullet...
-cks
___________________________________________________________________________
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