we-cmdb icon indicating copy to clipboard operation
we-cmdb copied to clipboard

Potential risk of request scope cache

Open junchensz opened this issue 7 years ago • 0 comments

描述您的需求
We use request scope cache in CMDB for performance improvement, while there are some potential OOM risks.

  1. Cache CI data for method com.webank.cmdb.service.impl.CiServiceImpl.getCacheableCi(), that can cause OutOfMemoryError when large amount of CI data is cached, we can make cache manager implement capacity limitation and cache item eviction.
  2. Since we just implement cache in request scope, each query request will consume more memory for cache, OutOfMemoryError can be caused by large scale concurrent query request.

预期行为

描述您考虑过的替代方案
Limit the query concurrency number.

附加

junchensz avatar Oct 26 '19 10:10 junchensz