Return-Path: X-Original-To: apmail-maven-dev-archive@www.apache.org Delivered-To: apmail-maven-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E4FD518F49 for ; Sat, 21 Nov 2015 11:29:48 +0000 (UTC) Received: (qmail 34863 invoked by uid 500); 21 Nov 2015 11:29:48 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 34761 invoked by uid 500); 21 Nov 2015 11:29:48 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 34749 invoked by uid 99); 21 Nov 2015 11:29:48 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Nov 2015 11:29:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id CB0B9C7CFE for ; Sat, 21 Nov 2015 11:29:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.151 X-Spam-Level: X-Spam-Status: No, score=0.151 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id UhMT2Udde_cy for ; Sat, 21 Nov 2015 11:29:36 +0000 (UTC) Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 617222026A for ; Sat, 21 Nov 2015 11:29:35 +0000 (UTC) Received: by wmvv187 with SMTP id v187so103778473wmv.1 for ; Sat, 21 Nov 2015 03:29:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type:content-transfer-encoding; bh=kKiZfBHer011T7xphHro+Yen8tSkWvUyaiAxf37ords=; b=OcuvSA5U9i9qF9DZNm9sfCh6ywesbCmdo8jcao+G7S9jqi5oiDLIbL/eTdgG/J/7uI jWcut0KgYqKywlvk+/O2Rzy1vR6edtNHDXQ8iqUoijSQd9xxA03M+W2cnMgWOW9MC8Le 1pIb/iDYSXxz9otU3v8vCKD/5FtQcfrk02GRWuIydIP/jWrgqMKJvqn1KXtdZxWgYvFn H7+VmOgFNPtDYnreGaHLXA3n3g6ABN8xHdtWGkp8RGrcyww95yYPS0ZDH7QKpu+t2l1L HT253qNYwMFoYB0+ncgfGqAJrNMWKXejrPlfX4e9Y/wdGiky45vYIluztegIpGTMu2+/ vSTw== X-Received: by 10.28.130.7 with SMTP id e7mr5226056wmd.68.1448105375074; Sat, 21 Nov 2015 03:29:35 -0800 (PST) Received: from [192.168.178.34] (p4FF78380.dip0.t-ipconnect.de. [79.247.131.128]) by smtp.googlemail.com with ESMTPSA id vu4sm3797582wjc.2.2015.11.21.03.29.33 for (version=TLSv1/SSLv3 cipher=OTHER); Sat, 21 Nov 2015 03:29:33 -0800 (PST) Subject: Re: to delete windows build ? To: dev@maven.apache.org References: <56503683.1060300@gmx.de> <1820687.YWOl4ITBAd@herve-desktop> From: "Martin W. Kirst" X-Enigmail-Draft-Status: N1110 Message-ID: <5650559D.1090003@gmail.com> Date: Sat, 21 Nov 2015 12:29:33 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 MIME-Version: 1.0 In-Reply-To: <1820687.YWOl4ITBAd@herve-desktop> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Hi regarding the System.gc() hack it's close to impossible to say how much gets freed. According to http://bugs.java.com/view_bug.do?bug_id=6668279 only unsed object references are discovered and _may_ get released. AFAIK streams or file handles aren't closed by GC directly, but sometimes when the finalyze() is implemented this may work. E.g. consider the Inflater *1) has a end() method which frees up the off-heap memory resources (because inflater uses zlib via JNI). As long as such Inflater objects aren't garbage collected they can occupy huge amount of memory. To avoid such, its recommended to use try-finally constructs or try-resources (Java7) to explicitly release the resources. Knowing this makes me even more wonder, why the comments in ShadeMojo:643 state that there are unclosed streams are freed. *1) https://docs.oracle.com/javase/7/docs/api/java/util/zip/Inflater.html Regards Martin @nitram509 Am 21.11.2015 um 11:13 schrieb Herv� BOUTEMY: > [...] > Do you have an idea of how much recoverable such leaks are with the > System.gc() hack? > [...] --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org For additional commands, e-mail: dev-help@maven.apache.org