Were are battling this even as I type...

It seem that if jBoss hits the operating systems pid (thread) limit for a 
process, it throws out of memory exceptions. We just ran some load test 
scripts and when we get too many threads, pop goes the weasil.

I'm looking at two possibilities... Catch the out of memory exceptions in 
my code and then sleep for a bit and try again (not a great olution) or 
throw more hardware / operating system at it.

Maybe both.

Does anyone know what jBoss should do when the thread limit is hit?

Thanks...

Jim


--On Thursday, June 21, 2001 10:11 AM +0100 Nicolai P Guba 
<[EMAIL PROTECTED]> wrote:

> Hello
>
> The problem is much more drastic than I initially thought.  I just
> asked a question about closing PreparedStatements.  Obviously, I had a
> few errors.  I left the server running, recompiled the app,
> redeployed, forgot to remove one close on the stmt, then redeployed
> and now this is what I've got.
>
> [Auto deploy] Deployment
> failed:file:/usr/local/jboss-2.2.2/deploy/CAMS.jar [Auto deploy]
> org.jboss.deployment.J2eeDeploymentException: Error while starting
> CAMS.jar: unable to create new native thread [Auto deploy]    at
> org.jboss.deployment.J2eeDeployer.startApplication(J2eeDeployer.java:448)
> [Auto deploy]         at
> org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:178) [Auto
> deploy]       at java.lang.reflect.Method.invoke(Native Method) [Auto deploy]
>       at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [Auto deploy]         at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [Auto deploy]         at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:358)
> [Auto deploy]         at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:221)
> [Auto deploy]         at java.lang.Thread.run(Thread.java:484)
>
>          *ouch*
>
> It appears that it doens't only occur when it doesn't validate/verify,
> but also when there are transaction rollback exceptions.
>
>
> --
>   Nicolai P Guba    http://www.gnu.org         http://www.frontwire.com
>                     mailto:[EMAIL PROTECTED]     mailto:[EMAIL PROTECTED]
>                     GSM: +44 (0)7909 960 751   DDI: +44 (0)20 7368 9708
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user



********************************************
I shall be telling this with a sigh
Somewhere ages and ages hence:
Two roads diverged in a wood, and I -
I took the one less traveled by,
And that has made all the difference.

- Robert Frost, 1916


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to