ripper234 ripper234 - 1 year ago 107
Java Question

What is the maximum depth of the java call stack?

How deep do I need to go into the call stack before I get a StackOverflowError? Is the answer platform dependent?

Answer Source

It depends on the amount of virtual memory allocated to the stack.

You can tune this with the -Xss VM parameter or with the Thread(ThreadGroup, Runnable, String, long) constructor.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download