all groups > macromedia flash flashcom > november 2006 >
You're in the

macromedia flash flashcom

group:

Logging performance stats externally



Logging performance stats externally PaulDixon
11/28/2006 10:07:06 PM
macromedia flash flashcom: Can I programatically obtain the kind of performance stats you see in the
management interface, e.g. get a count of number of connections, number of
active streams etc.

We use tools like munin and nagios for server tracking, I'd like to integrate
FMS into this.

Can anyone recommend the best way to go about this?
Re: Logging performance stats externally eKameleon
11/29/2006 12:03:20 AM
Hello :)

In the FMS documentation :
http://livedocs.macromedia.com/fms/2/docs/wwhelp/wwhimpl/common/html/wwhelp=
..htm?context=3DLiveDocs_Parts&file=3D00000003.html

You must read :

The Server Management ActionScript Language Reference documents
advanced ActionScript methods that you can use to extend the Flash
Media Server management console or to make your own administration and
monitoring tools.

You can find the PDF version of this manual on the Flash Media Server
CD (flashmediaserver_mgmt_asd.pdf).

All pdf are in the install path of the server.

EKA+ :)

PaulDixon a =E9crit :

[quoted text, click to view]
Re: Logging performance stats externally fattchris
12/1/2006 4:36:17 AM
I am also very interested in showing my customers reports on their usage. It
seems I cannot find any good info or tutorials on line, and am not proficient
enough yet to make it from scratch myself (without guidance).

If anyone can help, please let me know too!
Re: Logging performance stats externally FMS_Developer
12/1/2006 8:25:59 PM
You can make a management aka debug connection to the server (by supplying the
login + password you use to access the FMS console) and then read using the
built-in management-commands all information that's available at that time.

To store periodic data (e.g. samples every 5 minutes) you have to create an
SWF that will connect to the server and will retrieve the data you want. Then
use a simple sendAndLoad method to supply the data to some script on some
webserver and let the script store the data in a database for later analysis.

You can find many examples in the management-docs (pdf) in the documentation
directory of your FMS-installation.
Re: Logging performance stats externally JayCharles
12/2/2006 3:01:26 PM
I suppose the best way to do it depends on the structure of your application
and what data you need to collect. Data about connected clients and streams can
be obtained through your application, but if you want to track data transfer,
bandwidth usage, license usage, etc.... you'll need to make a connection to the
admin service.

You can use a .swf to retrieve the data as FMS-Developer mentioned, but you
can also have that happen on the server side. You can build an FMS app that
will run with no connected clients, and report server stats back to your
remoting service, XML socket server, or to any app server that accepts http
post/get requests. If you don't use an .swf, you just need to design the app so
it doesn't shut down when the server does garbage collection (return false in
your onAppStop handler), and you'd need to start it through the admin console.

Since most of the http side backend I do is PHP I prefer to use AMFPHP for
things like this, but there are a world of otheroptions. If you provide some
detail about the data you need to collect and how you need to collect it, and
about your server/application server/web service model, maybe we can come up
with ideas about the best option.
AddThis Social Bookmark Button