美文网首页
踩坑记----java: GC overhead limit e

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

作者: b71fe82276de | 来源:发表于2017-05-23 17:39 被阅读0次

    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 e

          本文链接:https://www.haomeiwen.com/subject/xdzwxxtx.html