有没有方便的方法来分析servlet?

时间:2022-12-04 15:51:27

Traditional logfile analytics tools (awstats, statcounter) or general web analytics (google analytics, yahoo web analytics) are not suitable for analyzing traffic on servlets. Is there a good alternative to log messages using a logging framework (log4j for example) and to write a custom analytics software for these?

传统的日志文件分析工具(awstats,statcounter)或一般网站分析(谷歌分析,雅虎网络分析)不适合分析servlet上的流量。是否有使用日志框架(例如log4j)记录消息的良好替代方法,并为这些编写自定义分析软件?

2 个解决方案

#1


1  

Perhaps you could write a servlet filter that reports analytics etc. via the platform independent JMX monitoring infrastructure?

也许您可以通过独立于平台的JMX监控基础架构编写一个报告分析等的servlet过滤器?

#2


1  

I use dTrace, but I run on Solaris. If your on Linux they also have a similar tool SystemTap. They are great for analytics and especially if you don't want to change a single line of code of your application.

我使用dTrace,但我在Solaris上运行。如果你在Linux上他们也有类似的工具SystemTap。它们非常适合分析,特别是如果您不想更改应用程序的单行代码。

Note: Both of these allow you to measure traffic with simple scripts

注意:这两种方法都允许您使用简单脚本测量流量

#1


1  

Perhaps you could write a servlet filter that reports analytics etc. via the platform independent JMX monitoring infrastructure?

也许您可以通过独立于平台的JMX监控基础架构编写一个报告分析等的servlet过滤器?

#2


1  

I use dTrace, but I run on Solaris. If your on Linux they also have a similar tool SystemTap. They are great for analytics and especially if you don't want to change a single line of code of your application.

我使用dTrace,但我在Solaris上运行。如果你在Linux上他们也有类似的工具SystemTap。它们非常适合分析,特别是如果您不想更改应用程序的单行代码。

Note: Both of these allow you to measure traffic with simple scripts

注意:这两种方法都允许您使用简单脚本测量流量