User Guide
getServerStats() 47
getServerStats()
Availability
■ Flash Player 6.
■ Flash Communication Server MX 1.0.
Usage
getServerStats()
Parameters
None.
Returns
If the call succeeds, the server sends a reply information object with a level property of
status, a code property of NetConnection.Call.Success, and a data property that is an
object. The
data object has the following properties:
Property Description
launchTime
ActionScript Date object; time the server was started.
up_time
Number; length of time, in seconds, that the server has been running.
io
I/O statistics, returned as an object with the following properties:
msg_in: Number; total number of messages processed by the server.
msg_out: Number; total number of messages sent by the server.
bytes_in: Number; total number of bytes read by the server.
bytes_out: Number; total number of bytes written by the server.
reads: Number; total number of system read calls.
writes: Number; total number of system writes.
connected: Number; total number of active socket connections to the
server.
total_connects: Number; total number of socket connections to the server.
total_disconnects: Number; total number of socket disconnections from
the server.
msg_cache
Flash Media Server message packet cache statistics, returned as an object
with the following properties:
allocated: Number; total number of message objects allocated.
reused: Number; total number of objects reused.
size: Number; size of the cache, in number of message packets.