monitoring one app spread on multiple servers
Okay, so I have an application that is going to be load balanced on multiple servers. The way I understand monitoring is that you can monitor the one instance of that application on that one server.
For example, srv1:8880 will show different monitoring statistics for srv2:8880. Is there anyway I can create a 开发者_Go百科single monitoring instance for a shared application? So for the above example, say I have a monitor with a count of 5 on srv1 and a count of 3 on srv2 I can combine the two to a single location and have that count be 8.
Edit - I'm thinking I can pull everything from the RMI port but I'm not sure how I can go about it.
Not sure what level of monitoring you need, but NewRelic RPM can tie into the JVM and provide performance metrics and automatic exception tracking.
For more information on what NewRelic does, see their website.
You can connect to platform or Application MBean server using JConsole, MC4J or similar tools. If you want to do custom tasks based on values from multiple mbean servers, connect to each server, and query MBean information. You can get more details on connecting to MBean Server here.
精彩评论