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 B857D200BBD for ; Tue, 8 Nov 2016 17:32:00 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B6E8B160B14; Tue, 8 Nov 2016 16:32:00 +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 08BB4160B0C for ; Tue, 8 Nov 2016 17:31:59 +0100 (CET) Received: (qmail 79716 invoked by uid 500); 8 Nov 2016 16:31:59 -0000 Mailing-List: contact log4j-dev-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Developers List" Reply-To: "Log4J Developers List" Delivered-To: mailing list log4j-dev@logging.apache.org Received: (qmail 79591 invoked by uid 99); 8 Nov 2016 16:31:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2016 16:31:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id DE9A22C0276 for ; Tue, 8 Nov 2016 16:31:58 +0000 (UTC) Date: Tue, 8 Nov 2016 16:31:58 +0000 (UTC) From: "Remko Popma (JIRA)" To: log4j-dev@logging.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (LOG4J2-1595) (GC) Avoid allocating temporary objects in Filter implementations MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 08 Nov 2016 16:32:00 -0000 [ https://issues.apache.org/jira/browse/LOG4J2-1595?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Remko Popma updated LOG4J2-1595: -------------------------------- Description: Review current Filter implementation classes and change them to be garbage-free where feasible. Document on the web site which filters are garbage free and which are not. h4. Current status * (-) BurstFilter (allocates, non-trivial to change) * (/) CompositeFilter (adding & removing elements produces garbage for thread safety, no allocation in steady state) - since 2.6 * (/) DynamicThresholdFilter (garbage free since 2.6) * (/) LevelRangeFilter (garbage free since 2.8) * (/) MapFilter (garbage free since 2.8, but logging a MapMessage still allocates) * (/) MarkerFilter (garbage free since 2.8) * (-) RegexFilter (not garbagefree due to JDK regex library) * (-) ScriptFilter (not garbagefree: creates new Binding object for each event) * StructuredDataFilter (TBD) * (/) ThreadContextMapFilter (garbage free since 2.8) * (/) ThresholdFilter (garbage free since 2.8) * TimeFilter (uses Calendar to calculate millisSinceMidnight for each event. Can refactor by reusing some of the FixedDateFormat logic.) was: Review current Filter implementation classes and change them to be garbage-free where feasible. Document on the web site which filters are garbage free and which are not. h4. Current status * (-) BurstFilter (allocates, non-trivial to change) * (/) CompositeFilter (adding & removing elements produces garbage for thread safety, no allocation in steady state) - since 2.6 * (/) DynamicThresholdFilter (garbage free since 2.6) * (/) LevelRangeFilter (garbage free since 2.8) * (/) MapFilter (garbage free since 2.8, but needs LOG4J2-1683 since MapMessage allocates during filtering and logging) * (/) MarkerFilter (garbage free since 2.8) * (-) RegexFilter (not garbagefree due to JDK regex library) * (-) ScriptFilter (not garbagefree: creates new Binding object for each event) * StructuredDataFilter (TBD) * (/) ThreadContextMapFilter (garbage free since 2.8) * (/) ThresholdFilter (garbage free since 2.8) * TimeFilter (uses Calendar to calculate millisSinceMidnight for each event. Can refactor by reusing some of the FixedDateFormat logic.) > (GC) Avoid allocating temporary objects in Filter implementations > ----------------------------------------------------------------- > > Key: LOG4J2-1595 > URL: https://issues.apache.org/jira/browse/LOG4J2-1595 > Project: Log4j 2 > Issue Type: New Feature > Components: Filters > Affects Versions: 2.6.2 > Reporter: Remko Popma > Assignee: Remko Popma > Fix For: 2.8 > > > Review current Filter implementation classes and change them to be garbage-free where feasible. Document on the web site which filters are garbage free and which are not. > h4. Current status > * (-) BurstFilter (allocates, non-trivial to change) > * (/) CompositeFilter (adding & removing elements produces garbage for thread safety, no allocation in steady state) - since 2.6 > * (/) DynamicThresholdFilter (garbage free since 2.6) > * (/) LevelRangeFilter (garbage free since 2.8) > * (/) MapFilter (garbage free since 2.8, but logging a MapMessage still allocates) > * (/) MarkerFilter (garbage free since 2.8) > * (-) RegexFilter (not garbagefree due to JDK regex library) > * (-) ScriptFilter (not garbagefree: creates new Binding object for each event) > * StructuredDataFilter (TBD) > * (/) ThreadContextMapFilter (garbage free since 2.8) > * (/) ThresholdFilter (garbage free since 2.8) > * TimeFilter (uses Calendar to calculate millisSinceMidnight for each event. Can refactor by reusing some of the FixedDateFormat logic.) -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-dev-help@logging.apache.org