在生产环境中监视Apache Tomcat应用程序 [英] Monitoring Apache Tomcat applications in production environment

查看:109
本文介绍了在生产环境中监视Apache Tomcat应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何确保生产中的应用程序已启动并正在运行? 如果出现问题,您如何提醒开发人员团队?

How do you ensure that your applications in production are up and running? How do you alert your team of developers if something goes wrong?

我之所以这样问,是因为我正在编写bash脚本来检查此问题,我想知道是否有更聪明或更完整的方法来实现此目的. 后面的想法是这个命令:wget -q -O - APPLICATION_URL_HERE | grep 'ERROR 404,我仍然必须检查各种HTTP错误,但是您可以理解我的意思. 如果识别出某个应用程序未在运行,则会将邮件发送到其所属团队的列表中.

I'm asking this because I'm writing a bash script to check for this issue, I'd like to know if there is a smarter or more complete way to achieve this. The idea behind is this command: wget -q -O - APPLICATION_URL_HERE | grep 'ERROR 404, I still have to check all kinds of HTTP errors, but you can get the point of what I mean. If an application is recognized to not be running a mail is sent to the list of the team it belongs to.

我所有的应用程序都在Apache Tomcat上运行.

All my applications are running on Apache Tomcat.

推荐答案

通常可以通过JMX监视Tomcat.从此文档中可以看出.通常,这将是最干净的监视方式,因为它可以集成到许多支持各种通知和铃声的第三方监视工具中.

Tomcat can typically be monitored via JMX; as can be seen from this documentation. This will normally be the cleanest way to monitor, since this can be integrated into a number of third-party monitoring tools that can support all kinds of notifications and bells and whistles.

如果您的网站已经打开并且对客户可见,那么这可能仍不能为您提供完整的外部视图"图片,因为还有很多其他地方可能会出错.相当多的管理系统还允许您安装执行此操作的代理,并将其集成到总体监视方案中.有许多开源jmx工具

This may still not give you the full "outside view" picture if your site is up and visible to customers, since there is a number of other things that can go wrong. Quite a few of the management systems also allow you to install agents that do this and integrate into the total monitoring scheme. There are a number of open source jmx tools

这篇关于在生产环境中监视Apache Tomcat应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆