From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 94954 invoked by alias); 15 Jan 2016 10:53:43 -0000 Mailing-List: contact kawa-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: kawa-owner@sourceware.org Received: (qmail 94930 invoked by uid 89); 15 Jan 2016 10:53:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=BAYES_50,KAM_LAZY_DOMAIN_SECURITY autolearn=no version=3.3.2 spammy=ressource, renewed, uns, probable X-HELO: smtp-n.oca.eu Received: from smtp-n.oca.eu (HELO smtp-n.oca.eu) (192.54.174.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 15 Jan 2016 10:53:40 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp-n.oca.eu (Postfix) with ESMTP id 60BEB797 for ; Fri, 15 Jan 2016 11:45:31 +0100 (CET) Received: from smtp-n.oca.eu ([IPv6:::ffff:192.54.174.171]) by localhost (smtp-n.oca.eu [::ffff:192.54.174.171]) (amavisd-new, port 10024) with ESMTP id 4EA7BPz1GMXw for ; Fri, 15 Jan 2016 11:45:27 +0100 (CET) Received: from dhcp2-21.oca.eu (dhcp2-21.oca.eu [10.250.2.21]) by smtp-n.oca.eu (Postfix) with ESMTP id D7BEA7AE for ; Fri, 15 Jan 2016 11:45:23 +0100 (CET) From: Damien MATTEI To: kawa@sourceware.org Subject: kawa and apache tomcat Date: Fri, 15 Jan 2016 10:53:00 -0000 User-Agent: KMail/1.9.6 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201601151145.23595.Damien.Mattei@unice.fr> X-IsSubscribed: yes X-SW-Source: 2016-q1/txt/msg00001.txt.bz2 hi, i 'm developping and testing a servlet application in tomcat 8 using some kawa code byte-compiled for java, so there is pure java code and kawa code hosted on the apache tomcat web server, all works fine but i noticed this when stopping the application (named Sidonie) in tomcat manager, tomcat complains about this in the log files: 15-Jan-2016 11:08:49.115 SEVERE [http-nio-8080-exec-12] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [Sidonie] created a ThreadLocal with key of type [gnu.mapping.Environment.InheritedLocal] (value [gnu.mapping.Environment$InheritedLocal@3dc806b8]) and a value of type [gnu.mapping.InheritingEnvironment] (value [#]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 15-Jan-2016 11:08:49.116 SEVERE [http-nio-8080-exec-12] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [Sidonie] created a ThreadLocal with key of type [java.lang.InheritableThreadLocal] (value [java.lang.InheritableThreadLocal@7927031f]) and a value of type [kawa.standard.Scheme] (value [kawa.standard.Scheme@3070d094]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 15-Jan-2016 11:08:49.116 SEVERE [http-nio-8080-exec-12] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [Sidonie] created a ThreadLocal with key of type [gnu.mapping.ThreadLocation.ThreadLocalWithDefault] (value [gnu.mapping.ThreadLocation$ThreadLocalWithDefault@599f5a94]) and a value of type [gnu.math.IntNum] (value [10]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 15-Jan-2016 11:08:49.116 SEVERE [http-nio-8080-exec-12] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [Sidonie] created a ThreadLocal with key of type [gnu.mapping.ThreadLocation.ThreadLocalWithDefault] (value [gnu.mapping.ThreadLocation$ThreadLocalWithDefault@6b51425b]) and a value of type [gnu.kawa.io.BinaryOutPort] (value [gnu.kawa.io.BinaryOutPort@4cf02060]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. this message appear the same number of times as the kawa code is called ,for example if i reload the web page which call again the kawa code i will have two instance of this message in log ... for info my kawa code are called after a Scheme.registerEnvironment(); tomcat seems cannot be able to free some kawa ressource, perheaps i should free them by myself in the code but scheme and java have their own garbage collector and normally deallocate ressource when no more in use, i use files with diffrent method too, when i do an open ,i close the file at end but not always when using some method such as gnu.list.blob... any ideas? regards, damien -- Damien.Mattei@unice.fr, Damien.Mattei@oca.eu, UNS / OCA / CNRS