tomcat - Java stack space versus maximum server request threads -
are java stack space , maximum number of request threads in server related each other?
can relationship between them result in server not responding requests , hanging?
threads each given own stack when allocated, , there maximum size each stack can reach (depending on vm implementation). so, stack size may set @ 1mb, example, might have 1000 threads giving total of 1gb maximum stack use between them.
if stack overruns, typically exception. suppose if have whole lot of threads holding lot of state on stack, not completing, , not overrunning, might exhaust memory , see resembling hang.
this question https://stackoverflow.com/a/20030999/857994 has interesting information if want take @ that.
Comments
Post a Comment