yanghao605 opened a new issue, #4130:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4130

   
![image](https://github.com/apache/servicecomb-java-chassis/assets/73453250/6ac359f0-2a14-4bb5-babc-b19daeef9dd9)
   使用的是2.8.4版本的SDK
   现象是:业务进程出现过OOM,后续BlockedThreadChecker在执行过程中也因OOM抛出异常
   日志如下:
   ```
   OOM caused by java heap space occurred, allocate size: 48 bytes, type: 
Ljava/util/WeakHashMap$EntryIterator;
    garbage-first heap   total 524288K, used 329140K [0x00000000e0000000, 
0x0000000100000000)
     region size 1024K, 0 young (0K), 0 survivors (0K)
    Metaspace       used 118670K, capacity 127785K, committed 128356K, reserved 
258048K
     class space    used 15242K, capacity 16640K, committed 16792K, reserved 
145408K
   current stack trace:
        at java.util.WeakHashMap$EntrySet.iterator(WeakHashMap.java:971)
        at 
io.vertx.core.impl.btc.BlockedThreadChecker$1.run(BlockedThreadChecker.java:51)
        - locked <0x00000000e2a38fb0> (a 
io.vertx.core.impl.btc.BlockedThreadChecker)
        at java.util.TimerThread.mainLoop(Timer.java:555)
        at java.util.TimerThread.run(Timer.java:505)
   Exception in thread "vertx-blocked-thread-checker" 
        java.lang.OutOfMemoryError: Java heap space
                at java.util.WeakHashMap$EntrySet.iterator(WeakHashMap.java:971)
                at 
io.vertx.core.impl.btc.BlockedThreadChecker$1.run(BlockedThreadChecker.java:51)
                at java.util.TimerThread.mainLoop(Timer.java:555)
                at java.util.TimerThread.run(Timer.java:505)
   ```
   初步怀疑是OOM导致的BlockedThreadChecker抛出异常,没有复现条件
   是否可以考虑将BlockedThreadChecker的时间周期拉长,或者关闭该检测机制


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to