Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
必须为在线服务监控创建某种“计数器” - 即 Foo_Request_Total、Foo_Request_DB_error、Foo_Request_Timedout、Bar_Request_Total...
此外,当计数器超过预定义的限制时,必须生成某种警报(例如,如果每小时超过 5 个请求超时,则 SNMP 陷阱)。
你能为此推荐任何Java框架吗?
Java 中的标准监控机制是JMX。
您可以远程监控服务,甚至可以执行命令。
您可以使用 JMX/SNMP 连接器将值映射到 MIB 并生成陷阱。
http://perf4j.codehaus.org/index.html或https://github.com/earnstone/eperf怎么样?