-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Mark,
On 5/14/14, 1:41 PM, Mark Eggers wrote: > On Wed, 14 May 2014 12:28:46 -0400, David kerber wrote: > >> I am working on a small Tomcat servlet to monitor other >> tomcat-based applications running on the same physical machine, >> and am trying to figure out the best way to communicate between >> the monitoring app, and the monitored apps. >> >> My setup has several tomcat instances of a single application, >> each running from its own directory, and listening on its own TCP >> port. So there is no direct communication between the >> instances. >> >> I'm trying to monitor various data about the application, not >> about tomcat itself or the JVM. So I want to collect such things >> as the number of requests it has processed, the last data >> received, etc, and not things like memory and cpu usage. It is >> my app, so I can (and expect to need to) add methods or servlets >> to return the information I want to collect. >> >> My question is, what is the best way to make the request to get >> the data? Would URL request from the monitoring app to the >> monitored app be appropriate, and then parse the response out for >> display in a browser? If so, what java class is likely to be >> useful for this communication? I will have all the information >> needed to connect to the application instance (server, port, >> etc), but want it to be portable across OS types. >> >> Thanks! > > http://wiki.apache.org/tomcat/FAQ/Monitoring > > In particular, item 3. Unfortunately, the sample code seems to be > missing . . . Which is "item 3"? I'd be happy to fix whatever is missing. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTdjLiAAoJEBzwKT+lPKRYKK0P/37LoZHwXvDX/jQ/CNXoC85P WpqyFkowFVG5M5XGNhnAvYIBgCuHD0lteur4M0+ovhYJky1LyzoPfK78L+aEAaMG 9MtCKH9wAIz9hNfQdYSw8EBE8pHzQ9xmnqrl2LqVtFkUq1SVQaCNQ7PH/s6dsq0C ZElWzyCv8AcLZRQ0P5cWR4URA4EE26i4v5/WRzs5JddJFF7KcqLfdFsFQRR8EBCf J8nBOJvFhtsbXSLZFeLmzJt4Cpmu1jfaAnkCGu/iJHqlnN6pqsRJMcciYOivfWd6 5krVvOL/7+UbO0gmsu3qCzjbgbKWBlwleaNMRcR+VSUDHaVUVAdVzNIWIqFzAk7V AM07bWOl/pE3+SbOav+ckJN9nhTUeQUvEsmvPSKx78N2CGJvZw080dLzlQu4kxMN TEGvOrhOmxy2SJMQ1VMVRRKxiG/mIpMJDZxB7SxaWvw7Y7STkkgz+rn3fAh0guQa HiGEQSEuoRuD65PojSMXiZUEmT58OZkjYvqckjFkdedRUQSS7QB1FagkRRHB5uZ5 Q4v75AHiyLBCjdHSEJDnpOQbTMPnJEiT3iy8kQZtpH3SoDL4EWg9m9H5eZkfVKaL +XgjDvfIXnZ2PD7I+rVGukkWz/wrv3OBVWwRSacdQZSa96z5JnAH9lwepL+Zm9M0 U7CtgDY30Q22fYqJFP7F =IIse -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org