Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9C226940A for ; Mon, 3 Oct 2011 21:32:05 +0000 (UTC) Received: (qmail 14119 invoked by uid 500); 3 Oct 2011 21:32:03 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 14034 invoked by uid 500); 3 Oct 2011 21:32:03 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 14026 invoked by uid 99); 3 Oct 2011 21:32:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2011 21:32:03 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HK_RANDOM_ENVFROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of teddyyyy123@gmail.com designates 209.85.213.172 as permitted sender) Received: from [209.85.213.172] (HELO mail-yx0-f172.google.com) (209.85.213.172) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Oct 2011 21:31:58 +0000 Received: by yxt33 with SMTP id 33so4921858yxt.31 for ; Mon, 03 Oct 2011 14:31:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=jSAW7mQpM1MDBGjZCUiTIjhlrCrGulgD/kpKP0Py9Oo=; b=kLdk/OBjwCbDqoW+ODbmqo8QiqwQEiN1+kjntPm6OxFjvk9vBjqcmKWYLCfQyPN4CX 23t/cYTLqBGaxoX6rluhT6SXSDr8/4l2QML/CyI9GEnv8nKcK7bgLKi7v9fO2piHgij3 TUX6/85WuwxZNUQ4KUl02XOshhG2jC+cA0wi8= MIME-Version: 1.0 Received: by 10.151.114.19 with SMTP id r19mr621028ybm.110.1317677498001; Mon, 03 Oct 2011 14:31:38 -0700 (PDT) Received: by 10.151.83.5 with HTTP; Mon, 3 Oct 2011 14:31:37 -0700 (PDT) In-Reply-To: References: Date: Mon, 3 Oct 2011 14:31:37 -0700 Message-ID: Subject: Re: disable mysterious GC From: Yang To: user@cassandra.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable btw the first code snippet is from openjdk 7 On Mon, Oct 3, 2011 at 2:29 PM, Yang wrote: > looks doc is outdated : > > $ grep '\.gcInterval' > ./j2se/src/share/classes/sun/rmi/transport/ObjectTable.java > =A0 =A0 =A0 =A0 =A0 =A0new GetLongAction("sun.rmi.dgc.server.gcInterval",= 3600000)); > > > On Mon, Oct 3, 2011 at 2:21 PM, Jonathan Ellis wrote: >> I would expect that client=3Dnodetool and server=3DCassandra. =A0But sun= 's >> docs say that sun.rmi.dgc.server.gcInterval defaults to 60s which I am >> definitely NOT seeing. >> >> On Mon, Oct 3, 2011 at 4:12 PM, Yang wrote: >>> the following source code in jdk , RMI part, forces a full gc every 1 >>> hour , if no old gen gc has happened by then. >>> >>> >>> >>> >>> =A0 =A0/** maximum interval between complete garbage collections of loc= al heap */ >>> =A0 =A0private static final long gcInterval =3D =A0 =A0 =A0 =A0 =A0 =A0= =A0// default 1 hour >>> =A0 =A0 =A0 =A0AccessController.doPrivileged( >>> =A0 =A0 =A0 =A0 =A0 =A0new GetLongAction("sun.rmi.dgc.client.gcInterval= ", >>> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A03600000)).lo= ngValue(); >>> >>> >>> >>> so if u have a large heap, and old gen gc does not happen frequently, >>> you need to set >>> >>> #sun.rmi.dgc.client.gcInterval >>> #sun.rmi.dgc.server.gcInterval >>> >>> to very high levels >>> >> >> >> >> -- >> Jonathan Ellis >> Project Chair, Apache Cassandra >> co-founder of DataStax, the source for professional Cassandra support >> http://www.datastax.com >> >