Skip to content

Instantly share code, notes, and snippets.

View runarmyklebust's full-sized avatar

Runar Myklebust runarmyklebust

  • Oslo, Norway
View GitHub Profile
tomcat6@loadtest-appserver1:~$ jstat -gccause 10332 4s 10
S0 S1 E O P YGC YGCT FGC FGCT GCT LGCC GCC
0.00 59.68 19.30 88.72 63.72 139 13.437 9 6.459 19.896 Allocation Failure No GC
0.00 81.98 69.69 27.77 66.96 141 13.628 10 7.123 20.751 Allocation Failure No GC
78.33 0.00 49.81 44.01 66.97 144 13.980 10 7.123 21.103 Allocation Failure No GC
0.00 99.91 34.33 60.10 66.98 147 14.287 10 7.123 21.410 Allocation Failure No GC
79.19 0.00 22.25 77.82 66.99 150 14.662 10 7.123 21.785 Allocation Failure No GC
0.00 81.22 0.00 93.97 67.00 153 14.990 11 7.123 22.113 Allocation Failure Ergonomics
0.00 74.27 45.89 34.62 70.08 155 15.169 11 7.787 22.957 Allocation Failure No GC
74.94 0.00 30.05 51.38 7
~/temp/jvm$ jhat heapdump.map
Reading from heapdump.map...
Dump file created Fri Sep 12 12:05:56 CEST 2014
Snapshot read, resolving...
Resolving 3134771 objects...
Chasing references, expect 626 dots..................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Eliminating duplicate references.....................................................................................................................................................................
~/temp/jvm$ jps -l
79908 org.apache.karaf.main.Main
84167 sun.tools.jps.Jps
~/temp/jvm$ jmap -heap 79908
Attaching to process ID 79908, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 25.5-b02
using thread-local object allocation.
~/temp/jvm$ jps -l
84131 sun.tools.jps.Jps
79908 org.apache.karaf.main.Main
~/temp/jvm$ jmap -dump:file=heapdump.map 79908
Dumping heap to /Users/rmy/temp/jvm/heapdump.map ...
Heap dump file created
~/temp/jvm$ ll -h
total 601096
drwxr-xr-x 3 rmy staff 102B Sep 12 12:05 .
drwxrwxrwx 28 rmy staff 952B Sep 12 12:04 ..
~$ jps -l
79908 org.apache.karaf.main.Main
83976 sun.tools.jps.Jps
~$ jinfo 79908
Attaching to process ID 79908, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 25.5-b02
Java System Properties:
~$ jps -l
83760 sun.tools.jps.Jps
79908 org.apache.karaf.main.Main
~$ jps -lm
79908 org.apache.karaf.main.Main debugcc
83764 sun.tools.jps.Jps -lm
~$ jps
79908 org.apache.karaf.main.Main debugcc
-Xms1G
-Xmx1G
function jps() {
ARGS=$1
if [ -z "$ARGS" ]; then
ARGS="-lvm"
fi
command jps $ARGS | sed -e 's/-D/\'$'\n\t-D/g' | sed -e 's/-X/\'$'\n\t-X/g'
}

Testings

CREATE
(me:Person {name:"Runar"})-[:LIKES]->(sushi:Food {name:"sushi"}),
(me)<-[:LIVES]-(oslo:City {name:"Oslo"}),
(jvs:Person {name:"Jørund"})-[:LIKES]->(brun:Food {name:"brun saus"}),
(jvs)<-[:LIVES]-(:City {name:"Halden"}),
@runarmyklebust
runarmyklebust / loadtest1-discovery.log
Created August 14, 2013 12:33
Unicast discovery trouble
Aug 14, 2013 2:17:06 PM org.elasticsearch.common.logging.slf4j.Slf4jESLogger internalDebug
FINE: [loadtest-appserver1] using initial hosts [localhost[9300-9400]], with concurrent_connects [10]
Aug 14, 2013 2:17:06 PM org.elasticsearch.common.logging.slf4j.Slf4jESLogger internalDebug
FINE: [loadtest-appserver1] using ping.timeout [3s], master_election.filter_client [true], master_election.filter_data [false]
Aug 14, 2013 2:17:06 PM org.elasticsearch.common.logging.slf4j.Slf4jESLogger internalDebug
FINE: [loadtest-appserver1] using minimum_master_nodes [1]
Aug 14, 2013 2:17:06 PM org.elasticsearch.common.logging.slf4j.Slf4jESLogger internalDebug
FINE: [loadtest-appserver1] [master] uses ping_interval [1s], ping_timeout [30s], ping_retries [3]
Aug 14, 2013 2:17:06 PM org.elasticsearch.common.logging.slf4j.Slf4jESLogger internalDebug
FINE: [loadtest-appserver1] [node ] uses ping_interval [1s], ping_timeout [30s], ping_retries [3]
@runarmyklebust
runarmyklebust / nodelog.java
Created August 13, 2013 21:05
Log from node falling out of cluster
2013-08-13 06:32:24,335 WARN [org.elasticsearch.discovery.zen] (elasticsearch[local][clusterService#updateTask][T#1]) [local] received cluster state from [[local][AaxhMxGQTA-IvO88ORiL5w][inet[/10.51.9.66:8800]]{local=false}] which is also master but with an older cluster_state, telling [[local][AaxhMxGQTA-IvO88ORiL5w][inet[/10.51.9.66:8800]]{local=false}] to rejoin the cluster
2013-08-13 06:32:24,338 WARN [org.elasticsearch.discovery.zen] (elasticsearch[local][generic][T#460]) [local] failed to send rejoin request to [[local][AaxhMxGQTA-IvO88ORiL5w][inet[/10.51.9.66:8800]]{local=false}]: org.elasticsearch.transport.SendRequestTransportException: [local][inet[/10.51.9.66:8800]][discovery/zen/rejoin]
at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:199) [elasticsearch-0.20.6.jar:]
at org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:171) [elasticsearch-0.20.6.jar:]
at org.elasticsearch.discovery.zen.ZenDiscovery$7.execute(ZenDiscovery.java:526) [elas