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!

checking stack size

843829Jul 12 2006 — edited Jul 16 2006
I have written a JNI app and it seems to work fine, but processing with very large files I run out of stack space.

I have solved this issue for the moment by changing the stack size with the -Xss param to java but this is not the ideal issue because with even bigger files I still will have issues.

So, I have 3 questions:

1. Is there any way (in the c++ dll) to query the total stack size ?
2. Is there any way to determine free (available) stack size ?
3. Is there any way to increase the stack size when the dll is already running (if it starts to get low)

I look forward to your thoughts

Ding
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 13 2006
Added on Jul 12 2006
3 comments
395 views