Results 1 to 8 of 8

Thread: how to monitor bandwidth of individual application

  1. #1

    Default how to monitor bandwidth of individual application

    how to monitor bandwidth of individual application from server ?

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    You can get MessagesInBytesRate and MessagesOutBytesRate per application and per application instance from connectioncounts

    http://[wowza-address]:8086/connectioncounts
    http://www.wowza.com/forums/content....a-Media-Server

    In a Wowza module or HTTPProvider you can use IOPerformanceCounter:

    IOPerformanceCounter perf = appInstance.getIOPerformanceCounter();
    
    Long outBytes = perf.getMessagesOutBytes();
    You might start a timer in onAppStart and send this data to a Flash client. Or poll over http with a HTTPProvider.

    Richard

  3. #3

    Default

    getMessagesOutBytes is the rate at which bytes are being sent ?
    if that is correct then how could i get the total number of bandwidth used by the application ?

    should i add those bytes up with in a timer? and that will give me real time consumption of bandwidth for that application ?

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    No, getMessagesOutBytes is a running total of bytes sent by the object whose performance counter you are looking at.

    MessagesInBytesRate and MessagesOutBytesRate is rate which bytes are being sent, a 5 second rolling average.

    Richard

  5. #5

    Default

    so i will just add those bytes up in timer and i will get the total bandwidth used by that application ?

  6. #6
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    You don't have to add anything up. getMessagesOutBytes is a cumulative total for the object (in this case application instance) that you are looking at.

    The best way is in the logs, if you look at every row with x-event "destroy" for a particular application instance, you can add up the sc-bytes (server to client bytes) and cs-bytes (client to server bytes) of each of those rows to get total bandwidth used by an application instance.

    Richard

  7. #7

    Default

    getMessagesOutBytes is not the running total i get
    INFO server comment - outBytes : 3824
    INFO server comment - outBytes : 3824
    INFO server comment - outBytes : 3824
    INFO server comment - outBytes : 3824
    INFO server comment - outBytes : 3824

    i do not want to read the log file as i want real time traffic details

  8. #8
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    What are you showing, is that an application instance's outBytes over time? What interval? What else is happening?

    What version of Wowza are you using? You might have to monitor each client and session.

    Be careful how you get this data out of Wowza in real time. Posting to a http resource or using JDBC can be problematic if overused.

    Richard

Similar Threads

  1. monitor application
    By andreyl in forum Server-side Modules and Code Samples Discussion
    Replies: 5
    Last Post: 08-11-2014, 11:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •