Actually, We are using Postgresql and SQLServer.  Interesting combo
isn't it.

Here is some more pertinent information though.  We are able to
reproduce the problem by hammering (jmeter) a certain page that queries
out some entities.

We have a box with 4 gigs of ram, and we started jboss with -Xmx3072M.
Why not have an app server that can use lots of memory right?  Well,
just Barely, we thought that we'll try 512M and 1024M instead to see
what happens and wallahh, no MemoryError when we hammer the page.  

I don't know if the problem is fixed, but it does seem kind of weird
that it occurred when allowing java to run with the bigger heap size.  

I'm thinking that some more tests looking into the java/JAVA_OPTS side
of things instead of the jboss side of things will shed more light on
why this occurred in the first place anyway.  I guess is what I'm saying
is I don't think it's specific to JBoss.  Rather, it has to do with java
and the configuration of the hardware/memory.

-Dennis


On Mon, 2002-12-23 at 14:56, Schnitzer, Jeff wrote:
> Are you using Oracle?
> 
> We had the same problem.  "OutOfMemoryError: unable to create new native
> thread" with no obvious explanation; we weren't anywhere near the OS
> thread limit or any other limit we could determine.
> 
> After a lot of experimentation, we finally traced the problem down to
> the Oracle OCI driver.  Switching to the thin driver made the problem go
> away.  It also cured a serious memory leak (about 1 GB every 36 hours)
> in the native code (Java heap was normal).
> 
> We are using Oracle 9i RAC with the 9.2.0.1 jdbc driver for jdk 1.4.  We
> didn't see the problem on Solaris - only Linux.  We wanted to use the
> OCI driver to support Transparent Application Failover, but instead it
> seems to have provided only Chronic Application Failure :-(
> 
> Jeff Schnitzer
> [EMAIL PROTECTED]
> The Sims Online
> 
> > -----Original Message-----
> > From: Dennis Muhlestein [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, December 23, 2002 10:16 AM
> > To: [EMAIL PROTECTED]
> > Subject: [JBoss-user] OutOfMemoryError: unable to create new native
> thread
> > 
> > Hi All,
> > 
> > We've launched!  And we're using version 3.0.4  in Production.  During
> > Development, we never had any problems, but now on the live servers,
> we
> > get the following exception.  It's occurred 4 or 5 different times and
> > always has the same stack trace.  There isn't any other output to help
> > figure out what's going on besides this though.
> > 
> > 
> > 2002-12-18 18:04:26,649 ERROR [STDERR] java.lang.OutOfMemoryError:
> > unable to create new native thread
> > 2002-12-18 18:04:26,649 ERROR [STDERR]      at
> java.lang.Thread.start(Native
> > Method)
> > 2002-12-18 18:04:26,650 ERROR [STDERR]      at
> > org.jnp.server.Main.listen(Main.java:311)
> > 2002-12-18 18:04:26,650 ERROR [STDERR]      at
> > org.jnp.server.Main.run(Main.java:279)
> > 2002-12-18 18:04:26,650 ERROR [STDERR]      at
> > java.lang.Thread.run(Thread.java:536)
> > 
> > 
> > We have to stop jboss and start it again when this happends.
> > 
> > I'd like to find out more reliably how many threads are being used by
> > jboss.  We don't have much load yet.  "ps -u jboss | wc -l" is 52
> right
> > now.  It hasn't fluctuated much from that, but is that an accurate
> > number of threads being used?  I saw some discussion on the
> development
> > list about number of threads being more than that but am not quite
> sure
> > the best way to tell.  Any advise appreciated!
> > 
> > Anyway, if anyone has experienced something similar and found a way
> > around it, I'd be very greatfull to hear.
> > 
> > We're Using:
> > 
> > sun-jdk 1.4.1.01
> > gentoo linux
> > dual processor
> > 4 gigs memory
> > Here is the command line used when starting jboss:
> > 
> > /opt/sun-jdk-1.4.1.01/bin/java-Xmx3072M-Dprogram.name=run.sh-
> > classpath/opt/jboss-3.0.4/bin/run.jar:/opt/sun-jdk-
> > 1.4.1.01/lib/tools.jarorg.jboss.Main
> > 
> > 
> > Thanks
> > Dennis
> > 
> > 
> > 
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to