开发者

Simple web aplication (Tomcat) performance dashboard

开发者 https://www.devze.com 2023-02-11 17:47 出处:网络
I was wondering if anyone could point m开发者_开发知识库e to right solution for simple performance dashboard for my web application. Technology stack: Tomcat + Springframework.

I was wondering if anyone could point m开发者_开发知识库e to right solution for simple performance dashboard for my web application. Technology stack: Tomcat + Springframework.

I was looking int OpenCore, but seams that their dashboard is quite expensive.

I would like to have easy access to memory usage and response times. I could try to write my own solution, but I would rather to not invent the wheel.

Googling for a while just gave me OpenCore.

Any suggestions?


The standard way to monitor Tomcat (and many other Java apps, too) is JMX.

After you start Tomcat with JMX enabled, launch jconsole and connect to Tomcat process. You should see loads of things; all of this data is accessible from within your webapp.

In order to get response times, you need to look at CatalinaGlobalRequestProcessorhttp-<yourPort>Attributes section. It has processingTime and requestCount; from these you can get the average if necessary.

To get heap memory usage, look at java.langMemoryAttributesHeapMemoryUsage and NonHeapMemoryUsage.

0

精彩评论

暂无评论...
验证码 换一张
取 消