WebSphere interview question · Most asked

WSVR0605W hung thread warnings appear and the application stops responding. What do you do?

Scenario

Members can save this page, take notes and track progress. See membership · Sign in

Summary

WSVR0605W means a thread has been active longer than the hung-thread threshold (10 minutes by default). Collect javacores (thread dumps) a few times, 30 to 60 seconds apart, to see what the stuck threads are doing: usually waiting on a remote service or database with no timeout, a lock (deadlock), or an infinite loop. Restore service (restart the member, take it out of rotation), then fix the cause.

Longer Answer

  • Generate javacores with kill -3 <pid>, the admin console, wsadmin (AdminControl.invoke(jvm, 'dumpThreads')) or Liberty's server javadump.
  • Analyse with IBM Thread and Monitor Dump Analyzer or similar: look for many threads in the same stack.
  • Common fixes: timeouts on every HTTP client and JDBC query, circuit breakers (MicroProfile Fault Tolerance), fixing lock ordering.
  • When all WebContainer threads are hung, new requests queue and the server looks dead even though the JVM is up.

Key Points

  • Hung beyond the threshold (default 600 s).
  • Several javacores, 30-60 s apart.
  • Usually missing timeouts, locks or loops.
  • Restore service, then add timeouts and fix the code.

Explanation

What interviewers look for

Methodical thread-dump analysis and preventive timeouts.

More WebSphere questions

← All WebSphere questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake