Return-Path: Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 6622 invoked by uid 500); 27 Jun 2003 18:45:59 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 6550 invoked from network); 27 Jun 2003 18:45:59 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: ThreadLocal Call objects using in a servlet memory leak ? Date: Fri, 27 Jun 2003 14:43:39 -0400 Message-ID: <0B28D7F18975964A85394D5762C76A52047406B6@CATL0MS03.corp.cox.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: ThreadLocal Call objects using in a servlet memory leak ? Thread-Index: AcM83AMnZ8WIsk5dQ0+zOYDT5QKCng== From: "Jackson, Jen (CCI-Atlanta)" To: , X-OriginalArrivalTime: 27 Jun 2003 18:45:48.0929 (UTC) FILETIME=[53959710:01C33CDC] X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Has anyone else noticed that if you create an = org.apache.axis.client.Call in a servlet in tomcat, it consumes a thread = and never dies? I seem to think this is because of the ThreadLocal = references throughout the classes. Is there something we can do to = avoid this? I am only following the documentation on how to use it, and = calling the generated code from a servlet: try { EdgeHealthPortType port =3D getService().getEdgeHealthPort(); modem =3D (String) map.get(UsageKeys.MODEM_MAC_ADDRESS_KEY); //this is the generated function, which creates an = org.apache.axis.client.Call object, //which gets somehow stuck in tomcat's threadpool forever....... usageToday =3D port.getModemCurrentUsage(modem); =20 =20 }=20 catch (javax.xml.rpc.ServiceException se) { throwError( modem, se, UsageKeys.ERROR_CURRENT_USAGE_NOT_AVAILABLE_KEY); }=20 catch (java.rmi.RemoteException re) { throwError( modem, re, UsageKeys.ERROR_CURRENT_USAGE_NOT_AVAILABLE_KEY); } And ideas? Anyone else experience this? I used Jprofiler to diagnose = this. =20 Jennifer Jackson Programmer/Analyst