cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anubhav Kale <>
Subject RE: High CPU on nodes
Date Wed, 21 Dec 2016 16:40:31 GMT

From: Alain RODRIGUEZ []
Sent: Saturday, December 17, 2016 5:18 AM
Subject: Re: High CPU on nodes


What does 'nodetool netstats' looks like on those nodes?

Its not doing any streaming.

we have 30GB heap

How is the JVM / GC doing? Are you using G1GC or CMS? This setting would be bad for CMS.

G1. GC is doing fine. I don’t see any long pauses beyond 200 ms.

You can use this tool to understand were the CPU is being used<>.

I hope that helps,

Alain Rodriguez - @arodream -<>

The Last Pickle - Apache Cassandra Consulting<>

2016-12-17 0:10 GMT+01:00 Anubhav Kale <<>>:

I am trying to fight a high CPU problem on some of our nodes. Thread dumps show that it’s
not GC threads (we have 30GB heap), iostat %iowait confirms it’s not disk (ranges between
0.3 – 0.9%). One of the ways in which the problem manifests is that the nodes can’t compact
SSTables and it happens randomly. We run Cassandra 2.1.13 on Azure Premium Storage (network
attached SSDs).

One of the sample threads that was taking high CPU shows :

"pool-13-thread-1" #3352<>
prio=5 os_prio=0 tid=0x00007f2275340bb0 nid=0x1b0b runnable [0x00007f33ffaae000]
java.lang.Thread.State: RUNNABLE
at java.util.TimSort.gallopRight(
at java.util.TimSort.mergeLo(
at java.util.TimSort.mergeAt(
at java.util.TimSort.mergeCollapse(
at java.util.TimSort.sort(
at java.util.Arrays.sort(
at java.util.ArrayList.sort(
at java.util.Collections.sort(
at org.apache.cassandra.locator.DynamicEndpointSnitch.sortByProximityWithScore(
at org.apache.cassandra.locator.DynamicEndpointSnitch.sortByProximityWithBadness(
at org.apache.cassandra.locator.DynamicEndpointSnitch.sortByProximity(
at org.apache.cassandra.service.StorageProxy.getLiveSortedEndpoints(
at org.apache.cassandra.service.StorageProxy.getRangeSlice(

Looking at code, I can’t figure out why things like this would require a high CPU and I
don’t find any JIRAs relating this as well. So, what can I do next to troubleshoot this

Thanks !

View raw message