jvm之GC overhead limit exceeded
接口响应异常
/im-search/group/search?pageIndex=1
[10.5.167.102,service-im-search-7468f8f8c8-jx45q] NoNodeAvailableException[None of the configured nodes were available: [{o6AhCBr}{o6AhCBr2QtSpGVC5TGj-lA}{No0AH0qdTgGD804mJQcgYw}{172.17.0.3}{10.6.1.38:7300}{ml.machine_memory=16658460672, ml.max_open_jobs=20, xpack.installed=true, ml.enabled=true}]]; nested: NodeDisconnectedException[[o6AhCBr][10.6.1.38:7300][indices:data/read/search] disconnected];
原因
执行垃圾收集的时间比例太大, 有效的运算量太小. 默认情况下, 如果GC花费的时间超过 98%, 并且GC回收的内存少于 2%, JVM就会抛出这个错误。
解决方案
调整xmx大小