Spring启动缓存内存使用情况

时间:2017-12-14 00:44:42

标签: java maven caching spring-boot tomcat8

我正在使用spring boot提供的默认缓存方法。我还没有配置任何缓存管理器。我只是使用@Cacheable@CacheEvict注释而不是其他任何内容。
- 根据春天:
#cache-strategies

Just like other services in the Spring Framework, the caching service is an abstraction 
(not a cache implementation) and requires the use of an actual storage to store the
cache data - that is, the abstraction frees the developer from having to write the
caching logic but does not provide the actual stores. This abstraction is materialized
by the org.springframework.cache.Cache and org.springframework.cache.CacheManager
interfaces.

它还说:
#boot-features-caching-provider-simple

If none of the other providers can be found, a simple implementation using a 
ConcurrentHashMap as cache store is configured.

我的问题是:
  - spring boot简单缓存使用的实际内存是多少?   - 它是否遵守JAVA_OPTS / CATALINA_OPTS内存限制?

0 个答案:

没有答案