简体   繁体   English

监视Java EE应用程序

[英]Monitoring Java EE Application

I am deploying several applications over Payara Server. 我正在通过Payara Server部署几个应用程序。 With VisualVM I can see the CPU, RAM etc. usage of the Glassfish Server. 使用VisualVM,我可以看到Glassfish服务器的CPU,RAM等使用情况。 My problem is that I need to see the usage of each deployed application on the server seperatet. 我的问题是我需要分别查看服务器上每个已部署应用程序的使用情况。

Does anybody has an idea how I could monitor this ? 有人知道我该如何监视吗? Thanks! 谢谢!

I think this could be quite difficult since application servers are designed to share at least basic components/classes between applications. 我认为这可能非常困难,因为应用程序服务器旨在在应用程序之间至少共享基本组件/类。

However, you could try to use https://docs.oracle.com/javase/8/docs/api/java/lang/management/ThreadMXBean.html to find the CPU usage of all threads and filter those out that are not interesting to you (maybe by package name). 但是,您可以尝试使用https://docs.oracle.com/javase/8/docs/api/java/lang/management/ThreadMXBean.html查找所有线程的CPU使用率并过滤掉那些不感兴趣的线程给您(也许按包裹名称)。

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

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