我正在使用spring boot提供的默认缓存方法 . 我还没有配置任何缓存管理器 . 我只是使用 @Cacheable@CacheEvict 注释而已 .

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内存限制?