Services Monitoring is not visible in AppFabric Dashboard

Locked Services Monitoring is not visible in AppFabric Dashboard

  • dimanche 14 février 2010 12:09
     
     

    Hi

    I installed AppFabric on a windows 7 RTM machine with great excitement yet when looking at the dashboard I do not see any information about my services.
    I created a simple WCF service (new WCF web project) , created a deployment package and deployed it to AppFabric.
    Now I used WCFTestClient.exe to call the service but nothing was recorded on the Dashboard.
    I made the service throw an exception but still nothing is recorded.

    My AppFabric is configured using the default configuration. The database is located in sqlExpress etc.
    I made sure that database event collection is enabled.
    The monitoring profile is set to Troubleshooting but still nothing is recorded.

    I followed the process with a WF service but again nothing is recorded.

    What should be done to record my WCF services and their state on the dashboard?

    Thanks

    Manu

     

Toutes les réponses

  • lundi 15 février 2010 00:42
     
     
    Hi Manu,

    AppFabric dashboard will show metrics for 4.0 WF/WCF services (not 2.0/3.5 though). If your services are 4.0, can you please try the following steps to get your data populated in the dashboard?

    1) In your monitoring database, does the StagingTable contain a number of events that have not been processed?
        i) If so, please manually run the ImportEvents stored procedure, this should populate the events in the dashboard. In SqlExpress, a Service Broker job is used to run this stored procedure periodically. In the next step we will determine if this has encountered any errors.

    2) In your monitoring database, right click properties, and verify that Service Broker is enabled. If it is not, please enable it.

    3) In the monitoring database, please look at the Jobs table, was the last run for the 'ImportEvents' job successful?
        i) If the last runs weren't successful, most of the time is caused due to a permissions issue when initializing the database. This scenario is usually due to initializing while logged in to a domain, and then trying the scenario disconnected from the domain. The service broker jobs are run as the identity of the user that was logged on while initializing the databases, and so if your scenarios require connect/disconnected from the domain we recommend initializing the databases as a local admin user.
        ii) Can you please try the following steps to unblock the permissions issue for the database:
               1. Create a local Admin User
               2. Run EXEC sp_changedbowner 'Domain\MyUser'
               3. This will change the owner of the db to a local admin user, and the service broker jobs should now have the appropriate permissions to process the events.

    Please let us know if this solves the issues you are facing.

    Thanks,
    Miguel
  • mercredi 17 février 2010 13:36
     
     

    Thank you for your reply but i must say that I do not understand it.

     

    The code was written with VS 2010. (.Net 4.0) and the application pool is configured to work with framework 4.0.


    1. The staging table in my sqlexprss ApplicationServerExtensions database is empty.

    running the SP ImportEvents does not change that.


    The stored procedure ImportEvents returns 0:

    USE [ApplicationServerExtensions]

    GO

    DECLARE @return_value int

    EXEC @return_value = [dbo].[ImportEvents]

    SELECT 'Return Value' = @return_value

    GO

     
    2.  The service broker is enabled in the sqlexprss ApplicationServerExtensions database.

     

    3. This is the content of the jobs table:

    Sql      LastRunOn     LastRunSuccess        PeriodInSeconds       IsEnabled       ConversationHandle

    exec [dbo].[AutoPurge]       2010-02-16 13:20:02.9800000        1        60      1        C6C19B31-A510-DF11-A205-002421000DD6

     

    exec [dbo].[ImportEvents]   2010-02-16 13:20:11.5600000        1        10      1        C8C19B31-A510-DF11-A205-002421000DD6

     

    I see no failurs recordings (There are hardly any recordings – there are only 2 rows)


    I am running inside a home network threre is no domain so I do not see any security issue. I also disables UAC.

     

    As I was saying I open a new WCF WEB project, compile it and deply it using a deployment package. Everything is default. Appfabric was deployed using the web installation package on a win 7.0 RTM.

     

    Should something be written to Web.config to start monitoring?

    Thanks for your help

    Manu

  • mercredi 17 février 2010 15:43
     
     Traitée
    Hi,

    Also make sure that the Event Collector Service is running...

    "Application Server Event Collector" in the Windows Services console.

    Regards,

    Alan
    www.CloudCasts.net - Community Webcasts Powered by Azure
    • Marqué comme réponse manukahn mercredi 17 février 2010 19:25
    •  
  • lundi 22 février 2010 23:54
     
     
    Hi Manu,

    Like Alan has pointed out, please do ensure that 'Application Server Event Collector' service is running. Next steps would be to check the monitoring configuration for your application. On IIS Manager, you could right click on your application and click on 'Configure' under Manage WF/WCF Service. Alternatively, after clicking on the application in the site navigator pane, you'd notice a 'Configure' link on the actions pane. Clicking on configure would bring up Configuration dialog and you click on the Monitoring tab to bring up Monitoring configuration. Please double check the monitoring configuration and ensure you're pointing to the correct monitoring database and also ensure that monitoring level is appropriate.

    If the above doesn't help, to perform more in depth diagnostics you can check the following event logs using eventvwr. Please do ensure that the below logs are enabled if you don't see any events populated. These logs are used by the Event Collector service.

        - Microsoft-Windows-Application Server-System Services\Admin
        - Microsoft-Windows-Application Server-System Services\Debug

    Please do let us know if you see any errors in the event logs.

    Thanks,
    Rownak