Not being a Java guy, I hesitate to ask, but should you not logout first then clear the context?
Ben From: Action Request System discussion list(ARSList) [mailto:[email protected]] On Behalf Of Thibaut Barrère Sent: January-24-12 08:59 To: [email protected] Subject: Re: Java API: how to really log out ? (v7.1) ** Hi Leaks are almost always the apps fault and not the APIs fault. Well in this case, the repro was fairly simple. I used JRuby and the Java ARS API 5.1, basically the following code: require 'arapi51' include_class 'com.remedy.arsys.api.ARServerUser' while true context = ARServerUser.new(user,password,'', host) context.login sleep(5) context.clear context.logout end Following along with TaskInfo, the process leaks 3 connections at each login. I did not run this against ARS 7+ but will soon and will report back here (as my customer is planning to upgrade). -- Thibaut _attend WWRUG12 www.wwrug.com ARSlist: "Where the Answers Are"_ _______________________________________________________________________________ UNSUBSCRIBE or access ARSlist Archives at www.arslist.org attend wwrug12 www.wwrug12.com ARSList: "Where the Answers Are"

