Santosh;

Try increasing the amount of memory available to JRun.


Start the JRun administrator.
Click on the General tab.
Click on the Java tab.
In Java arguments, enter something in the neighborhood
of -mx50m

This may simply delay the problem though. You need to
review your code and look for situations where you may
be holding references to objects that require large
memory allocations. This would prevent the grabage
collector from deallocating memory.

Additionally, you may want to call the garbage
collector explicitly at some point to hasten the
deallocation of memory.

System.gc();

//Nicholas


--- Santosh Kumar <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> In my project i am facing a problem with
> RequestDispatcher object The
> error it throws is "out of memory"
> I am doing the following:
>
> Being from a servlet(with switch case)  i have to
> call different jsp's
> depending on the case and at the same time i have to
> pass java objects
> from servlet to jsp....for this i am using request
> dispatcher the
> problem i am facing is:
>
> It passes objects to the first jsp file and when i
> click submit button
> in that .jsp the control has to forward to servlet
> and from servlet to
> another jsp file depending upon the
> case.............but it is throwing
> the above error.............
>
> I am using JRUN2.3(supports jsdk2.1) ,NES
> environment...............
>
>
> Can anybody help me regd this...............
>
> Regds
>
> santosh.Jagtap
>
>
___________________________________________________________________________
> 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
>


=====
"And what causes me to run?
'Cause you're a...
Big Black Furry Creature From Mars"


--
Nicholas Whitehead
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

___________________________________________________________________________
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

Reply via email to