I think that is not the correct lib directory.    You want it under 
$CASSANDRA_HOME/lib.   Ie wherever you deployed cassandra distro into / lib

That directory should be loaded with *.jar files.   That is the directory you 
want.

Roger

From: Nitan Kainth <ni...@bamlabs.com>
Reply-To: "user@cassandra.apache.org" <user@cassandra.apache.org>
Date: Wednesday, July 26, 2017 at 1:42 PM
To: "user@cassandra.apache.org" <user@cassandra.apache.org>
Subject: Re: read/write request counts and write size of each write

Hey Roger,

I downloaded and saved the file in /var/lib/cassandra, but getting same error:

 java -jar /tmp/jmxterm-1.0-alpha-4-uber.jar --url localhost:7199
Welcome to JMX terminal. Type "help" for available commands.
$>run -b org.apache.cassandra.metrics:type=ClientRequest scope=CASWrite 
name=MutationSizeHistogram
#InstanceNotFoundException: org.apache.cassandra.metrics:type=ClientRequest


I tried using mx4 jar file:


 java -jar /var/lib/cassandra/mx4j-3.0.1.jar url localhost:7199
no main manifest attribute, in /var/lib/cassandra/mx4j-3.0.1.jar






On Jul 26, 2017, at 11:50 AM, Roger Warner 
<rwar...@pandora.com<mailto:rwar...@pandora.com>> wrote:

You need to also have the mx4j jar in your Cassandra lib directory.   Double 
checking you did that – its not included with the distro.    You have to 
download it.

http://mx4j.sourceforge.net/<https://urldefense.proofpoint.com/v2/url?u=http-3A__mx4j.sourceforge.net_&d=DwMFaQ&c=gFTBenQ7Vj71sUi1A4CkFnmPzqwDo07QsHw-JRepxyw&r=_V9IzBxaV864n6VoHCzfArKKHY9Xqk-DWw-wAB9JU7E&m=rd2FJwCKPP5z8NHhUlnT38ZikdsXjyW01dIzgTpVNZI&s=ALRm4TAh0JSWovaZA0ijrCAmzPz_H1hBZEJ_psmMGyU&e=>

R

From: Nitan Kainth <ni...@sleepiqlabs.com<mailto:ni...@sleepiqlabs.com>>
Reply-To: "user@cassandra.apache.org<mailto:user@cassandra.apache.org>" 
<user@cassandra.apache.org<mailto:user@cassandra.apache.org>>
Date: Wednesday, July 26, 2017 at 8:22 AM
To: "User 
cassandra.apache.org<https://urldefense.proofpoint.com/v2/url?u=http-3A__cassandra.apache.org&d=DwMFaQ&c=gFTBenQ7Vj71sUi1A4CkFnmPzqwDo07QsHw-JRepxyw&r=_V9IzBxaV864n6VoHCzfArKKHY9Xqk-DWw-wAB9JU7E&m=rd2FJwCKPP5z8NHhUlnT38ZikdsXjyW01dIzgTpVNZI&s=K_gfKLpT6YRBplNhlYsM7Rgtx7FEz-Q6bvXUom6GMks&e=>"
 <user@cassandra.apache.org<mailto:user@cassandra.apache.org>>
Subject: Re: read/write request counts and write size of each write

Thank you very much Kurt.

I am not a java guy, need one small help. I initiated JMX connection but I am 
getting some exception:

java -jar ~/jmxterm-1.0-alpha-4-uber.jar --url localhost:7199
Welcome to JMX terminal. Type "help" for available commands.
$>run -b org.apache.cassandra.metrics:type=ClientRequest scope=CASWrite 
name=MutationSizeHistogram
#InstanceNotFoundException: org.apache.cassandra.metrics:type=ClientRequest



I verified, Cassandra is running on my machine.




On Tue, Jul 25, 2017 at 9:36 PM, kurt greaves 
<k...@instaclustr.com<mailto:k...@instaclustr.com>> wrote:
Looks like you can collect MutationSizeHistogram for each write as well from 
the coordinator, in regards to write request size. See the Write request 
section 
underhttps://cassandra.apache.org/doc/latest/operating/metrics.html#client-request-metrics<https://urldefense.proofpoint.com/v2/url?u=https-3A__cassandra.apache.org_doc_latest_operating_metrics.html-23client-2Drequest-2Dmetrics&d=DwMFaQ&c=gFTBenQ7Vj71sUi1A4CkFnmPzqwDo07QsHw-JRepxyw&r=_V9IzBxaV864n6VoHCzfArKKHY9Xqk-DWw-wAB9JU7E&m=_TOyM3vR40V4Xvh1nWnClVq3MYuybHfhdtWfkIGvVlk&s=vgnwngzAkTiksz5qoRNA71R9UZTCiYLkjw4qXe5nK74&e=>




Reply via email to