[英]how to get url request/response count of webapp deployed in Tomcat
我正在部署包含tomcat 1.7上的图像或文件的Web应用程序。我想在Web应用程序中测量这些图像/文件的url请求计数。是否有任何配置/任何插件可用于在Tomcat中进行测量?
I know of no APIs that let you do that. 我知道没有API能让您做到这一点。 But you've always got the traffic logs (in the [root]/logs/ directory).
但是,您始终可以获得流量日志(在[root] / logs /目录中)。 Where/if you've got traffic logging enabled is controlled in server.xml -- search for
<Valve className="org.apache.catalina.valves.AccessLogValve"
. 在server.xml中控制启用/启用流量日志记录的位置/-搜索
<Valve className="org.apache.catalina.valves.AccessLogValve"
。 As long as you don't need this data in real time, that's probably the way to go. 只要您不需要实时的数据,这就是可能的方法。
Try this. 尝试这个。 It's a webapp you deploy to your container that gives you details about the other web apps in there.
这是您部署到容器中的Web应用程序,可为您提供有关其中其他Web应用程序的详细信息。 Request count is one of the metrics.
请求计数是指标之一。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.