stack overflow crash
Hi all,
Can anyone suggest a way to dump the stack trace just when the JVM crashes due to stack overflow error?
I know it's possible and I've done it before, but it's been a while. It could have been with a third-party tool like YourKit, or maybe there are some well-hidden JVM options for that? Can't find anything right now.
I could create an error handler that would try to dump the stack trace for every thread; not sure if that would work.
The code that's crashing is not mine and it's pretty complicated, and while the basic reason for this error is pretty obvious, it won't be easy to find without the stack trace. It runs for a few hours before it gets the error, and at least in the beginning the stack looks OK.
Hopefully, there is a simple way to get it at the moment of the crash.
Any ideas will be appreciated.
Can anyone suggest a way to dump the stack trace just when the JVM crashes due to stack overflow error?
I know it's possible and I've done it before, but it's been a while. It could have been with a third-party tool like YourKit, or maybe there are some well-hidden JVM options for that? Can't find anything right now.
I could create an error handler that would try to dump the stack trace for every thread; not sure if that would work.
The code that's crashing is not mine and it's pretty complicated, and while the basic reason for this error is pretty obvious, it won't be easy to find without the stack trace. It runs for a few hours before it gets the error, and at least in the beginning the stack looks OK.
Hopefully, there is a simple way to get it at the moment of the crash.
Any ideas will be appreciated.
