RTMP/E

 getScriptStats(appInst:String) : Object

HTTP

 http://www.example.com:1111/admin/getScriptStats?auser=username&apswd=password&appInst=name

Gets the performance data for a script running on the specified instance of an application.

Availability

Flash Communication Server 1.0.

Parameters

appInst

A String indicating the name of the instance of the application, in the form application_name/instance_name.

auser

A String indicating the user name of the administrator.

apswd

A String indicating the password of the administrator.

Returns

RTMP/E

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

name

The name of the AMSCore process on which the specified application instance is running. For example, defaultRoot_:_defaultVHost_:::_1.

time_high_water_mark

Number; maximum amount of time, in seconds, the script has taken to execute an event.

queue_size

Number; total number of events currently in the script engine queue.

total_processed

Number; total number of events processed by the script engine.

queue_high_water_mark

Number; maximum number of events in the script engine queue.

total_process_time

Number; number of seconds taken to process the number of events in total_processed.

memory_used

The amount of memory used. The server uses this number for warnings

gc_memory_used

The amount of memory used for overhead. The server uses this number for warnings. This number is included in memory_used.

max_memory_used

The peak amount of memory used during the application’s lifetime.

gc_count

The number of garbage collection operations run during the application’s lifetime. This number includes engine-initiated and server-initiated garbage collections.

server_gc_count

The number of server-initiated (external) garbage collection operations during the application’s lifetime. This number is included in gc_count.

last_gc_duration

The duration of the last garbage collection operation, in fractional seconds.

max_gc_duration

The maximum duration of any garbage collection operation during the application’s lifetime, in fractional seconds.

avg_gc_duration

The average duration of all garbage collection operations during the application’s lifetime, in fractional seconds.

If the call fails, the server sends a reply information object with a level property of error and a code property of NetConnection.Call.Failed or a more specific value, if available. Some objects might also have a description property that contains a string describing the cause of the failure.

HTTP

If the call succeeds, it returns XML with the following structure:

 <result>   <level></level>   <code></code>   <timestamp></timestamp>   <data></data>  </result>

Nested in the data element are elements for each property of the data object listed in the RTMP/E section.

If the call fails, it returns XML with the following structure:

 <result>   <level></level>   <code></code>   <description></description>   <timestamp></timestamp>  </result>

The XML elements contain the same information as the Object properties returned in an RTMP/E call.

Note: The timestamp response over HTTP is formatted differently on Windows (9/23/2007 6:16:40 PM) and Linux (Sun 23 Sep 2007 06:16:40 PM IST).

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy