Hi, Maybe you are doing a lot of object creation which are not being garbage collected due to alive but invalid (ie not required by your code) references. Best thing to do is to actually check your code for something like that ( and i am talking nothing less than the memory profiling of your code ) Another solution for that is if your servlet does need more memory (or a short cut soln to the problem ) than the default heap size you can specify in the jserv.properties file of your Apache/JServ configuration something like : ----------------Snippet of jserv.properties--------------------------- wrapper.bin=/usr/jdk117_v3/bin/java wrapper.bin.parameters=-ms20m wrapper.bin.parameters=-mx40m -----------------Snippet of jserv.properties end------------------------- Hope that helps Rishi. Sigurpall Johannsson wrote: > Hi all > > Can anybody help me with this one: > My servlets crash 1-2 times each 24 hours. > When I check out my error log file this is the output: > java.lang.OutOfMemoryError > at org.apache.jserv.JServConnection.processRequest(Compiled Code) > at org.apache.jserv.JServConnection.run(Compiled Code) > at java.lang.Thread.run(Compiled Code) > > Also can anybody guide me where to catch this error. > > I am using Apache/1.3.9 with ApacheJServ/1.1b2 on Linux(Red Hat) > I am using jsdk2.0 and DBConnection from JavaExchange > > best regards > > Sigurpall Johannsson > Sotware engineer > www.BePaid.Com > Tel: (+354)5888112 > Fax: (+354)8617539 > Mobile: (+354)8617539 > [EMAIL PROTECTED] > > ___________________________________________________________________________ > 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
begin:vcard n:Asthana;Rishi tel;fax:1-732-548-4009 tel;home:1-732-635-3597 tel;work:1-732-548-0087 x-mozilla-html:FALSE org:NetCom Systems, Inc;Software Development adr:;;116,Copperfield Ln ;Metuchen;NJ;08840;USA version:2.1 email;internet:[EMAIL PROTECTED] title:Systems Consultant x-mozilla-cpt:;-3936 fn:Rishi Asthana end:vcard
