C
cswanson
I recently ported a high-transaction application I wrote in Java 1.3
to 1.5 and discovered a possible thread issue. The evidence suggests
that high thread generation such as 800 threads in three seconds will
cause the JVM to throw the following error:
java.lang.OutOfMemoryError: unable to create new native thread
This does not happen on Java 1.3.
Therefore, I anticipate there must be some tuning values I can send to
the JVM that I am unaware of.
I invoke the JVM with the following flags:
-Xmx512m -Xms64m
Everything else would be default.
I run this application on Linux and Solaris. The thread issue has been
observed only on Linux with jdk-1_5_0_06-linux-i586.bin from Sun as I
haven't executed the application using 1.5 on Solaris.
Any help would be appreciated.
Chris
to 1.5 and discovered a possible thread issue. The evidence suggests
that high thread generation such as 800 threads in three seconds will
cause the JVM to throw the following error:
java.lang.OutOfMemoryError: unable to create new native thread
This does not happen on Java 1.3.
Therefore, I anticipate there must be some tuning values I can send to
the JVM that I am unaware of.
I invoke the JVM with the following flags:
-Xmx512m -Xms64m
Everything else would be default.
I run this application on Linux and Solaris. The thread issue has been
observed only on Linux with jdk-1_5_0_06-linux-i586.bin from Sun as I
haven't executed the application using 1.5 on Solaris.
Any help would be appreciated.
Chris