1. 問題描述
Exception in thread "vert.x-worker-thread-8" java.lang.OutOfMemoryError: GC overhead limit exceeded
2. 解決方法:
1. 增加參數,-XX:-UseGCOverheadLimit旺入,關閉這個特性
2. 同時增加heap大小兑凿,-Xmx1024m
3. 相關操作:
3.1 查看機器的物理內存(linux)
root@splunkdatatest:/opt/splunk/var/log/splunk# free -m
total used free shared buff/cache available
Mem: 7987 1573 1198 83 5214 6031
Swap: 8188 0 8188