Skip to content

Instantly share code, notes, and snippets.

View jgagnon1's full-sized avatar

Jerome Gagnon jgagnon1

View GitHub Profile
This file has been truncated, but you can view the full file.
::: [es7a][-2NqUY-ASnypSigd5KMrIw][inet[/10.1.13.207:9300]]{master=true}
16.8% (84.2ms out of 500ms) cpu usage by thread 'elasticsearch[es7a][search][T#3]'
10/10 snapshots sharing following 8 elements
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.park(LockSupport.java:186)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2043)
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1043)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1103)
@jgagnon1
jgagnon1 / gist:5007106
Created February 21, 2013 18:54
ES cpu hot threads
::: [es67b][BPTeIxwsQkm3_KNATVqgJQ][inet[es67b/10.1.18.57:9300]]{master=true}
99.3% (496.2ms out of 500ms) cpu usage by thread 'elasticsearch[es67b][search][T#3]'
8/10 snapshots sharing following 15 elements
org.elasticsearch.common.util.concurrent.jsr166y.LinkedTransferQueue.tryAppend(LinkedTransferQueue.java:653)
org.elasticsearch.common.util.concurrent.jsr166y.LinkedTransferQueue.xfer(LinkedTransferQueue.java:611)
org.elasticsearch.common.util.concurrent.jsr166y.LinkedTransferQueue.add(LinkedTransferQueue.java:1049)
org.elasticsearch.common.CacheRecycler.pushIntArray(CacheRecycler.java:502)
org.elasticsearch.common.CacheRecycler.pushIntArray(CacheRecycler.java:492)
org.elasticsearch.search.facet.terms.ints.TermsIntOrdinalsFacetCollector.facet(TermsIntOrdinalsFacetCollector.java:188)
// include the library code:
#include <LiquidCrystal.h>
// initialize the library with the numbers of the interface pins
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
lcd.clear();
// set up the LCD's number of columns and rows:
@jgagnon1
jgagnon1 / gist:5f89ff18d89040c8ae9b
Last active August 29, 2015 14:25 — forked from joyofdata/gist:26e49e77285e35bc2439
Setting Up a Time Dimension Table in MySQL / comment
DROP TABLE IF EXISTS `T`;
CREATE TABLE `T` (
`n` int(11)
);
INSERT INTO `T`(n) SELECT @row := @row + 1 as row FROM
(select 0 union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) t,
(select 0 union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) t2,
(select 0 union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) t3,
(select 0 union all select 1 union all select 2 union all select 3 union all select 4 union all select 5 union all select 6 union all select 7 union all select 8 union all select 9) t4,