Skip to content

Instantly share code, notes, and snippets.

@julesbravo
Created March 4, 2014 00:32
Show Gist options
  • Save julesbravo/9337810 to your computer and use it in GitHub Desktop.
Save julesbravo/9337810 to your computer and use it in GitHub Desktop.
curl "http://localhost:9200/_nodes/hot_threads"
::: [Strongarm][ZiJTz2JGR_S8ttDeGmkZgA][ec2-23-23-23-3.compute-1.amazonaws.com][inet[/10.0.2.15:9300]]
98.7% (493.3ms out of 500ms) cpu usage by thread 'elasticsearch[Strongarm][bulk][T#1]'
3/10 snapshots sharing following 19 elements
java.lang.reflect.Array.get(Native Method)
org.apache.lucene.util.RamUsageEstimator.measureObjectSize(RamUsageEstimator.java:456)
org.apache.lucene.util.RamUsageEstimator.sizeOf(RamUsageEstimator.java:350)
org.elasticsearch.index.percolator.stats.ShardPercolateService$RamEstimator.sizeOf(ShardPercolateService.java:97)
org.elasticsearch.index.percolator.stats.ShardPercolateService.computeSizeInMemory(ShardPercolateService.java:89)
org.elasticsearch.index.percolator.stats.ShardPercolateService.addedQuery(ShardPercolateService.java:68)
org.elasticsearch.index.percolator.PercolatorQueriesRegistry.addPercolateQuery(PercolatorQueriesRegistry.java:133)
org.elasticsearch.index.percolator.PercolatorQueriesRegistry$RealTimePercolatorOperationListener.postIndexUnderLock(PercolatorQueriesRegistry.java:315)
org.elasticsearch.index.indexing.ShardIndexingService.postIndexUnderLock(ShardIndexingService.java:140)
org.elasticsearch.index.engine.internal.InternalEngine.innerIndex(InternalEngine.java:558)
org.elasticsearch.index.engine.internal.InternalEngine.index(InternalEngine.java:479)
org.elasticsearch.index.shard.service.InternalIndexShard.index(InternalIndexShard.java:404)
org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:395)
org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:153)
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:556)
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:426)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
7/10 snapshots sharing following 17 elements
org.apache.lucene.util.RamUsageEstimator.sizeOf(RamUsageEstimator.java:350)
org.elasticsearch.index.percolator.stats.ShardPercolateService$RamEstimator.sizeOf(ShardPercolateService.java:97)
org.elasticsearch.index.percolator.stats.ShardPercolateService.computeSizeInMemory(ShardPercolateService.java:89)
org.elasticsearch.index.percolator.stats.ShardPercolateService.addedQuery(ShardPercolateService.java:68)
org.elasticsearch.index.percolator.PercolatorQueriesRegistry.addPercolateQuery(PercolatorQueriesRegistry.java:133)
org.elasticsearch.index.percolator.PercolatorQueriesRegistry$RealTimePercolatorOperationListener.postIndexUnderLock(PercolatorQueriesRegistry.java:315)
org.elasticsearch.index.indexing.ShardIndexingService.postIndexUnderLock(ShardIndexingService.java:140)
org.elasticsearch.index.engine.internal.InternalEngine.innerIndex(InternalEngine.java:558)
org.elasticsearch.index.engine.internal.InternalEngine.index(InternalEngine.java:479)
org.elasticsearch.index.shard.service.InternalIndexShard.index(InternalIndexShard.java:404)
org.elasticsearch.action.bulk.TransportShardBulkAction.shardIndexOperation(TransportShardBulkAction.java:395)
org.elasticsearch.action.bulk.TransportShardBulkAction.shardOperationOnPrimary(TransportShardBulkAction.java:153)
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:556)
org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:426)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
0.3% (1.2ms out of 500ms) cpu usage by thread 'elasticsearch[Strongarm][transport_client_timer][T#1]{Hashed wheel timer #1}'
10/10 snapshots sharing following 5 elements
java.lang.Thread.sleep(Native Method)
org.elasticsearch.common.netty.util.HashedWheelTimer$Worker.waitForNextTick(HashedWheelTimer.java:483)
org.elasticsearch.common.netty.util.HashedWheelTimer$Worker.run(HashedWheelTimer.java:392)
org.elasticsearch.common.netty.util.ThreadRenamingRunnable.run(ThreadRenamingRunnable.java:108)
java.lang.Thread.run(Unknown Source)
0.1% (594micros out of 500ms) cpu usage by thread 'elasticsearch[Strongarm][scheduler][T#1]'
10/10 snapshots sharing following 9 elements
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.parkNanos(Unknown Source)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(Unknown Source)
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(Unknown Source)
java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment