简体   繁体   English

如何分析运行Tomcat的嵌入式H2数据库的内存消耗?

[英]How to analyse the memory consumed embedded H2 database which is running Tomcat?

H2 jar is placed in WEB-INF\\lib folder of Tomcat. H2 jar放置在Tomcat的WEB-INF \\ lib文件夹中。 Embedded H2 DB is running inside Tomcat 9.0.14.I just wanted to analyse the memory usage by H2 DB. 嵌入式H2 DB在Tomcat 9.0.14内部运行,我只想分析H2 DB的内存使用情况。

I am able to get the total heap memory usage by tomcat. 我可以通过tomcat获取总堆内存使用情况。 But not able to find the memory usage by H2 DB process. 但是无法通过H2 DB进程找到内存使用情况。

Should your app is the sole app to access your db, try to check this out. 如果您的应用是访问数据库的唯一应用,请尝试进行检查。

http://www.h2database.com/html/performance.html

You can also use tomcat manager 您也可以使用tomcat管理器

https://tomcat.apache.org/tomcat-8.5-doc/manager-howto.html#Introduction

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM