binnny
V2EX  ›  问与答

jvm 想 full gc 之后老年代占用 90%再 dump,且与上次 dump 相隔超过 10s,该怎么实现好?

  •  
  •   binnny · Nov 7, 2022 · 1710 views
    This topic created in 1387 days ago, the information mentioned may be changed or developed.
    如题,只搜到一个参数 full gc 前和后 dump,标题的效果能实现吗?
    2 replies    2022-11-08 09:36:25 +08:00
    hbprotoss
        1
    hbprotoss  
       Nov 8, 2022
    无解,自己写监控脚本吧
    cloudyplain
        2
    cloudyplain  
       Nov 8, 2022
    MemoryPoolMXBean 有个 UsageThreshold ,应该能搞。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1355 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 80ms · UTC 17:12 · PVG 01:12 · LAX 10:12 · JFK 13:12
    ♥ Do have faith in what you're doing.