如何查看 Hazelcast 缓存日志

How to view Hazelcast cache logs

我有一个包含两个微服务和一个网关的项目。两者都是通过 JHipster 生成的。我使用 Hibernate 二级缓存进行缓存,并用 Hazelcast cache solution. Everything deployed to Docker using docker-compose. My question is "When I load the entities the second time, how do I know if microservice hitting the database or fetching from cache". Where can I see generated hibernate queries for each request? And cache provider logs? Code uploaded to Github 实现了这个以供参考

一种可以一直使用到生产的方法是使用 management center application.You can monitor put and get throughtput and many other performance statistics of your cluster using the management center application。或者,您可以使用 jconsole 或任务控制(如果使用 Oracle 的 JVM)连接到每个单独的节点以查看 JMX 统计信息。