踩坑记----java: GC overhead limit exceeded

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

4. 参考:

[java.lang.OutOfMemoryError:GC overhead limit exceeded填坑心得]

你可能感兴趣的:(踩坑记----java: GC overhead limit exceeded)