Return-Path: Delivered-To: apmail-cxf-dev-archive@www.apache.org Received: (qmail 62771 invoked from network); 22 Nov 2010 13:08:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Nov 2010 13:08:17 -0000 Received: (qmail 11044 invoked by uid 500); 22 Nov 2010 13:08:49 -0000 Delivered-To: apmail-cxf-dev-archive@cxf.apache.org Received: (qmail 10712 invoked by uid 500); 22 Nov 2010 13:08:46 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Delivered-To: moderator for dev@cxf.apache.org Received: (qmail 62491 invoked by uid 99); 21 Nov 2010 15:35:54 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) To: bimargulies@gmail.com Cc: dev@cxf.apache.org Subject: Re: Permgen, permgen Content-transfer-encoding: 7bit From: dkulp@apache.org Content-type: text/plain; charset="utf-8" Message-id: <72573857-4806-4872-976E-66C177689B09@apache.org> Date: Sun, 21 Nov 2010 10:34:53 -0500 Mime-version: 1.0 (iPhone Mail 8A306) X-Virus-Checked: Checked by ClamAV on apache.org On Nov 21, 2010, at 9:43 AM, Benson Margulies wrote: > I see two apparent sinks of permgen in our build from yourkit. > > One is the XSD-to-Java mojo, which doesn't belong to us. But we might > be able to wrap it in such a way as to change its behavior. Or just use the cxf-xjc-plugin that we do have control over. Dan > > The other is the SOAPBindingUtil.getProxy. The proxy classes, which > co-locate in the class loader of the classes they proxy, never go > away. > > So, they end up in the per-plugin class loader, which isn't going to > go away for the life of the build. > > So, it looks like we need an additional classloader in the path here > that can be GC'd. > > The WSDL2Java mojo is the top of this. > > Question: should SOAPBindingUtil just use the thread context class > loader, which would allow us to easily deal with this in the mojo, > instead of sticking the proxies into the same class loader as the > things proxied? > > I think so.