You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by "yanghao605 (via GitHub)" <gi...@apache.org> on 2023/11/26 09:09:38 UTC
[I] 2.8.4版本 性能优化分析 [servicecomb-java-chassis]
yanghao605 opened a new issue, #4054:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4054
2.8.4版本中使用PriorityProperty保存每一个operation对应的配置项,且是初始化的时候就会生成。
动态加载的相关配置项由OperationConfig中定义,如:

这就导致一个operation会对应10+PriorityProperty对象,PriorityProperty中包含了一个PropertyType和一个DynamicProperty数组

最终会导致SDK中的内存占用会随着operation的数量以十几倍的比例进行增长。
--
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] 2.8.4版本 性能优化分析 [servicecomb-java-chassis]
Posted by "yanghao605 (via GitHub)" <gi...@apache.org>.
yanghao605 closed issue #4054: 2.8.4版本 性能优化分析
URL: https://github.com/apache/servicecomb-java-chassis/issues/4054
--
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] 2.8.4版本 性能优化分析 [servicecomb-java-chassis]
Posted by "yanghao605 (via GitHub)" <gi...@apache.org>.
yanghao605 commented on issue #4054:
URL: https://github.com/apache/servicecomb-java-chassis/issues/4054#issuecomment-1826991229
3000个operation时的内存占用情况:


300个operation时的内存占用情况:


优化后的900个operation内存占用情况对比:
优化前:


优化后:


缺陷:会随着实际调用的operation增多而增多
--
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