[SOLVED] Monitoring memory usage

All Union Platform questions, comments, feature requests, and bug reports.

Monitoring memory usage  

Postby toby » Wed 13 Feb 2013 05:01

I would like to track and record the memory usage numbers as reported by Union Admin,
rather than just sit there staring at Union Admin, and making notes or something.

I could see a couple of ways to do that, but cannot pin down an API.

1) write an admin client, which sends A6 and receives A7 messages,
as Union Admin does. I could not find any documentation on how to do that,
or the format of those messages.

2) do something similar, but using a server module.
However, in looking at the server class, http://unionplatform.com/docs/union/api ... erver.html
I see that it can retrieve some of the things Union Admin reports
(such as getStartTime() and getLifetimeNumRooms), but not getMemoryInUse or whatever.

If there is way to take either of those approaches, I'd appreciate a pointer to the
relevant documenation.
toby
 
Posts: 162
Joined: Sun 24 Jun 2012 14:18

Re: Monitoring memory usage

Postby derek » Thu 14 Feb 2013 19:21

Hi toby,

1) You can find information on the admin messages at the uap page.

2) The Union code is just using the Runtime class to access memory statistics. Your server module might more flexibly do the same to get the exact statistics you want.

Cheers,

Derek
derek
 
Posts: 68
Joined: Mon 17 Oct 2011 19:12


Return to Union Platform

Online

Users browsing this forum: No registered users and 8 guests