Results 1 to 1 of 1
- 11-16-2007, 01:47 PM #1
Member
- Join Date
- Nov 2007
- Posts
- 1
- Rep Power
- 0
OutOfMemoryError: Unable to Start New Native Thread
Hi all,
i am running Java 1.4.2_08-b03 on Sun Solaris SunOS 5.9.
In my application i spawn off many short lived threads. (Now, the design of this is out of my hands, it is a multi-user system, and we make use of LDAP connections, so whenever a new connection is obtained, the Sun LDAP implementation would spawn a new short lived thread.)
i understand that typically the above error ("OutOfMemoryError: Unable to Start New Native Thread") occurs when there is insufficient memory in the NATIVE heap rather than the Java heap (controlled by Xms and Xmx), and also, the bigger the Java heap (set with Xms and Xmx), the smaller the native heap and the more likely to run into the error.
However, what i am facing is that i'm running into the error when i tweak some other GC settings (i.e. Xms and Xmx remain constant).
1.This gives no problem.Java Code:-Xms2048m -Xmx2048m -XX:MaxPermSize=256m
2.3.Java Code:-Xms2048m -Xmx2048m -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -XX:+UseParNewGC
If i use (2) or (3), i run into the OutOfMemoryError.Java Code:-Xms2048m -Xmx2048m -XX:NewSize=310m -XX:MaxNewSize=310m -XX:MaxPermSize=256m
The reason why i need to try (2) and (3), is that with (1), with the default new size, after sometime, the remaining space in tenured is unable to fulfil the young generation guarantee, and it ends up doing a major collection every time.
Any suggestions please? i urgently need help here.
Thanks in advance,
Edwin
Similar Threads
-
My thread will not start
By markyoung1984 in forum Threads and SynchronizationReplies: 4Last Post: 10-03-2008, 06:32 PM -
Unable to start WEbSphere server using RAD IDE
By uppaluru in forum Other IDEsReplies: 1Last Post: 02-13-2008, 07:51 AM -
If JNI thread call the java object in another thread, it will crash.
By skaterxu in forum Advanced JavaReplies: 0Last Post: 01-28-2008, 07:02 AM -
OutOfMemoryError
By javaplus in forum New To JavaReplies: 2Last Post: 11-11-2007, 07:44 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks