Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AE515200D0F for ; Fri, 29 Sep 2017 20:34:11 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id ACD351609D1; Fri, 29 Sep 2017 18:34:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F257E1609BC for ; Fri, 29 Sep 2017 20:34:10 +0200 (CEST) Received: (qmail 33935 invoked by uid 500); 29 Sep 2017 18:34:10 -0000 Mailing-List: contact dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ws.apache.org Delivered-To: mailing list dev@ws.apache.org Received: (qmail 33921 invoked by uid 99); 29 Sep 2017 18:34:09 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 29 Sep 2017 18:34:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 83A771A4212 for ; Fri, 29 Sep 2017 18:34:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id k2N0JfsgnmyR for ; Fri, 29 Sep 2017 18:34:08 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id E962D5FDE7 for ; Fri, 29 Sep 2017 18:34:07 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B5DF1E0EEF for ; Fri, 29 Sep 2017 18:34:05 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 53154242C1 for ; Fri, 29 Sep 2017 18:34:02 +0000 (UTC) Date: Fri, 29 Sep 2017 18:34:02 +0000 (UTC) From: "Leandro Quiroga (JIRA)" To: dev@ws.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (WSS-614) org.apache.ws.security.transform.STRTransformProvider leak MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 29 Sep 2017 18:34:11 -0000 [ https://issues.apache.org/jira/browse/WSS-614?page=3Dcom.atlassian.ji= ra.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1618620= 7#comment-16186207 ]=20 Leandro Quiroga commented on WSS-614: ------------------------------------- Hi Colm, I=C2=B4ve developed a solution that calls the WSSConfig.cleanUp() = method on context destroy. I=C2=B4ve just made the pull request. It consists in a new module that has a ServletContextListener, WssServletCo= ntextListener. This WssServletContextListener calls WSSConfig.cleanUp() met= hod when contextDestroyed() is invoked. I=C2=B4ve made it in a different module so it could be included in web appl= ications. https://github.com/apache/wss4j/pull/8/commits/5683be2df05fe64075d848fb416e= a14dfa1c0a38 > org.apache.ws.security.transform.STRTransformProvider leak > ---------------------------------------------------------- > > Key: WSS-614 > URL: https://issues.apache.org/jira/browse/WSS-614 > Project: WSS4J > Issue Type: Bug > Components: WSS4J Core > Affects Versions: 1.6.19, 2.0.10, 2.1.10 > Environment: Java 1.8.0_131 > JBoss EAP 6.4.1 > Reporter: Leandro Quiroga > Assignee: Colm O hEigeartaigh > Labels: leak > Attachments: STRTransformProvider leak.jpg > > > A memory leak occur when undeploying a web application that uses WSS4J. > The org.apache.ws.security.transform.STRTransformProvider is appended to = java.security.Security at initialization in org.apache.ws.security.WSSConfi= g.init() but never removed. > I've tested in wss4j-1.6.17 but I think it is the same in 1.6.19, 2.0.10 = and 2.1.10. > I've attached a screenshot of Eclipse MAT showing the leak. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org For additional commands, e-mail: dev-help@ws.apache.org