Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JVM Crashes when executing native code (due to stack size limitation)

843811Jul 3 2003 — edited Jun 28 2005
I have some C++ code that does a lot of recursion. When it is run on it's own it works fine. However, when it is run through a JNI call from a java app, it crashes due to a Stack Overflow. I've tried to increast the stack size using -Xss, but I continue to get a stack overflow. If I make -Xss too big, I get this error: Fatal: Unable to create signal thread (may be due to resource limit).

So, is there something else that can be done to fix this problem with the JVM stack??

Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 26 2005
Added on Jul 3 2003
5 comments
778 views