| | 1 | = 2015-01-05 = |
| | 2 | |
| | 3 | == Java == |
| | 4 | |
| | 5 | {{{ |
| | 6 | 2014-12-31 12:23:55,290 INFO org.apache.zookeeper.ClientCnxn: Unable to read additional data from server sessionid 0x349cbbeec8e3a79, likely server has closed socket, closing socket connection and attempting reconnect |
| | 7 | 2014-12-31 12:23:55,290 WARN org.apache.zookeeper.ClientCnxn: Session 0x349cbbeec8e4271 for server node4.etu.im/140.114.60.156:2181, unexpected error, closing socket connection and attempting reconnect |
| | 8 | java.lang.OutOfMemoryError: Java heap space |
| | 9 | 2014-12-31 12:23:55,290 INFO org.apache.zookeeper.ClientCnxn: Client session timed out, have not heard from server in 45749ms for sessionid 0x349cbbeec8e4273, closing socket connection and attempting reconnect |
| | 10 | 2014-12-31 12:23:55,291 WARN org.apache.zookeeper.ClientCnxn: Session 0x349cbbeec8e426e for server node4.etu.im/140.114.60.156:2181, unexpected error, closing socket connection and attempting reconnect |
| | 11 | java.lang.OutOfMemoryError: Java heap space |
| | 12 | 2014-12-31 12:23:55,291 WARN org.apache.zookeeper.ClientCnxn: Session 0x449cbbef9fb3ba4 for server node5.etu.im/140.114.60.154:2181, unexpected error, closing socket connection and attempting reconnect |
| | 13 | java.lang.OutOfMemoryError: Java heap space |
| | 14 | at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:39) |
| | 15 | at java.nio.ByteBuffer.allocate(ByteBuffer.java:312) |
| | 16 | at org.apache.jute.BinaryOutputArchive.<init>(BinaryOutputArchive.java:33) |
| | 17 | at org.apache.jute.BinaryOutputArchive.getArchive(BinaryOutputArchive.java:38) |
| | 18 | at org.apache.zookeeper.ClientCnxn$Packet.createBB(ClientCnxn.java:282) |
| | 19 | at org.apache.zookeeper.ClientCnxnSocketNIO.doIO(ClientCnxnSocketNIO.java:115) |
| | 20 | at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:355) |
| | 21 | at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1075) |
| | 22 | 2014-12-31 12:23:55,290 ERROR org.apache.zookeeper.ClientCnxn: from pool-1-thread-268-SendThread(master.etu.im:2181) |
| | 23 | java.lang.OutOfMemoryError: Java heap space |
| | 24 | }}} |
| | 25 | {{{ |
| | 26 | [root@master ~]# netstat -nlp | grep 10000 |
| | 27 | tcp 0 0 0.0.0.0:10000 0.0.0.0:* LISTEN 229484/java |
| | 28 | [root@master ~]# export PID=$(netstat -nlp | grep 10000 | awk '{ print $7 }' | sed 's#/.*##') |
| | 29 | [root@master ~]# jmap -heap $PID |
| | 30 | Attaching to process ID 229484, please wait... |
| | 31 | Debugger attached successfully. |
| | 32 | Server compiler detected. |
| | 33 | JVM version is 20.6-b01 |
| | 34 | |
| | 35 | using parallel threads in the new generation. |
| | 36 | using thread-local object allocation. |
| | 37 | Concurrent Mark-Sweep GC |
| | 38 | |
| | 39 | Heap Configuration: |
| | 40 | MinHeapFreeRatio = 40 |
| | 41 | MaxHeapFreeRatio = 70 |
| | 42 | MaxHeapSize = 1073741824 (1024.0MB) |
| | 43 | NewSize = 21757952 (20.75MB) |
| | 44 | MaxNewSize = 501612544 (478.375MB) |
| | 45 | OldSize = 65404928 (62.375MB) |
| | 46 | NewRatio = 7 |
| | 47 | SurvivorRatio = 8 |
| | 48 | PermSize = 21757952 (20.75MB) |
| | 49 | MaxPermSize = 85983232 (82.0MB) |
| | 50 | |
| | 51 | Heap Usage: |
| | 52 | New Generation (Eden + 1 Survivor Space): |
| | 53 | capacity = 120848384 (115.25MB) |
| | 54 | used = 57228680 (54.57752227783203MB) |
| | 55 | free = 63619704 (60.67247772216797MB) |
| | 56 | 47.35576770310805% used |
| | 57 | Eden Space: |
| | 58 | capacity = 107479040 (102.5MB) |
| | 59 | used = 55967520 (53.374786376953125MB) |
| | 60 | free = 51511520 (49.125213623046875MB) |
| | 61 | 52.07296231897866% used |
| | 62 | From Space: |
| | 63 | capacity = 13369344 (12.75MB) |
| | 64 | used = 1261160 (1.2027359008789062MB) |
| | 65 | free = 12108184 (11.547264099121094MB) |
| | 66 | 9.433222751991421% used |
| | 67 | To Space: |
| | 68 | capacity = 13369344 (12.75MB) |
| | 69 | used = 0 (0.0MB) |
| | 70 | free = 13369344 (12.75MB) |
| | 71 | 0.0% used |
| | 72 | concurrent mark-sweep generation: |
| | 73 | capacity = 939524096 (896.0MB) |
| | 74 | used = 5558840 (5.301322937011719MB) |
| | 75 | free = 933965256 (890.6986770629883MB) |
| | 76 | 0.591665506362915% used |
| | 77 | Perm Generation: |
| | 78 | capacity = 29032448 (27.6875MB) |
| | 79 | used = 28856296 (27.519508361816406MB) |
| | 80 | free = 176152 (0.16799163818359375MB) |
| | 81 | 99.39325819166196% used |
| | 82 | }}} |