Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BA2336C30 for ; Fri, 3 Jun 2011 23:49:33 +0000 (UTC) Received: (qmail 80738 invoked by uid 500); 3 Jun 2011 23:49:33 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 80712 invoked by uid 500); 3 Jun 2011 23:49:33 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 80704 invoked by uid 99); 3 Jun 2011 23:49:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2011 23:49:33 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2011 23:49:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 76C6AF3092 for ; Fri, 3 Jun 2011 23:48:52 +0000 (UTC) Date: Fri, 3 Jun 2011 23:48:52 +0000 (UTC) From: "Jonathan Ellis (JIRA)" To: commits@cassandra.apache.org Message-ID: <882806653.67619.1307144932482.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1718552280.14101.1305484907635.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CASSANDRA-2654) Work around native heap leak in sun.nio.ch.Util affecting IncomingTcpConnection MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CASSANDRA-2654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jonathan Ellis updated CASSANDRA-2654: -------------------------------------- Affects Version/s: (was: 0.8.0 beta 2) (was: 0.7.5) (was: 0.6.13) Fix Version/s: (was: 0.6.12) 0.8.1 0.7.7 > Work around native heap leak in sun.nio.ch.Util affecting IncomingTcpConnection > ------------------------------------------------------------------------------- > > Key: CASSANDRA-2654 > URL: https://issues.apache.org/jira/browse/CASSANDRA-2654 > Project: Cassandra > Issue Type: Improvement > Components: Core > Environment: OpenJDK Runtime Environment (IcedTea6 1.9.7) (6b20-1.9.7-0ubuntu1~10.04.1) > OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode) > Also observed on Sun/Oracle JDK. Probably platform- and os-independent. > Reporter: Hannes Schmidt > Fix For: 0.7.7, 0.8.1 > > Attachments: 2654-v2.txt, 2654-v3.txt, 2654-v4-0.7.txt, 2654-v4.txt, chunking.diff > > > NIO's leaky, per-thread caching of direct buffers in combination with IncomingTcpConnection's eager buffering of messages leads to leakage of large amounts of native heap. Details in [1]. More on the root cause in [2]. Even though it doesn't fix the leak, attached patch has been found to alleviate the problem by keeping the size of each direct buffer modest. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira