我在生产中运行solr 5.3,有时它开始给我以下错误-
{Heap before GC invocations=6 (full 2): par new generation total
1727168K, used 1727168K [0x00000004cc000000, 0x000000054a800000,
0x0000000589000000) eden space 1381760K, 100% used
[0x00000004cc000000, 0x0000000520560000, 0x0000000520560000) from
space 345408K, 100% used [0x0000000520560000, 0x00000005356b0000,
0x00000005356b0000) to space 345408K, 0% used
[0x00000005356b0000, 0x00000005356b0000, 0x000000054a800000)
concurrent mark-sweep generation total 6217728K, used 54289K
[0x0000000589000000, 0x0000000704800000, 0x00000007c0000000)
Metaspace used 56284K, capacity 57258K, committed 57332K,
reserved 1099776K class space used 6170K, capacity 6417K,
committed 6436K, reserved 1048576K 2018-09-07T09:56:51.853+0530:
24.619: [GC (Allocation Failure) 2018-09-07T09:56:51.853+0530: 24.619: [ParNew Desired survivor size 318328008 bytes, new threshold 8 (max 8)
- age 1: 29323808 bytes, 29323808 total
- age 2: 41268672 bytes, 70592480 total
- age 3: 28385712 bytes, 98978192 total
- age 4: 58890184 bytes, 157868376 total
- age 5: 91388968 bytes, 249257344 total
- age 6: 1024 bytes, 249258368 total
- age 7: 23095472 bytes, 272353840 total : 1727168K->345408K(1727168K), 0.1724342 secs]
1781457K->459679K(7944896K), 0.1726148 secs] [Times: user=0.64
sys=0.02, real=0.17 se cs] Heap after GC invocations=7 (full 2): par
new generation total 1727168K, used 345408K [0x00000004cc000000,
0x000000054a800000, 0x0000000589000000) eden space 1381760K, 0%
used [0x00000004cc000000, 0x00000004cc000000, 0x0000000520560000)
from space 345408K, 100% used [0x00000005356b0000, 0x000000054a800000,
0x000000054a800000) to space 345408K, 0% used
[0x0000000520560000, 0x0000000520560000, 0x00000005356b0000)
concurrent mark-sweep generation total 6217728K, used 114271K
[0x0000000589000000, 0x0000000704800000, 0x00000007c0000000)
Metaspace used 56284K, capacity 57258K, committed 57332K,
reserved 1099776K class space used 6170K, capacity 6417K,
committed 6436K, reserved 1048576K
我在服务器中具有以下内存和GC设置-
SOLR_JAVA_MEM="-Xms8g -Xmx12g" GC_TUNE="-XX:NewRatio=3 \
-XX:SurvivorRatio=4 \
-XX:TargetSurvivorRatio=90 \
-XX:MaxTenuringThreshold=8 \
-XX:+UseConcMarkSweepGC \
-XX:+UseParNewGC \
-XX:ConcGCThreads=4 -XX:ParallelGCThreads=4 \
-XX:+CMSScavengeBeforeRemark \
-XX:PretenureSizeThreshold=64m \
-XX:+UseCMSInitiatingOccupancyOnly \
-XX:CMSInitiatingOccupancyFraction=50 \
-XX:CMSMaxAbortablePrecleanTime=6000 \
-XX:+CMSParallelRemarkEnabled \
-XX:+ParallelRefProcEnabled"
在这种情况下,谁能告诉我该怎么办?