Closed twotwo7 closed 3 weeks ago
informers start but not call shutdown? func (c *ListerInformer) StartAndWaitForCacheSync(ctx context.Context) bool {
call c.KubeFactory.Shutdown() directly?
Please help me! Thank you~! @tao12345666333 @AlinsRan @Revolyssup
@twotwo7 Thanks for reporting. I will take a look at it today.
@twotwo7 Thanks for reporting. I will take a look at it today.
Thank you very much for your response and assistance. May I inquire about the current progress? It appears to be a stable and reproducible memory leak issue. The leak seems to occur each time APISIX is restarted, possibly due to the reinitialization of the informer within the APISIX-ingress-controller, and the subsequent list & watch operations.
@Revolyssup
This issue has been marked as stale due to 90 days of inactivity. It will be closed in 30 days if no further activity occurs. If this issue is still relevant, please simply write any comment. Even if closed, you can still revive the issue at any time or discuss it on the dev@apisix.apache.org list. Thank you for your contributions.
This issue has been closed due to lack of activity. If you think that is incorrect, or the issue requires additional review, you can revive the issue at any time.
Current Behavior
apisix-ingress-controller version : 1.6.1
Restart apisix for the first time, apisix-ingress-controller memory increased from 64Mi -> 75Mi
Restart apisix for the fifth time, apisix-ingress-controller memory increased 104Mi -> 124Mi
Restart apisix for the 10th time, apisix-ingress-controller memory increased 171Mi -> 177Mi
Restart apisix for the 12th time, apisix-ingress-controller memory increased from 183Mi -> 192Mi
Restart apisix for the 13th time, apisix-ingress-controller memory does not change much 192Mi -> 194Mi
At this time, I found that after restarting apisix, the memory of apisix-ingress-controller did not increase much. But the log keeps reporting errors when accessing the apiserver. It should be that the list does not have data, so the memory does not increase.
After a while, apisix-ingress-controller restarted
Expected Behavior
apisix-ingress-controller memory will not grow when apisix restart
Error Logs
pprof file
apisix-ingress-controller-pprof.zip
Steps to Reproduce
apisix-ingress-controller version : 1.6.1
Environment
apisix-ingress-controller version --long
)kubectl version
)uname -a
)/ingress-apisix # ./apisix-ingress-controller version --long
kubectl version
uname -a