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 42E86200B31 for ; Tue, 24 May 2016 19:53:21 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 418B7160A35; Tue, 24 May 2016 17:53:21 +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 630A316098E for ; Tue, 24 May 2016 19:53:20 +0200 (CEST) Received: (qmail 56853 invoked by uid 500); 24 May 2016 17:53:19 -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 56843 invoked by uid 99); 24 May 2016 17:53:19 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 May 2016 17:53:19 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 2DA0FC123A for ; Tue, 24 May 2016 17:53:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.613 X-Spam-Level: ** X-Spam-Status: No, score=2.613 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=2, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_WEB=0.614] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id SEYfJlnD9EfH for ; Tue, 24 May 2016 17:53:17 +0000 (UTC) Received: from smtp687.redcondor.net (smtp687.redcondor.net [208.80.206.87]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id A521E5FBDB for ; Tue, 24 May 2016 17:53:17 +0000 (UTC) Received: from mailproxy13.neonova.net ([137.118.22.78]) by smtp687.redcondor.net ({f50aeeea-7a14-4dd3-bdda-1246754c15b3}) via TCP (outbound) with ESMTP id 20160524175310622_0687 for ; Tue, 24 May 2016 17:53:10 +0000 X-RC-FROM: X-RC-RCPT: Received: from [10.0.46.168] (unknown [208.93.128.118]) (Authenticated sender: ralph.goers@dslextreme.com) by mailproxy13.neonova.net (Postfix) with ESMTPA id 8A27836007A for ; Tue, 24 May 2016 13:53:06 -0400 (EDT) From: Ralph Goers Content-Type: multipart/alternative; boundary="Apple-Mail=_205C1DFB-DF55-45AE-8403-FD9DE38A342D" Message-Id: Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: Garbage-free Log4j docs preview Date: Tue, 24 May 2016 10:53:05 -0700 References: <10013c64-b50f-43dd-a430-dd1ec637769c@googlegroups.com> <6e81e465-6f99-474b-8a81-ecdcb1be8791@googlegroups.com> To: Log4J Developers List In-Reply-To: <6e81e465-6f99-474b-8a81-ecdcb1be8791@googlegroups.com> X-Mailer: Apple Mail (2.3124) X-DLP-ENABLED: 137.118.22.64/27 X-MAG-OUTBOUND: greymail.redcondor.net@137.118.22.64/27 archived-at: Tue, 24 May 2016 17:53:21 -0000 --Apple-Mail=_205C1DFB-DF55-45AE-8403-FD9DE38A342D Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 The javadoc for FileDescriptor is fairly ambiguous. I=E2=80=99d have to = look at the code, but I would guess the the FileDescriptor may just be a = reference to the PrintStream. I really don=E2=80=99t think you can count = on what it points to. I would also worry about us trying to use the = FileDescriptor while the application might be writing to System.out.=20 Ralph > On May 24, 2016, at 10:30 AM, Remko Popma = wrote: >=20 >=20 > On Tuesday, May 24, 2016 at 11:27:33 PM UTC+9, Mikael St=C3=A5ldal = wrote: > Could we avoid that by using FileDescriptor.out / FileDescriptor.err = instead of System.out / System.err ? >=20 > On Tue, May 24, 2016 at 4:09 PM, Matt Sicker > wrote: > All the PrintStream.write() methods have locks. >=20 > On 24 May 2016 at 02:56, Mikael St=C3=A5ldal > wrote: > Do we know why Console has so bad performance (compared to File)? Is = this true also if you redirect STDOUT to a file? >=20 > and a preview of the updated performance page is here: = http://home.apache.org/~rpopma/log4j/2.6/performance.html = >=20 > I think these are really interesting questions, and I am curious if = anyone on this list can share their insights > =20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org > For additional commands, e-mail: log4j-dev-help@logging.apache.org --Apple-Mail=_205C1DFB-DF55-45AE-8403-FD9DE38A342D Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
The javadoc for FileDescriptor is fairly = ambiguous. I=E2=80=99d have to look at the code, but I would guess the = the FileDescriptor may just be a reference to the PrintStream. I really = don=E2=80=99t think you can count on what it points to. I would also = worry about us trying to use the FileDescriptor while the application = might be writing to System.out. 

Ralph

On = May 24, 2016, at 10:30 AM, Remko Popma <remko.popma@gmail.com> wrote:


On Tuesday, May 24, 2016 at 11:27:33 PM UTC+9, = Mikael St=C3=A5ldal wrote:
Could we avoid = that by using FileDescriptor.out / FileDescriptor.err instead of = System.out / System.err ?

On Tue, May 24, 2016 at 4:09 PM, Matt Sicker <boa...@gmail.com> wrote:
All the PrintStream.write() methods have locks.

On 24 May 2016 at = 02:56, Mikael St=C3=A5ldal <mikael....@magine.com> wrote:
Do we know why Console has so bad performance (compared to = File)? Is this true also if you redirect STDOUT to a file?

and = a preview of the updated performance page is here: http://home.apache.org/~rpopma/log4j/2.6/performance.html

I think these are really interesting questions, and I = am curious if anyone on this list can share their insights
 

---------------------------------------------------------------= ------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For = additional commands, e-mail: log4j-dev-help@logging.apache.org
<= br class=3D"">= --Apple-Mail=_205C1DFB-DF55-45AE-8403-FD9DE38A342D--