You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by "mike-huawei (via GitHub)" <gi...@apache.org> on 2026/01/20 07:06:18 UTC

[I] [BUG] - Issue Title 服务升级契约加载导致内存泄露 [servicecomb-java-chassis]

mike-huawei opened a new issue, #5061:
URL: https://github.com/apache/servicecomb-java-chassis/issues/5061

   ### Steps to Reproduce
   
   1、服务B升级
   2、服务A调用服务B,A的内存占用增加(永远不会释放)
   
   ### Expected Behavior
   
   有定期清理机制
   
   ### Servicecomb Version
   
   2.8.24
   
   ### Additional Context
   
   怀疑是这里的问题:
   
   <img width="1357" height="469" alt="Image" src="https://github.com/user-attachments/assets/87109b09-15c6-463c-b706-8667f6eee5e9" />


-- 
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: commits-unsubscribe@servicecomb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [BUG] - Issue Title 服务升级契约加载导致内存泄露 [servicecomb-java-chassis]

Posted by "chengyouling (via GitHub)" <gi...@apache.org>.
chengyouling commented on issue #5061:
URL: https://github.com/apache/servicecomb-java-chassis/issues/5061#issuecomment-3771509218

   上游服务A长时间不重启,下游服务B频繁变更升级,导致A不停加载B服务契约,导致内存消耗增加。


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [BUG] - Issue Title 服务升级契约加载导致内存泄露 [servicecomb-java-chassis]

Posted by "chengyouling (via GitHub)" <gi...@apache.org>.
chengyouling commented on issue #5061:
URL: https://github.com/apache/servicecomb-java-chassis/issues/5061#issuecomment-3771368315

   应该不会是这里的问题,可以观察下是不是一直打印load schema from service center......相关日志


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [BUG] - Issue Title 服务升级契约加载导致内存泄露 [servicecomb-java-chassis]

Posted by "hezhangjian (via GitHub) via commits" <co...@servicecomb.apache.org>.
hezhangjian commented on issue #5061:
URL: https://github.com/apache/servicecomb-java-chassis/issues/5061#issuecomment-6840458000

   Following up on the memory-growth report on 2.8.24.
   
   [#5062](https://github.com/apache/servicecomb-java-chassis/pull/5062) (against `2.8.x`) and [#5064](https://github.com/apache/servicecomb-java-chassis/pull/5064) (against `2.9.x`) were opened for this issue, then closed on 6 March 2026 without being merged, and their head branches were deleted. I compared `SwaggerLoader.java` in 2.8.24 with the later published [2.8.31](https://github.com/apache/servicecomb-java-chassis/releases/tag/2.8.31) and [2.9.5](https://github.com/apache/servicecomb-java-chassis/releases/tag/2.9.5) releases; the file content is the same, so I do not see this change in a published release.
   
   On [#5064](https://github.com/apache/servicecomb-java-chassis/pull/5064#issuecomment-3815254307) there was also an open question about whether the proposed cache-key change would actually address leaks caused by frequent version upgrades. I have not verified a root cause or a working fix.
   
   Could you confirm whether you can still reproduce this on a later published 2.8.x or 2.9.x release, and share sanitized memory / `load schema from service center` observations if you can? That will help us decide the next investigation step.


-- 
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: commits-unsubscribe@servicecomb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org