WebSphere interview question · Most asked
WSVR0605W hung thread warnings appear and the application stops responding. What do you do?
Scenario
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'sserver 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
- Explain the traditional WebSphere Network Deployment architecture: cell, Deployment Manager, nodes, node agents, servers and clusters.
- How would you migrate an application from traditional WebSphere to Liberty?
- How does Liberty's server.xml and feature model work?
- How do you configure a JDBC data source and connection pool in Liberty and in traditional WAS?
- What is WebSphere Application Server, and how do Liberty and traditional WAS differ?
- Explain class loading in WebSphere: parent-first versus parent-last, and shared libraries.
- Users see errors and the logs show J2CA0045E: connection not available. How do you investigate?
- What is JNDI, and how do applications look up resources in WebSphere?