-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Mark,

On 5/17/14, 10:58 AM, Mark Eggers wrote:
> Chris,
> 
> On 5/16/2014 8:46 AM, Christopher Schultz wrote:
>> -----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
> 
> Example Application Exposing Internals Using JMX
> 
> at the bottom of the page goes nowhere. More accurately, it goes to
> a placeholder page.

Aah. NevenCvetkovic added that link, not me, so I dunno what he was
expecting to put there.

I should probably link to my ApacheCon presentation if I'm not going
to take some time to update the wiki itself.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTeSWGAAoJEBzwKT+lPKRYyFYP/iBJGwEDqWRCu8Lv5Bt/OTzr
W4GOxbLV5Kkp6GBE+XaUWbwo+Mpz2+NkrtJ6HBjSpG8AtONDxH98GDGe2RWaV0d9
1pVGhRzBMOHnohVjJ+3s4KK0fKrzO/fmSYu/qgZBlGwZy/8Pw3tWMmXwFP5uOSDK
Q7qchK54Na7WWvEd3hoOCz9tSXUX+VU+rCxHKlLDaH6f4oDsnXaA/DWWSxIGuuBj
7+TUBp43Rg/WDDBnrlBjdaTqpXvrdQ81Ys+nXJIeeJucOpKDaQi3MBhOt9jYnU3L
VhHzLdS3pZGhx9kM+4TBaA2Hr3wbEn6RhF50EEgJSwqYqbxu6ZC/GBwNBPy9m0Yx
wOKSoHO1UVHxa9nAv5ovhP5tvDdN66CxlcekHUhFev6QnPS+pdpQYQxisbWpr1HH
p0QJjRqWpACqyLygEuYgaZ7kZbIF3PXh9BEDadvqcMjwVvJB1JGB6aU1e0FEkt67
YryB4iUTAcZ0aKut0BJdv3Hf0EYBzR7xo7Ug5jQVtNhVYG3pSHT1gJEG3r107uNH
Hgl554cYTNWGaLBQJs27BfxT7K2LnXld4aTTgKGfnsEwRFaOzHN0f32ZC76cAoY0
dO2fEtzxALD6fGgSbv1LRohum04lHr7kztUU21TDfvhBjou/v+wcQ3BK05YQLf5O
Rf6Ux+9kPA29Rae5X/nW
=Wogo
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to