Skip to content

Instantly share code, notes, and snippets.

CPU TIME (ms) BEGIN (total = 41681) Thu Aug 28 14:39:41 2014
rank self accum count trace method
1 17,23% 17,23% 87 316072 java.net.SocketInputStream.read
2 16,72% 33,96% 3 315858 java.net.AbstractPlainSocketImpl.accept
3 0,84% 34,80% 13268 307707 java.util.zip.ZipInputStream.read
4 0,79% 35,59% 28958 304760 java.util.zip.Inflater.ensureOpen
5 0,75% 36,35% 15652 307712 java.util.zip.Inflater.inflate
6 0,71% 37,05% 13297 307696 java.util.zip.Inflater.inflate
7 0,64% 37,70% 11480 319055 java.lang.Character.toUpperCaseEx
8 0,59% 38,28% 13268 307708 java.util.zip.InflaterInputStream.read
{
"folders": [
"home ja test"
],
"files": [
{
"id": "u1",
"my_analyzer": "fr_analyzer",
"title": "test",
"file_size": 0,
@ja-ilija
ja-ilija / error mapping file
Created January 21, 2015 16:02
mapping error in production
"query": {
"properties": {
"filtered": {
"properties": {
"query": {
"properties": {
"match_all": {
"type": "object"
}
}
package com.gloo.util;
import org.joda.time.DateTime;
import org.joda.time.format.DateTimeFormatter;
import org.joda.time.format.DateTimeFormatterBuilder;
public class DateUtils {
private static final int MIN_YEAR = 100;
// RSS pub dates will be in RFC822 format (but with 4 digit years allowed and preferred), this will parse them so we can convert to other
// formats. See the Date and Time Specification here: http://www.faqs.org/rfcs/rfc822.html (section 5.1)
Microsoft account
Security code
Please use the following security code for the Microsoft account de*****@glooteam.com.
Security code: *******
If you didn't request this code, you can safely ignore this email. Someone else might have typed your email address by mistake.
Thanks,
The Microsoft account team
10.0.67.240 110.159.32.147 gluru.co [23/Feb/2015:08:34:14 0000] "GET /metrics/event?timestamp=1424660663580&userId=idError&eventType=NotificationDismissed&platformInfo={"model":"SM-N9005","operatingSystem":"android","appVersion":"1.1.1","deviceType":"1080,1920","locale":"zh_CN","make":"samsung","deviceId":"1cc333542e16293c","version":"4.4.2"}&eventData={} HTTP/1.1" 204 "-" "-"
@ja-ilija
ja-ilija / retry
Created March 4, 2015 11:30
retryable dataInterface
package com.gloo.data.abstractions.retryable;
import java.util.List;
import java.util.Map;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.gloo.data.abstractions.AbstractDataInterface;
import com.gloo.util.IRetryer;
@ja-ilija
ja-ilija / gist:7a8290775acf0127d896
Created April 19, 2015 17:18
time range query es
{
"size": 10,
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"bool": {
"must": [
@ja-ilija
ja-ilija / gist:e4c2c2cb861953f44848
Last active August 29, 2015 14:20
ES devel query
https://ops.gluru.co/esgloo/files/file/_count?routing=41
{
"query": {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"bool": {
"must": [
@ja-ilija
ja-ilija / gist:f5597126a58a60b3fc1e
Last active August 29, 2015 14:20
ES devel response
{
"count": 3054,
"_shards": {
"total": 1,
"successful": 1,
"failed": 0
}
}