Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 68762 invoked from network); 4 Sep 2008 09:14:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Sep 2008 09:14:55 -0000 Received: (qmail 80175 invoked by uid 500); 4 Sep 2008 09:14:45 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 80150 invoked by uid 500); 4 Sep 2008 09:14:45 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 80127 invoked by uid 99); 4 Sep 2008 09:14:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Sep 2008 02:14:45 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [194.1.150.4] (HELO mail.globalgold.co.uk) (194.1.150.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Sep 2008 09:13:46 +0000 Received: from no-sv-03.ketech.local (unknown [217.33.180.2]) by mail.globalgold.co.uk (Postfix) with ESMTPSA id 12A15144003D for ; Thu, 4 Sep 2008 10:14:15 +0100 (BST) Received: from no-sv-03.ketech.local ([172.16.1.6]) by no-sv-03.ketech.local ([172.16.1.6]) with mapi; Thu, 4 Sep 2008 10:14:15 +0100 From: Michael Erskine To: Log4J Users List Date: Thu, 4 Sep 2008 10:14:13 +0100 Subject: RE: network logging performance Thread-Topic: network logging performance Thread-Index: AckOLnp/ZedndPYgT4yZpduvSBOJ1AAO1rgg Message-ID: <06BA3262D918014F9183B66425D5A8D43608077BF5@no-sv-03.ketech.local> References: <32E75534-6E85-4F81-8AE3-C66BB6055BAB@aconex.com> In-Reply-To: <32E75534-6E85-4F81-8AE3-C66BB6055BAB@aconex.com> Accept-Language: en-US, en-GB Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US, en-GB x-pmwin-version: 3.0.1.0, Antivirus-Engine: 2.78.0, Antivirus-Data: 4.33E x-puremessage: [Scanned] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org > If anyone out there is using "Logging over the network" of any form > (socket, JMS, Multicast, syslog appenders etc), this topic is for you. > I'm wondering whether people could comment on their experience setting > up high performance logging of application data over the network. For convenience I routinely configure SocketHubAppender instances for all m= y services and typically set a threshold of WARN to reduce traffic to impor= tant info. Where performance is deemed more important than the timely delivery of the = information I have custom asynchronous appenders with limited BlockingDeque= queues and daemon threads to pump out data at their leisure. Where I have multiple services logging across the network to a central plac= e I tend to use a custom JDBC asynchronous appender. In other scenarios I have networked systems that require certain log messag= es as part of a larger communications protocol. Here I have custom appender= s that catch LoggingEvent messages, translate them and drop them in the out= going BlockingDeque for the target system (I always work with queues on com= plex systems to encourage loose coupling). I don't tend to pass Java objects over the wire: call me a traditionalist b= ut when I write my protocols they tend to be human-readable 7-bit ASCII whe= re you can telnet to a server, issue commands and get replies. This is grea= t for unit testing, troubleshooting, etc. More recently I've been writing s= ystems that interoperate with 3rd party systems where XML is passed over th= e wire (so performance is not of major importance :) ) and here I tend to m= ake Apache XMLBeans and StAX parsers do all the work but internally I'll dr= op down to a human readable (and loggable!) protocol for testing and faster= interfacing. I have a strong belief that any non-trivial networked communications system= can be generalised to IRC! Just my 2 euros :) Regards, Michael Erskine. --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org