I would set JAVA_OPTS in the startup script you're using to start
Tomcat. There are loads of emails on the list regarding this. This issue
is common enough you should be able to google the archives for details
and get loads of responses.

Also as others have suggested, check your code for memory leaks --
especially if it's not under load when it dies.

--David

[EMAIL PROTECTED] wrote:

>Sorry, where and how should I set the JDK heap size
>
>----- Original Message ----- 
>From: "Pradeep Chauhan" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Wednesday, August 04, 2004 1:28 PM
>Subject: RE: Tomact 5 - Out of Memory
>
>
>  
>
>>Increase the JDK heap size
>>either by JAVA_OPTS option or by registery
>>IF Tomcat install as NT service then Use registry method
>>else use JAVA_OPTS
>>
>>Pradeep
>>
>>-----Original Message-----
>>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>>Sent: 04.08.2004 09:08
>>To: Tomcat Users List
>>Subject: Tomact 5 - Out of Memory
>>
>>
>>Our enviroment is as following:
>>
>>Redhat 9
>>Tomact 5.0.19
>>JAVA 1.4.2_04
>>MYSQL 4.0.18
>>
>>However, our website stop response after running for 1 day, I checked the
>>log and there is following description
>>
>>StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw
>>    
>>
>exception
>  
>
>>java.lang.OutOfMemoryError
>>
>>So I need to restart the server everyday. I would like to ask if there is
>>any solution or setting to slove that.
>>
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to