Created
July 23, 2011 00:43
-
-
Save rubish/1100776 to your computer and use it in GitHub Desktop.
ES memory usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rubish@elastic1:~$ free -m | |
total used free shared buffers cached | |
Mem: 496 476 19 0 6 71 | |
-/+ buffers/cache: 397 98 | |
Swap: 1023 677 346 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rubish@elastic1:~$ sudo jmap -heap 9720 | |
Attaching to process ID 9720, please wait... | |
Debugger attached successfully. | |
Server compiler detected. | |
JVM version is 17.0-b16 | |
using parallel threads in the new generation. | |
using thread-local object allocation. | |
Concurrent Mark-Sweep GC | |
Heap Configuration: | |
MinHeapFreeRatio = 40 | |
MaxHeapFreeRatio = 70 | |
MaxHeapSize = 471859200 (450.0MB) | |
NewSize = 21757952 (20.75MB) | |
MaxNewSize = 87228416 (83.1875MB) | |
OldSize = 65404928 (62.375MB) | |
NewRatio = 7 | |
SurvivorRatio = 8 | |
PermSize = 21757952 (20.75MB) | |
MaxPermSize = 88080384 (84.0MB) | |
Heap Usage: | |
New Generation (Eden + 1 Survivor Space): | |
capacity = 31784960 (30.3125MB) | |
used = 25075088 (23.913467407226562MB) | |
free = 6709872 (6.3990325927734375MB) | |
78.88978938466495% used | |
Eden Space: | |
capacity = 28311552 (27.0MB) | |
used = 24282128 (23.157241821289062MB) | |
free = 4029424 (3.8427581787109375MB) | |
85.7675623010706% used | |
From Space: | |
capacity = 3473408 (3.3125MB) | |
used = 792960 (0.7562255859375MB) | |
free = 2680448 (2.5562744140625MB) | |
22.829451650943398% used | |
To Space: | |
capacity = 3473408 (3.3125MB) | |
used = 0 (0.0MB) | |
free = 3473408 (3.3125MB) | |
0.0% used | |
concurrent mark-sweep generation: | |
capacity = 246677504 (235.25MB) | |
used = 137620648 (131.24527740478516MB) | |
free = 109056856 (104.00472259521484MB) | |
55.78970346643365% used | |
Perm Generation: | |
capacity = 60231680 (57.44140625MB) | |
used = 36099120 (34.42680358886719MB) | |
free = 24132560 (23.014602661132812MB) | |
59.933775714042845% used |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rubish@elastic1:~$ sudo jmap 9720 | |
Attaching to process ID 9720, please wait... | |
Debugger attached successfully. | |
Server compiler detected. | |
JVM version is 17.0-b16 | |
0x0000000040000000 49K /usr/lib/jvm/java-6-sun-1.6.0.21/jre/bin/java | |
0x00007f7f425d6000 43K /usr/lib/jvm/java-6-sun-1.6.0.21/jre/lib/amd64/libnio.so | |
0x00007f7f426de000 240K /home/rubish/downloads/elasticsearch/lib/sigar/libsigar-amd64-linux.so | |
0x00007f7f42c90000 110K /usr/lib/jvm/java-6-sun-1.6.0.21/jre/lib/amd64/libnet.so | |
0x00007f7f43198000 45K /home/rubish/downloads/elasticsearch/bin/service/lib/libwrapper-linux-x86-64.so | |
0x00007f7f432a1000 37K /usr/lib/jvm/java-6-sun-1.6.0.21/jre/lib/amd64/libmanagement.so | |
0x00007f7f70513000 89K /usr/lib/jvm/java-6-sun-1.6.0.21/jre/lib/amd64/libzip.so | |
0x00007f7f70627000 50K /lib/libnss_files-2.12.1.so | |
0x00007f7f70834000 42K /lib/libnss_nis-2.12.1.so | |
0x00007f7f70a3f000 34K /lib/libnss_compat-2.12.1.so | |
0x00007f7f70c48000 54K /usr/lib/jvm/java-6-sun-1.6.0.21/jre/lib/amd64/native_threads/libhpi.so | |
0x00007f7f70d53000 94K /lib/libnsl-2.12.1.so | |
0x00007f7f70f6d000 228K /usr/lib/jvm/java-6-sun-1.6.0.21/jre/lib/amd64/libjava.so | |
0x00007f7f7109c000 65K /usr/lib/jvm/java-6-sun-1.6.0.21/jre/lib/amd64/libverify.so | |
0x00007f7f711ab000 31K /lib/librt-2.12.1.so | |
0x00007f7f714b4000 522K /lib/libm-2.12.1.so | |
0x00007f7f71737000 11443K /usr/lib/jvm/java-6-sun-1.6.0.21/jre/lib/amd64/server/libjvm.so | |
0x00007f7f721df000 1535K /lib/libc-2.12.1.so | |
0x00007f7f72562000 14K /lib/libdl-2.12.1.so | |
0x00007f7f72766000 132K /lib/libpthread-2.12.1.so | |
0x00007f7f72983000 137K /lib/ld-2.12.1.so | |
0x00007f7f72a90000 47K /usr/lib/jvm/java-6-sun-1.6.0.21/jre/lib/amd64/jli/libjli.so |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rubish@elastic1:~$ ps -eaf | grep elastic | |
root 2765 1 0 Jun09 ? 01:00:40 /home/rubish/downloads/elasticsearch/bin/service/exec/elasticsearch-linux-x86-64 /home/rubish/downloads/elasticsearch/bin/service/elasticsearch.conf wrapper.syslog.ident=elasticsearch wrapper.pidfile=/home/rubish/downloads/elasticsearch/bin/service/./elasticsearch.pid wrapper.name=elasticsearch wrapper.displayname=ElasticSearch wrapper.daemonize=TRUE wrapper.statusfile=/home/rubish/downloads/elasticsearch/bin/service/./elasticsearch.status wrapper.java.statusfile=/home/rubish/downloads/elasticsearch/bin/service/./elasticsearch.java.status | |
root 9720 2765 0 Jul12 ? 01:24:10 java -Delasticsearch-service -Des-foreground=yes -Des.path.home=/home/rubish/downloads/elasticsearch -Djline.enabled=true -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:SurvivorRatio=8 -XX:MaxTenuringThreshold=1 -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Xms256m -Xmx400m -Djava.library.path=/home/rubish/downloads/elasticsearch/bin/service/lib -classpath /home/rubish/downloads/elasticsearch/bin/service/lib/wrapper.jar:/home/rubish/downloads/elasticsearch/lib/elasticsearch-0.15.2.jar:/home/rubish/downloads/elasticsearch/lib/jline-0.9.94.jar:/home/rubish/downloads/elasticsearch/lib/jna-3.2.7.jar:/home/rubish/downloads/elasticsearch/lib/log4j-1.2.15.jar:/home/rubish/downloads/elasticsearch/lib/lucene-analyzers-3.0.3.jar:/home/rubish/downloads/elasticsearch/lib/lucene-core-3.0.3.jar:/home/rubish/downloads/elasticsearch/lib/lucene-fast-vector-highlighter-3.0.3.jar:/home/rubish/downloads/elasticsearch/lib/lucene-highlighter-3.0.3.jar:/home/rubish/downloads/elasticsearch/lib/lucene-memory-3.0.3.jar:/home/rubish/downloads/elasticsearch/lib/lucene-queries-3.0.3.jar:/home/rubish/downloads/elasticsearch/lib/lucene-snowball-3.0.3.jar:/home/rubish/downloads/elasticsearch/lib/sigar/sigar-1.6.4.jar -Dwrapper.key=1waIuWpLz6-f6B5w -Dwrapper.port=32000 -Dwrapper.jvm.port.min=31000 -Dwrapper.jvm.port.max=31999 -Dwrapper.disable_console_input=TRUE -Dwrapper.pid=2765 -Dwrapper.version=3.5.6 -Dwrapper.native_library=wrapper -Dwrapper.service=TRUE -Dwrapper.cpu.timeout=10 -Dwrapper.jvmid=3 org.tanukisoftware.wrapper.WrapperSimpleApp org.elasticsearch.bootstrap.Bootstrap | |
rubish 30449 22966 0 00:40 pts/0 00:00:00 grep elastic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
top - 00:46:03 up 89 days, 5:11, 1 user, load average: 0.00, 0.03, 0.05 | |
Tasks: 55 total, 1 running, 54 sleeping, 0 stopped, 0 zombie | |
Cpu(s): 0.0%us, 0.0%sy, 0.0%ni, 99.9%id, 0.1%wa, 0.0%hi, 0.0%si, 0.0%st | |
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND | |
9720 root 20 0 1531m 330m 1656 S 0 66.7 84:12.22 java | |
1 root 20 0 23636 492 92 S 0 0.1 0:03.93 init | |
2 root 20 0 0 0 0 S 0 0.0 0:00.00 kthreadd | |
3 root 20 0 0 0 0 S 0 0.0 0:05.57 ksoftirqd/0 | |
4 root RT 0 0 0 0 S 0 0.0 0:00.02 migration/0 | |
5 root RT 0 0 0 0 S 0 0.0 0:00.25 migration/1 | |
6 root 20 0 0 0 0 S 0 0.0 0:04.40 ksoftirqd/1 | |
7 root RT 0 0 0 0 S 0 0.0 0:00.02 migration/2 | |
8 root 20 0 0 0 0 S 0 0.0 0:04.09 ksoftirqd/2 | |
9 root RT 0 0 0 0 S 0 0.0 0:00.01 migration/3 | |
10 root 20 0 0 0 0 S 0 0.0 0:05.21 ksoftirqd/3 | |
11 root 20 0 0 0 0 S 0 0.0 4:39.01 events/0 | |
12 root 20 0 0 0 0 S 0 0.0 4:33.44 events/1 | |
13 root 20 0 0 0 0 S 0 0.0 4:19.23 events/2 | |
14 root 20 0 0 0 0 S 0 0.0 5:48.73 events/3 | |
15 root 20 0 0 0 0 S 0 0.0 0:00.00 cpuset | |
16 root 20 0 0 0 0 S 0 0.0 0:00.01 khelper | |
19 root 20 0 0 0 0 S 0 0.0 0:00.00 netns | |
20 root 20 0 0 0 0 S 0 0.0 0:00.00 async/mgr | |
23 root 20 0 0 0 0 S 0 0.0 0:00.01 xenwatch | |
24 root 20 0 0 0 0 S 0 0.0 0:00.00 xenbus | |
56 root 20 0 0 0 0 S 0 0.0 0:24.21 sync_supers | |
58 root 20 0 0 0 0 S 0 0.0 0:30.42 bdi-default | |
60 root 20 0 0 0 0 S 0 0.0 0:03.98 kblockd/0 | |
61 root 20 0 0 0 0 S 0 0.0 0:02.00 kblockd/1 | |
62 root 20 0 0 0 0 S 0 0.0 0:01.27 kblockd/2 | |
63 root 20 0 0 0 0 S 0 0.0 0:01.73 kblockd/3 | |
68 root 20 0 0 0 0 S 0 0.0 0:00.00 kseriod | |
117 root 20 0 0 0 0 S 0 0.0 155:08.39 kswapd0 | |
118 root 20 0 0 0 0 S 0 0.0 0:00.00 aio/0 | |
119 root 20 0 0 0 0 S 0 0.0 0:00.00 aio/1 | |
120 root 20 0 0 0 0 S 0 0.0 0:00.00 aio/2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment