Ehcache cache size at runtime

前端 未结 3 2090
轻奢々
轻奢々 2021-01-02 19:24

I am running a large VM in production and would like to understand more about my cache size at runtime. My caches are all based upon ehache

What is the best way to s

3条回答
  •  情歌与酒
    2021-01-02 19:44

    JMX is definitely a viable solution. The EhCache doc has a page specifically for this.

    Here's an example of configuring EhCache via JMX. The linked article contains a Spring config, but it's easily translatable to native Java if you're not using Spring.

提交回复
热议问题