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.