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 B6045200B98 for ; Mon, 3 Oct 2016 13:44:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B4945160ADC; Mon, 3 Oct 2016 11:44:49 +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 AE012160ACC for ; Mon, 3 Oct 2016 13:44:48 +0200 (CEST) Received: (qmail 72441 invoked by uid 500); 3 Oct 2016 11:44:47 -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 72431 invoked by uid 99); 3 Oct 2016 11:44:47 -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; Mon, 03 Oct 2016 11:44:47 +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 BD10BC138C for ; Mon, 3 Oct 2016 11:44:46 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.629 X-Spam-Level: ** X-Spam-Status: No, score=2.629 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-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 8VIOmAhj02ZX for ; Mon, 3 Oct 2016 11:44:44 +0000 (UTC) Received: from mail-wm0-f44.google.com (mail-wm0-f44.google.com [74.125.82.44]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 454C45F365 for ; Mon, 3 Oct 2016 11:44:44 +0000 (UTC) Received: by mail-wm0-f44.google.com with SMTP id p138so146386194wmb.1 for ; Mon, 03 Oct 2016 04:44:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=HH3FnkLg0sBpAPuX3TPiNUfuVWFQLUdLBl1oQAGki+w=; b=E93zmiut8y+r872VAxZeoCqf2uY8aKZ/zzh3Z5ii5ygDk2Mv2LsmNMoGczTbME6eN0 rkr/R+DkFtj73VL9VFq5i/pCqowedpWgeRLcXzf5YYbz1N7GvUcuRVOYKlRcM0/XzRmJ zHKuYmPG1ZITv54wCScO4aVoTjnroojR7OHsOWWEc2XO+qtJAf5s7kUGhitvEYh7EQ6s F14jm9GyWGGPCc1TR6rU/g5GMks33jvpFqeI/e65/lK+4S1slOVZw+z24Qt1dYaji70s EWXPUW5z37hkHM5GmHHTMic2cW2UvVJoXAyyzefZMdw4gGV36U/I0D4mg8+ZX7Tj/cIH 7Mfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=HH3FnkLg0sBpAPuX3TPiNUfuVWFQLUdLBl1oQAGki+w=; b=cQf1ozf1rAScJdsarfvUH8kVmI9DOw4Sa8R/04a4GYJGYmLNF1omedXA0L9+5z7lpB F2gIjy0sQawVtQiA1f4UQ2gOHFOAFkHkL/rOzhAFxDJV0pQMU/cqqxmH++9wj2R0X3Ln AwxAqJcrHfXlfHbB1FQlYD8BMO8Z9o8bZ+zjfoaRt0jAPjJdvh3rMN7aUYew8jMbcfC3 CSHt9BwYC+743CfILKIf7kHrsuWBvtzDJPBMNELsD4kuaSfHcVxQmaBNYGZvpHWxtOAJ 0GgCLC78jEFtSCQoIx3aumsSxsXsxhE3SHSJiElikO3ZBg8+mlXVO0MQyeBi0HWTaXOy rHlw== X-Gm-Message-State: AA6/9RkBdpMmOOBnVeRKtVTXFbKPMKKNHgxrZWJMDB3pQ9gBljHriy7HG4Gumf9vuccSgwHZM6YMJRNTDEJRKQ== X-Received: by 10.28.5.133 with SMTP id 127mr10078744wmf.129.1475495082045; Mon, 03 Oct 2016 04:44:42 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.236.142 with HTTP; Mon, 3 Oct 2016 04:44:41 -0700 (PDT) In-Reply-To: References: From: Jean Carlo Date: Mon, 3 Oct 2016 13:44:41 +0200 Message-ID: Subject: Re: cassandra dump file path To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=001a114435cc3bb517053df47807 archived-at: Mon, 03 Oct 2016 11:44:49 -0000 --001a114435cc3bb517053df47807 Content-Type: text/plain; charset=UTF-8 OK I got the response to one of my questions. In the script /etc/init.d/cassandra we set the path for the heap dump by default in the cassandra_home. Now the thing I don't understand is, why do the dumps are located by the file set by /etc/init.d/cassandra and not by the conf file cassandra-env.sh? Anyone any idea? Saludos Jean Carlo "The best way to predict the future is to invent it" Alan Kay On Mon, Oct 3, 2016 at 12:00 PM, Jean Carlo wrote: > > Hi > > I see in the log of my node cassandra that the parameter -XX:HeapDumpPath > is charged two times. > > INFO [main] 2016-10-03 04:21:29,941 CassandraDaemon.java:205 - JVM > Arguments: [-ea, -javaagent:/usr/share/cassandra/lib/jamm-0.3.0.jar, > -XX:+CMSClassUnloadingEnabled, -XX:+UseThreadPriorities, > -XX:ThreadPriorityPolicy=42, -Xms6G, -Xmx6G, -Xmn600M, *-XX:+HeapDumpOnOutOfMemoryError, > -XX:HeapDumpPath=/cassandra/dumps/cassandra-1475461287-pid34435.hprof*, > -Xss256k, -XX:StringTableSize=1000003, -XX:+UseParNewGC, > -XX:+UseConcMarkSweepGC, -XX:+CMSParallelRemarkEnabled, > -XX:SurvivorRatio=8, -XX:MaxTenuringThreshold=1, -XX: > CMSInitiatingOccupancyFraction=30, -XX:+UseCMSInitiatingOccupancyOnly, > -XX:+UseTLAB, -XX:CompileCommandFile=/etc/cassandra/hotspot_compiler, > -XX:CMSWaitDuration=10000, -XX:+CMSParallelInitialMarkEnabled, -XX:+CMSEdenChunksRecordAlways, > -XX:CMSWaitDuration=10000, -XX:+UseCondCardMark, -XX:+PrintGCDetails, > -XX:+PrintGCDateStamps, -XX:+PrintGCApplicationStoppedTime, > -Xloggc:/var/opt/hosting/log/cassandra/gc.log, -XX:+UseGCLogFileRotation, > -XX:NumberOfGCLogFiles=20, -XX:GCLogFileSize=20M, > -Djava.net.preferIPv4Stack=true, -Dcom.sun.management.jmxremote.port=7199, > -Dcom.sun.management.jmxremote.rmi.port=7199, -Dcom.sun.management.jmxremote.ssl=false, > -Dcom.sun.management.jmxremote.authenticate=false, -Dcom.sun.management. > jmxremote.password.file=/etc/cassandra/jmxremote.password, > -Djava.io.tmpdir=/var/opt/hosting/db/cassandra/tmp, -javaagent:/usr/share/ > cassandra/lib/jolokia-jvm-1.0.6-agent.jar=port=8778,host=0.0.0.0, > -Dcassandra.auth_bcrypt_gensalt_log2_rounds=4, > -Dlogback.configurationFile=logback.xml, -Dcassandra.logdir=/var/log/cassandra, > -Dcassandra.storagedir=, -Dcassandra-pidfile=/var/run/cassandra/cassandra.pid, > *-XX:HeapDumpPath=/var/lib/cassandra/java_1475461286.hprof*, > -XX:ErrorFile=/var/lib/cassandra/hs_err_1475461286.log] > > This option is defined in cassandra-env.sh > > if [ "x$CASSANDRA_HEAPDUMP_DIR" != "x" ]; then > JVM_OPTS="$JVM_OPTS -XX:HeapDumpPath=$CASSANDRA_HEAPDUMP_DIR/cassandra-`date > +%s`-pid$$.hprof" > fi > and we defined before the value of CASSANDRA_HEAPDUMP_DIR before to > > > */cassandra/dumps/* > It is seems that cassandra does not care about the conf in > cassandra-env.sh and he only takes in account the last set for HeapDumpPath > > */var/lib/cassandra/java_1475461286.hprof* > This causes problems when we have to dump the heap because cassandra uses > the disk not suitable to do it. > > Is *XX:HeapDumpPath *set in another place/file that I dont know? > > Thxs > > Jean Carlo > > "The best way to predict the future is to invent it" Alan Kay > --001a114435cc3bb517053df47807 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
OK I got the response to one of my questions. In= the script /etc/init.d/cassandra we set the path for the heap dump by defa= ult in the cassandra_home.

Now the thing I don't understan= d is, why do the dumps are located by the file set by /etc/init.d/cassandr= a and not by the=C2=A0 conf file cassandra-env.sh?

Anyone any = idea?


Saludos
=
Jean Carlo

"The= best way to predict the future is to invent it" Alan Kay


On Mon, Oct 3, 2016 at 12:00 PM, Jean Carlo = <jean.jeancarl48@gmail.com> wrote:

Hi

I s= ee in the log of my node cassandra that the parameter -XX:HeapDumpPath is c= harged two times.

INFO=C2=A0 [main] 2016-10-03 04:21:29,941 Cassandr= aDaemon.java:205 - JVM Arguments: [-ea, -javaagent:/usr/share/cassandr= a/lib/jamm-0.3.0.jar, -XX:+CMSClassUnloadingEnabled, -XX:+UseThreadPrioriti= es, -XX:ThreadPriorityPolicy=3D42, -Xms6G, -Xmx6G, -Xmn600M, -XX:+H= eapDumpOnOutOfMemoryError, -XX:HeapDumpPath=3D/cassandra/dumps/cassand= ra-1475461287-pid34435.hprof, -Xss256k, -XX:StringTableSize=3D1000= 003, -XX:+UseParNewGC, -XX:+UseConcMarkSweepGC, -XX:+CMSParallelRemarkEnabl= ed, -XX:SurvivorRatio=3D8, -XX:MaxTenuringThreshold=3D1, -XX:CMSInitia= tingOccupancyFraction=3D30, -XX:+UseCMSInitiatingOccupancyOnly, -= XX:+UseTLAB, -XX:CompileCommandFile=3D/etc/cassandra/hotspot_compiler,= -XX:CMSWaitDuration=3D10000, -XX:+CMSParallelInitialMarkEnabled, -XX:= +CMSEdenChunksRecordAlways, -XX:CMSWaitDuration=3D10000, -XX:+UseCondC= ardMark, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintGCAppl= icationStoppedTime, -Xloggc:/var/opt/hosting/log/cassandra/gc.log, -XX= :+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=3D20, -XX:GCLogFileSize=3D20= M, -Djava.net.preferIPv4Stack=3Dtrue, -Dcom.sun.management.jmxrem= ote.port=3D7199, -Dcom.sun.management.jmxremote.rmi.port=3D7199, -Dcom= .sun.management.jmxremote.ssl=3Dfalse, -Dcom.sun.management.jmxre= mote.authenticate=3Dfalse, -Dcom.sun.management.jmxremote.password.fil= e=3D/etc/cassandra/jmxremote.password, -Djava.io.tmpdir=3D/var/opt/hosting/db/cassandra/tmp, -javaagent:/usr/share/cassandra/lib/joloki= a-jvm-1.0.6-agent.jar=3Dport=3D8778,host=3D0.0.0.0, -Dcassandra.a= uth_bcrypt_gensalt_log2_rounds=3D4, -Dlogback.configurationFile=3Dlogback.xml, -Dcassandra.logdir=3D/var/log/cassandra, -Dcassandra.sto= ragedir=3D, -Dcassandra-pidfile=3D/var/run/cassandra/cassandra.pid, -XX:HeapDumpPath=3D/var/lib/cassandra/java_1475461286.hprof,= -XX:ErrorFile=3D/var/lib/cassandra/hs_err_1475461286.log]
This op= tion is defined in cassandra-env.sh

if [ "x$CASSANDRA_HEAPDUMP_= DIR" !=3D "x" ]; then
=C2=A0=C2=A0=C2=A0 JVM_OPTS=3D"= ;$JVM_OPTS -XX:HeapDumpPath=3D$CASSANDRA_HEAPDUMP_DIR/cassandra-`date = +%s`-pid$$.hprof"
fi
=C2=A0and we defined before the value of CASSANDRA_HEAPDUMP_DIR before to
/cass= andra/dumps/

It is seems that cassandra= does not care about the conf in cassandra-env.sh and he only takes in acco= unt the last set for HeapDumpPath /var/lib/cassandra/java_147546128= 6.hprof

This causes problems when we ha= ve to dump the heap because cassandra uses the disk not suitable to do it.<= br>
Is=C2=A0 XX:HeapDumpPath set in anot= her place/file that I dont know?

Thxs

Jean Carlo

"The best way to predict the future is to = invent it" Alan Kay


--001a114435cc3bb517053df47807--