IBM Support

PI76509:Hang on org/apache/webbeans/context/sessioncontext.addchildrequest

Download


Abstract

Server threads hang on org/apache/webbeans/context/sessioncontext.addchildrequest

Download Description

PI76509 resolves the following problem:

ERROR DESCRIPTION:
Hanging threads after applying fix pack 8.5.5.11 / 8.0.0.13 or liberty
16.0.0.4 or 17.0.0.1

SystemOut.log and Java cores show:

[9-2-17 16:13:45:421 CET] 0000002f ThreadMonitor W WSVR0605W:
Thread "WebContainer : 35" (0000011d) has been active for 697463
milliseconds and may be hung. There is/are 1 thread(s) in
total in the server that may be hung.
at
java/util/HashMap.put(HashMap.java:506(Compiled
Code)) at java/util/HashSet.add(HashSet.java:229(Compiled Code))
at
org/apache/webbeans/context/SessionContext.addChildRequest(Sessi
onContext.java:118(Compiled Code))
at
org/apache/webbeans/web/context/WebContextsService.initRequestCo
ntext(WebContextsService.java:550(Compiled Code))
at
org/apache/webbeans/web/context/WebContextsService.startContext(
WebContextsService.java:417(Compiled Code))
at
com/ibm/ws/webbeans/services/JCDIWebListener.requestInitialized(
JCDIWebListener.java:321(Compiled Code))
at
com/ibm/ws/webcontainer/webapp/WebApp.notifyServletRequestCreate
d(WebApp.java:1908(Compiled Code))

Additional symptoms: session invalidation threads begin to
become blocked and an error similar to the following is logged
in javacores

Webcontainers 38,23,20,18 and 7 were blocked behind webcontainer
21 which was runnable and Owns Monitor Lock on
com/ibm/ws/session/store/memory/MemorySession@0x000000000852C740

at
java/util/HashMap$HashIterator.remove(HashMap.java:955(Compiled
Code))
at
org/apache/webbeans/context/SessionContext.isAnyRequestActive(Se
ssionContext.java:137(Compiled Code))
at
org/apache/webbeans/context/SessionContext.isAnyRequestActive(Se
ssionContext.java:123(Compiled Code))
at
org/apache/webbeans/web/context/WebContextsService.destroySessio
nContext(WebContextsService.java:717(Compiled Code))
at
org/apache/webbeans/web/context/WebContextsService.endContext(We
bContextsService.java:269(Compiled Code))
at
com/ibm/ws/webbeans/services/JCDIWebListener.sessionDestroyed(JC
DIWebListener.java:397(Compiled Code))
at
com/ibm/ws/session/http/HttpSessionObserver.sessionDestroyed(Htt
pSessionObserver.java:180(Compiled Code))
at
com/ibm/ws/session/SessionEventDispatcher.sessionDestroyed(Sessi
onEventDispatcher.java:160(Compiled Code))
at
com/ibm/ws/session/StoreCallback.sessionInvalidated(StoreCallbac
k.java:126(Compiled Code))
at
com/ibm/ws/session/store/memory/MemorySession.invalidate(MemoryS
ession.java:232)
at
com/ibm/ws/session/store/memory/MemorySession.invalidate(MemoryS
ession.java:878)

LOCAL FIX:
None

PROBLEM SUMMARY

USERS AFFECTED:
All users of IBM WebSphere Application
Server using CDI

PROBLEM DESCRIPTION:
Concurrent modification can corrupt a
HashSet leading to hanging threads

RECOMMENDATION:
None

A HashSet in the org.apache.webbeans.context.SessionContext
was undergoing concurrent modification. A hanging
thread with SessionContext on the stack is likely to be
resolved by this APAR.

PROBLEM CONCLUSION:
The Set in question was updated to use a different Set
implementation that can accept concurrent modification.

The fix for this APAR is currently targeted for inclusion in
fix packs 8.5.5.12, 8.0.0.14 and Liberty 17.0.0.2. Please
refer to the Recommended Updates page for delivery information:
http://www.ibm.com/support/docview.wss?rs=180&uid=swg27004980

Prerequisites

None

Installation Instructions

Please review the readme.txt for detailed installation instructions.

[{"INLabel":"V85 Readme","INLang":"US English","INSize":"7633","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PI76509/8.5.5.11/readme.txt"},{"INLabel":"V80 Readme","INLang":"US English","INSize":"7738","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PI76509/8.0.0.13/readme.txt"},{"INLabel":"16.0.0.4 Archive Readme","INLang":"US English","INSize":"7810","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/wlparchive/support/fixes/PI76509/16.0.0.4/readme.txt"},{"INLabel":"17.0.0.1 Archive Readme","INLang":"US English","INSize":"7798","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/wlparchive/support/fixes/PI76509/17.0.0.1/readme.txt"},{"INLabel":"16.0.0.4 Readme","INLang":"US English","INSize":"7607","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PI76509/16.0.0.4/readme.txt"},{"INLabel":"17.0.0.1 Readme","INLang":"US English","INSize":"7657","INURL":"ftp://public.dhe.ibm.com/software/websphere/appserv/support/fixes/PI76509/17.0.0.1/readme.txt"}]
On
[{"DNLabel":"8.5.5.11-WS-WAS-IFPI76509","DNDate":"03-17-2017","DNLang":"US English","DNSize":"273677","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm/WebSphere&product=ibm/WebSphere/WebSphere Application Server&release=All&platform=All&function=fixId&fixids=8.5.5.11-WS-WAS-IFPI76509&includeSupersedes=0","DNURL_FTP":" ","DDURL":null},{"DNLabel":"8.0.0.13-WS-WAS-IFPI76509","DNDate":"03-17-2017","DNLang":"US English","DNSize":"266477","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm/WebSphere&product=ibm/WebSphere/WebSphere Application Server&release=All&platform=All&function=fixId&fixids=8.0.0.13-WS-WAS-IFPI76509&includeSupersedes=0","DNURL_FTP":" ","DDURL":null},{"DNLabel":"16.0.0.4-WS-WLP-IFPI76509","DNDate":"17-4-25","DNLang":"US English","DNSize":"1669148","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm%2FWebSphere&product=ibm/WebSphere/WebSphere+Liberty&release=All&platform=All&function=fixId&fixids=16.0.0.4-WS-WLP-IFPI76509&includeSupersedes=0","DNURL_FTP":" ","DDURL":null},{"DNLabel":"17.0.0.1-WS-WLP-IFPI76509","DNDate":"17-4-25","DNLang":"US English","DNSize":"1672194","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm%2FWebSphere&product=ibm/WebSphere/WebSphere+Liberty&release=All&platform=All&function=fixId&fixids=17.0.0.1-WS-WLP-IFPI76509&includeSupersedes=0","DNURL_FTP":" ","DDURL":null},{"DNLabel":"16004-wlp-archive-IFPI76509","DNDate":"17-4-25","DNLang":"US English","DNSize":"1597777","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm%2FWebSphere&product=ibm/WebSphere/WebSphere+Liberty&release=All&platform=All&function=fixId&fixids=16004-WS-WLP-IFPI76509&includeSupersedes=0","DNURL_FTP":" ","DDURL":null},{"DNLabel":"17001-wlp-archive-IFPI76509","DNDate":"17-4-25","DNLang":"US English","DNSize":"1601352","DNPlat":{"label":"AIX","code":"PF002"},"DNURL":"http://www.ibm.com/support/fixcentral/swg/selectFixes?parent=ibm%2FWebSphere&product=ibm/WebSphere/WebSphere+Liberty&release=All&platform=All&function=fixId&fixids=17001-WS-WLP-IFPI76509&includeSupersedes=0","DNURL_FTP":" ","DDURL":null}]

Technical Support

Contact IBM Support using SR (http://www.ibm.com/software/support/probsub.html), visit the WebSphere Application Server support web site (http://www.ibm.com/software/webservers/appserv/was/support/), or contact 1-800-IBM-SERV (U.S. only).

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"General","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF012","label":"IBM i"},{"code":"PF013","label":"Inspur K-UX"},{"code":"PF016","label":"Linux"},{"code":"PF022","label":"OS X"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"},{"code":"PF014","label":"iOS"},{"code":"PF035","label":"z\/OS"}],"Version":"8.0.0.13;8.5.5.11","Edition":"Network Deployment;Single Server","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg24043475