WebLogic stuck thread protection
Posted
by doublep
on Stack Overflow
See other posts from Stack Overflow
or by doublep
Published on 2010-04-25T18:40:33Z
Indexed on
2010/04/25
18:43 UTC
Read the original article
Hit count: 6583
By default WebLogic kills stuck threads after 15 min (600 s), this is controlled by StuckThreadMaxTime
parameter. However, I cannot find more details on how exactly "stuckness" is defined. Specifically:
- What is the point at which 15 min countdown begins. Request processing start? Last
wait()
-like method? Something else? - Does this apply only to request-processing threads or to all threads? I.e. can a request-processing thread "escape" this protection by spawning a worker thread for a long task? Especially, can it delegate response writing to such a worker without 15 min countdown?
My usecase is download of huge files through a permission system. Since a user needs to be authenticated and have permissions to view a file, I cannot (or at least don't know how) leave this to a simple HTTP server, e.g. Apache. And because files can be huge, download could (at least in theory) take more than 15 minutes.
© Stack Overflow or respective owner