laptop and a wrench

Bug

In Java ADF, the application server thread pool size does not shrink after session expiry in OC4J 10.1.3.1.

Last Published: August 25, 2014 No Product Found
Bug ID Number NIM040011
SubmittedNovember 11, 2008
Last ModifiedApril 2, 2025
Applies toNo Product Found
Version found9.2
Program languageJava
Version Fixed9.3
StatusFixed

Workaround

Write a httpsessionlistener class which will explicitly close all the app server threadspackage com.esri.helper;import javax.servlet.http.*; public class MySessionListenerimplements HttpSessionListener { public MySessionListener() {}public void sessionCreated(HttpSessionEvent sessionEvent) { }public void sessionDestroyed(HttpSessionEvent sessionEvent) { HttpSession session = sessionEvent.getSession();try{/*mapContext is the managed-bean-name defined for WebContext in faces config <managed-bean-name>mapContext</managed-bean-name> <managed-bean-class>com.esri.adf.web.data.WebContext</managed-bean-class> <managed-bean-scope>session</managed-bean-scope> */ com.esri.adf.web.data.WebContext ctx = (com.esri.adf.web.data.WebContext) session.getAttribute("mapContext");com.esri.adf.web.util.GroupThreadPool gt = ctx.getThreadPool();gt.shutdown(true);}catch(Exception e){ e.printStackTrace(); }}}

Steps to Reproduce

Bug ID: NIM040011

Software:

  • No Product Found

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options