美文网首页
Java-OOM整理

Java-OOM整理

作者: andersonoy | 来源:发表于2017-07-23 17:06 被阅读0次

OOM整理


    • java.lang.OutOfMemoryError: Java heap space
      • memory leaks
    • java.lang.OutOfMemoryError: GC overhead limit exceeded
      • The java.lang.OutOfMemoryError: GC overhead limit exceeded error is displayed when your application has exhausted pretty much all the available memory and GC has repeatedly failed to clean it.
      • GC overhead limt exceed检查是Hotspot VM 1.6定义的一个策略,通过统计GC时间来预测是否要OOM了,提前抛出异常,防止OOM发生。Sun 官方对此的定义是:“并行/并发回收器在GC回收时间过长时会抛出OutOfMemroyError。过长的定义是,超过98%的时间用来做GC并且回收了不到2%的堆内存。用来避免内存过小造成应用不能正常工作。
      • 98% of the total time doing GC and when after the GC only less than 2% of the heap is recovered.
      • UseGCOverheadLimit
    • java.lang.OutOfMemoryError: Permgen space
      • the main cause for the java.lang.OutOfMemoryError: PermGen space is that either too many classes or too big classes are loaded to the permanent generation.
    • java.lang.OutOfMemoryError: Metaspace
      • jdk8
    • java.lang.OutOfMemoryError: Unable to create new native thread
      • Java application has hit the limit of how many Threads it can launch.
    • java.lang.OutOfMemoryError: Out of swap space?
      • The java.lang.OutOfmemoryError: Out of swap space? is thrown by JVM when an allocation request for bytes from the native heap fails and the native heap is close to exhaustion.
    • java.lang.OutOfMemoryError: Requested array size exceeds VM limit
      • Increasing the length of the array by one to Integer.MAX_VALUE-1 results in the familiar OutOfMemoryError:
    • Out of memory: Kill process or sacrifice child
      • The Out of memory: kill process or sacrifice child error is generated when the available virtual memory (including swap) is consumed to the extent where the overall operating system stability is put to risk. In such case the Out of memory killer picks the rogue process and kills it.

相关文章

  • Java-OOM整理

    OOM整理 java.lang.OutOfMemoryError: Java heap spacememory l...

  • 整理+整理+整理

    最近开启了整理狂魔的模式,各种资料整理,分类梳理,删删减减,颇有强迫症的赶脚,这是为了拖延正事才做的徒劳行为么? ...

  • 整理~整理~整理~

    整理过后,天晴了 乱了一段时间,把心放逐,让一切随风,但是离意却越差越远,面对诸多的不满意,通过发泄,自我调整,就...

  • 整理整理

    近两天状态不是很好,昨天原本计划好要写作业的,结果喝酒最终没有完成打卡,今天为此还是很焦虑,回家后为了消除情绪上的...

  • 整理整理

    在说点什么之前,先来讲讲一个叫康奈尔笔记法的小笔记法。 所谓的「康奈尔笔记法」,源自美国康奈尔笔记法故而得名,它是...

  • 整理整理

    今天突发奇想洗了洗地毯,结果清洗完地毯以后发现地板很脏,于是又拖了拖地,结果发现屋子又有点乱,然后就开始整理屋子,...

  • 整理整理

    最近已做好的事情: 完成了一篇论文,已投稿,发表应该问题已不大,前几天编辑说已过了二审,在等待三申,到现在没说让改...

  • 整理整理

    今天业余主要是把院长连线的与孩子人际关系的案例进行了一下整理和文字修改。 同时把前段时间整理的体验课的例子也整理完...

  • 整理整理

    家务真是越做越多。 不做的话就俩问题,脏和乱。做了就会冒出很多问题。 1、现在家里要面临被子没地方收的问题 解决方...

  • 整理整理github

    github:Reim nodejs写的简易留言板https://github.com/Reim/messageb...

网友评论

      本文标题:Java-OOM整理

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