binnny
V2EX  ›  问与答

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

  •  
  •   binnny · Nov 7, 2022 · 1476 views
    This topic created in 1294 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   ·   3198 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 13:29 · PVG 21:29 · LAX 06:29 · JFK 09:29
    ♥ Do have faith in what you're doing.