IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

how can we get the avg time execution min time execution and total hit of a particular service

webMethods Community Member

webMethods Community MemberMon December 16, 2013 11:46 AM

webMethods Community Member

webMethods Community MemberMon December 16, 2013 12:36 PM

  • 1.  how can we get the avg time execution min time execution and total hit of a particular service

    Posted Wed November 27, 2013 09:26 AM

    Hello All,

    please help me create the service which return the total hit, avg execution time, max execution time min exection time on particular IS.

    Thanks in advance.


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: how can we get the avg time execution min time execution and total hit of a particular service

    Posted Sat November 30, 2013 11:13 PM

    Are you looking for a particular custom flow service that you need the execution time for the session?

    You can check the internal services that IS does with in the WmRoot package wm.server services and make use of pub.math services for the logic.

    HTH,
    RMG


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 3.  RE: how can we get the avg time execution min time execution and total hit of a particular service

    Posted Sat December 14, 2013 09:18 AM


  • 4.  RE: how can we get the avg time execution min time execution and total hit of a particular service

    Posted Mon December 16, 2013 11:46 AM


  • 5.  RE: how can we get the avg time execution min time execution and total hit of a particular service

    Posted Mon December 16, 2013 12:36 PM


  • 6.  RE: how can we get the avg time execution min time execution and total hit of a particular service

    Posted Tue March 11, 2014 12:10 PM

    Hi All,

    I had almost same kind of requirement where in I need the average time taken by few particular services.
    I have checked services folder of WmRoot package but i couldn’t find anything helpful. I mean i am not getting any mathematical values over which i could have performed some calculations.

    Regards,
    Syed Ahmed


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 7.  RE: how can we get the avg time execution min time execution and total hit of a particular service

    Posted Tue March 11, 2014 01:15 PM

    Hi,

    You can use WmPublic/pub.date:getCurrentDateString at start and end of a service to get the execution time (ms) taken for the service by doing some mathematical operation (startTime-endTime)

    For other parameters like total hit, avg time execution we should think of writing custom services :slight_smile:

    On IS page (Service Usage) we can see Cache and Prefetch Information like Last Cache Hit, Cache Hits, Cache Hits/
    Total Count and so on.

    Let me know if others have a different ideas or views.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 8.  RE: how can we get the avg time execution min time execution and total hit of a particular service

    Posted Tue March 11, 2014 01:23 PM

    Thanks for the reply Mahesh,

    But my requirement is a bit different like i want to know is there any in-Built service/Coustum Service using which we can get the Avg time taken by any other serivce which is present on our IS.

    We can’t implement this Date Scenario in each and every service right.

    Waiting for an intresting reply from you :smiley:

    Regards,
    Syed Ahmed


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 9.  RE: how can we get the avg time execution min time execution and total hit of a particular service

    Posted Tue March 11, 2014 01:56 PM

    for each service, you can change the audit settings. Once turned on, it will log the start end time in the service log. to mine useful info from service log won’t be very easy.
    Not sure this will work for you.
    Most likely you have to build tracking code, and call it from each service you are interested.
    HTH,


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 10.  RE: how can we get the avg time execution min time execution and total hit of a particular service

    Posted Tue March 11, 2014 02:32 PM

    Yes enable service auditing would be the easiest way to capture the time stamps but having said that this requires having MWS/Monitor components installed for accessing audit portal.

    HTH,
    RMG


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 11.  RE: how can we get the avg time execution min time execution and total hit of a particular service

    Posted Wed March 12, 2014 07:51 AM

    @Tong Wang: Many thanks for the input. So, in that case we need to build a custom tracking code? Am i right?
    like for each service implement logging(Using WriteToFile Append) and save it into a file and get the details using custom Service and do the neccesary things?

    @rmg: if we enable Service audting we will have performance issues i believe there are lot of services and if we save those details in Db then we will have a big impact on server performance.

    Regards,
    Syed Ahmed


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 12.  RE: how can we get the avg time execution min time execution and total hit of a particular service

    Posted Thu March 13, 2014 01:21 PM

    Yes enable auditing gives pros and cons and ofcourse you only need to do the only services you want.

    For getting response times yes you need to write the session info into the custom logs/file and capture it begin and end of service with appropriate file name.

    HTH,
    RMG


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 13.  RE: how can we get the avg time execution min time execution and total hit of a particular service

    Posted Sun March 30, 2014 10:15 PM

    Syed,
    I think you should go with ‘Service auditing’ keeping the following in mind…

    1. Overall performance - yes, there will be an impact, but even if you write a custom logic, you would want to capture service start, end, logging fields etc.,

    2. Service log - You can avoid database & choose flat file to capture service log. Even if you go with custom logic, you would want to capture these info into file system, which does IO operations over network.

    3. You could enable auditing only for the top-level service, which will avoid doing this for all the other services.

    4. You can’t anyway save the pipeline info into flat file

    5. You can log selected fields from your service signature.

    6. Custom value for auditing context, which is useful while searching for specific transactions through WmMonitor page.

    If you write to custom log file, it just not stops there. You would have to think of archiving the log files, think of how to search for specific transaction, build a UI, search functionality (if not CAF UI, this would be manual which support team have to handle, knowledge transfer, maintenance, risk of not using public services etc.,

    When something is already available, and choose options carefully, you don’t have to reinvent the whole wheel again.

    HTH
    Senthil


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 14.  RE: how can we get the avg time execution min time execution and total hit of a particular service

    Posted Wed April 02, 2014 04:25 AM

    Have a look at WMSERVICE table if service audit is enabled for monitoring


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 15.  RE: how can we get the avg time execution min time execution and total hit of a particular service



  • 16.  RE: how can we get the avg time execution min time execution and total hit of a particular service

    Posted Tue November 10, 2020 10:10 AM

    Hello Mangat,

    The link was expired, could you provide new one?


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 17.  RE: how can we get the avg time execution min time execution and total hit of a particular service

    Posted Tue November 10, 2020 02:19 PM

    Hi Sai,

    please be patient for some weeks until SAG was able to restore the services and functionalitiies which were working until September 2020 and were affected by Ransomware attack in early October 2020.

    The mentioned Wiki link (amongst others) is affected by this as well.

    Regards,
    Holger


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 18.  RE: how can we get the avg time execution min time execution and total hit of a particular service

    Posted Tue November 10, 2020 03:51 PM

    @anon39243546
    The link you referred too is 7 years old. I’m not surprised it’s broken :slightly_smiling_face:

    RichStatistics has been rebranded and is commercial software. It is no longer free. The latest version, which has a lot of performance improvements and new features, is sold exclusively by CloudGenSys and is now called CPM (CloudGen Performance Monitor). (https://synteleo.com/portfolio/rs/)"

    So it’s still available from CloudGen but is not free.

    Wayne


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 19.  RE: how can we get the avg time execution min time execution and total hit of a particular service

    Posted Tue November 10, 2020 03:58 PM

    But as @Holger_von_Thomsen has said, the site is not available. It is in the process of being made available again.


    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #webMethods


  • 20.  RE: how can we get the avg time execution min time execution and total hit of a particular service

    Posted Wed November 11, 2020 01:55 PM

    Hi Wayne,

    either they have rebranded once more or it has moved to some other CloudGen Product as it is not documented directly under CPM link reachable from your link.

    When the community sites are back up again, the free version of RichStatistics should be listed there under downloads or code samples section.

    Regards,
    Holger


    #Flow-and-Java-services
    #webMethods
    #Integration-Server-and-ESB


  • 21.  RE: how can we get the avg time execution min time execution and total hit of a particular service

    Posted Wed April 09, 2014 01:18 AM

    Thankyou all for helping me out :slight_smile:

    @Mangat: Thanks for the link it would be verymuch helpful :slight_smile:


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services