I don't have a specific solution, but a path to follow might be with the demise
of your threads. If the server is not destroying the threads then memory will
get eaten up real quick. Another possiblility is if there is a loop in the
process that the threads follow. This results in 35 threads stuck in a loop
trying to go somewhere. Sorry I couldn't be more help.
DanC
Bruno Lowagie wrote:
> Hello,
>
> We have a serious problem with our Servlet based webapplication.
> In our website users can start calculations in background threads.
> They can follow the status of the calculations in a monitor
> with a refresh rate of 5 seconds.
> However when we reach a certain number of threads (not always
> the same number, approximatively 35, but sometimes less),
> we get a message from the JVM **Out of memory, exiting**
> The message comes from a routine in the library
> Solaris_JDK_1.2/jre/lin/sparc/libjvm.so
> The JVM crashes when this error occurs.
> We tried raising the heap and the stack with -X options:
> -Xss<size> set maximum native stack size for any thread
> -Xoss<size> set maximum Java stack size for any thread
> -Xms<size> set initial Java heap size
> -Xmx<size> set maximum Java heap size
> This doesn't help. We have 2 GB of RAM + swap, but this space
> is hardly used. The error isn't a question of lack of (hardware)
> memory. Can anybody help us?
>
> PS: decreasing the number of threads is not an option!
>
> Bruno
>
> ___________________________________________________________________________
> 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