jagerzhang edited a comment on issue #6725:
URL: https://github.com/apache/apisix/issues/6725#issuecomment-1080081313


   @pguokun 
我在腾讯云TKE(K8S)也发现有这个问题,内存增长趋于线性,内存缓缓增长到预设HPA之后会触发HPA弹性扩容,然后会一直扩再也不会缩回来了,得销毁重建才会回到最开始状态。
   
   我们这边用的插件如下:
   
   全局插件:
   - request-id
   - resonset-rewrite
   - kafka-logger
   
   路由插件:
   - proxy-rewrite (5%)
   - consumer-restriction (70%)
   - hmac(70%)
   - limit-count (70%)
   
   以下是2C2G的Pod配置,之前用的1C1G跑半个月就会触发HPA扩容了。
   
![image](https://user-images.githubusercontent.com/9711651/160310159-bb340827-cbf4-47b6-9097-d7f8530d2aa4.png)
   
![image](https://user-images.githubusercontent.com/9711651/160310128-72dd4e65-a495-4e5a-825a-9b0d584b1971.png)
   
   
不太清楚这里面有没有GC机制,如果有GC,GC的触发条件是不是内存占用到一定程度时才触发?而运行在容器里面,程序看到的内存其实是宿主机的内存,而非容器limit内存,会导致永远不可能触发GC呢?目前Python3.7及以下版本就有这个问题,看到的是宿主机的资源,导致GC不会被主动执行。
   
   以上,仅供参考哈~


-- 
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