DX Application Performance Management

 View Only
Expand all | Collapse all

Cannot get custom.pbd file recognized

Anon Anon

Anon AnonJul 24, 2015 12:47 PM

Anon Anon

Anon AnonJul 24, 2015 02:27 PM

Anon Anon

Anon AnonJul 24, 2015 02:31 PM

  • 1.  Cannot get custom.pbd file recognized

    Posted Jul 24, 2015 09:49 AM

    I was told by ca support to post this here since they do not support custom.pbds. 

     

    Situation:

     

    I have an "APP" folder showing on one agent and now the client wants this to appear on all agents for continuity.

    APP_FolderShowing.png

     

    Steps taken:

    I have added the path to the InstrscopeAgentprofile so it is identical to the other agents profile,

    I have added the custom.pbd file for this made sure the spelling was correct

    pbd.png

    It still is not getting picked up when server is recycled.

     

    Suggestions?



  • 2.  Re: Cannot get custom.pbd file recognized

    Broadcom Employee
    Posted Jul 24, 2015 10:12 AM

    Please check the AutoProbe.log for the VM where the metrics are not showing:

     

    a) Check the pbd file is listed in the AutoProbe.log

    b) Check the classes instrumented in custom.pbd are listed in the AutoProbe.log (Second part of the AutoProbe.log)

    c) Check the classes / methods from custom.pbd if the methods are listed as instrumented with the tracer

    d) Metrics are still not showing

     

    Error analysis:

    a) fails => The pbd file was not accessible, not there or the restart didn't happen. Maybe wrong IntroscopeAgent.profile ?

    b) fails => The code which is targeted on "custom.pbd" was not (yet) executed / not loaded

    c) fails => either the class doesn't declare the method or it's declared in a super class and thus the byte code injection failed.

    d) fails => Check whether you run on the Agent into a metric clamp situration

     

    Small side node. In case it's on WebSphere's with Class Caching enabled, strange things can happen with Byte Code Instrumentation. Mostly once a change is done on injection, it is recommend to clear the class cache and restart all nodes.



  • 3.  Re: Cannot get custom.pbd file recognized

    Posted Jul 27, 2015 02:59 PM

    Servers have been recycled and there is no Autoprobe.log file appearing for this server.   The way it is setup each server has its own Autoprobe.log file stored on a file share in another location ie: \\ho\***\wily\introscopeHPUXefile_psps_AutoProbe

    The only files shown in the logs file location being updated are:

    efile_psps_AutoProbe

    efile_psps_IntroscopeAgent

     

    Which is the server and agent we are trying to replicate



  • 4.  Re: Cannot get custom.pbd file recognized

    Posted Jul 24, 2015 10:13 AM

    Below is the custom pbd that is being called in the profile

     

    # DI Case Contact Clases.pbd written by YATT on Thu Oct 12 16:03:47 CDT 2006

    ######################
    # default
    # ====================
    # section order no: 0
    # Default section created by YATT.
    TraceAllMethodsOfClass: com.nm.ulife.printingservice.barcode.BarCodeService  BlamedMethodTimer "APP|{classname}|{method}:Response time (ms)"
    TraceAllMethodsOfClass: com.nm.ulife.printingservice.barcode.BarCodeService  BlamedPerIntervalCounter "APP|{classname}|{method}:per Interval Counter"

    TraceAllMethodsOfClass: com.nm.ulife.printingservice.process.IPrintingProcessAccess  BlamedMethodTimer "APP|{classname}|{method}:Response time (ms)"
    TraceAllMethodsOfClass: com.nm.ulife.printingservice.process.IPrintingProcessAccess  BlamedPerIntervalCounter "APP|{classname}|{method}:per Interval Counter"
    TraceAllMethodsOfClass: com.nm.ulife.printingservice.process.IdentifierSheetCreator  BlamedMethodTimer "APP|{classname}|{method}:Response time (ms)"
    TraceAllMethodsOfClass: com.nm.ulife.printingservice.process.IdentifierSheetCreator  BlamedPerIntervalCounter "APP|{classname}|{method}:per Interval Counter"
    TraceAllMethodsOfClass: com.nm.ulife.printingservice.process.PrintingProcessAccessBean  BlamedMethodTimer "APP|{classname}|{method}:Response time (ms)"
    TraceAllMethodsOfClass: com.nm.ulife.printingservice.process.PrintingProcessAccessBean  BlamedPerIntervalCounter "APP|{classname}|{method}:per Interval Counter"
    TraceAllMethodsOfClass: com.nm.ulife.printingservice.process.PrintingProcessAccessHome  BlamedMethodTimer "APP|{classname}|{method}:Response time (ms)"
    TraceAllMethodsOfClass: com.nm.ulife.printingservice.process.PrintingProcessAccessHome  BlamedPerIntervalCounter "APP|{classname}|{method}:per Interval Counter"



  • 5.  Re: Cannot get custom.pbd file recognized

    Broadcom Employee
    Posted Jul 24, 2015 10:39 AM

    Yes, please go through the steps of my previous post...



  • 6.  Re: Cannot get custom.pbd file recognized

    Posted Jul 24, 2015 12:43 PM

    Hi,

     

    Could you please share\attach the AutoProbe.log for the instance\Server where "APP" folder is not turning up ?

     

    Secondly, are you sure that profile file which you are editing is been mentioned in the JVM arguments to that server ?

     

    regards,

    Vaibhav



  • 7.  Re: Cannot get custom.pbd file recognized

    Posted Jul 24, 2015 12:47 PM

    AutoProbe.log not being updated at all. 



  • 8.  Re: Cannot get custom.pbd file recognized

    Broadcom Employee
    Posted Jul 24, 2015 02:02 PM

    Perfect.. so you are at "a) fails" or WebSphere class caching. I don't know your environment ..



  • 9.  Re: Cannot get custom.pbd file recognized

    Posted Jul 24, 2015 02:27 PM

    Yes Websphere



  • 10.  Re: Cannot get custom.pbd file recognized

    Posted Jul 24, 2015 02:06 PM

    Indicating no instrumentation happening out of that custom pbd.

     

    Now could you please verify that profile file you are updating is the one you have mentioned in the JVM arguments ?

     

    Regards,

    Vaibhav



  • 11.  Re: Cannot get custom.pbd file recognized

    Posted Jul 24, 2015 02:31 PM

    Yes it is



  • 12.  Re: Cannot get custom.pbd file recognized

    Posted Jul 24, 2015 02:32 PM

    I just put "custom" to mask what the call was



  • 13.  Re: Cannot get custom.pbd file recognized

    Posted Jul 24, 2015 02:41 PM

    It seems to me that your updated profile file is not being picked up when u r recycling the server otherwise atleast 'default-full.pbl' would have been picked up and showed up as in the AutoProbe.log

    If possible, could you please check in the Introscope.log and see after resart anything unusual you are observing like errors\exception.



  • 14.  Re: Cannot get custom.pbd file recognized

    Posted Jul 24, 2015 02:45 PM

    Yes but that won’t be until Monday am since they recycle at 03:00.

     

    Thanks for your help – it is much appreciated



  • 15.  Re: Cannot get custom.pbd file recognized

    Posted Jul 27, 2015 03:02 PM

    updated.png



  • 16.  Re: Cannot get custom.pbd file recognized

    Broadcom Employee
    Posted Jul 27, 2015 04:56 PM

    Hi Patrick:

    At this point, my I suggest opening a case to get additional assistance.

     

    Thanks

    Hal German

    APM SUpport



  • 17.  Re: Cannot get custom.pbd file recognized

    Posted Jul 27, 2015 05:03 PM

    “Ca does not support custom pbds” go to the community as per support



  • 18.  Re: Cannot get custom.pbd file recognized

    Broadcom Employee
    Posted Jul 28, 2015 03:52 AM

    Hi,

     

    Whilst that is correct we do not support customization – the fact that you are not getting any logs produced is something we should be able to help with and that in turn may help point you in the right direction with regard to why your custom pbd is not working as expected.

     

    Thanks

    Mike



  • 19.  Re: Cannot get custom.pbd file recognized

    Posted Jul 28, 2015 11:16 AM

    As suggested by Mike, you can open ticket that your AutoProbe and agent logs are not getting created.

     

    Meanwhile, I see some AutoProbe file is been created on 22 July. Is that related to same application ? If yes, then that is the day when you had made changes to include custom pbd ?

     

    Also I see a "IntroscopeAgent" file in the directory. Is it the same you have edited to bring custom pbd for your applcation ? [Pre-assuming as seeing the date as 22 july]
    If yes, then I see the extension of this file as some application specific "uulife file" and not a Profile file. Can we just cross check the extension as well as the profile file location ?

     

    Regards,

    Vaibhav



  • 20.  Re: Cannot get custom.pbd file recognized

    Posted Jul 28, 2015 11:19 AM

    We think we have found the culprit - permission issues

    7/27/15 03:20:23 AM CDT [WARN] [IntroscopeAgent.Agent] The Introscope AutoProbe log file /nmlprod/wily/introscopeHPUX/logs/uulife_AutoProbe.log could not be created: /nmlprod/wily/introscopeHPUX/logs/uulife_AutoProbe.log (Permission denied (errno:13))  No logging will occur.

     

    We will know more tomorrow am after reboot.

     

    I'd like to thank everyone for their input on this.



  • 21.  Re: Cannot get custom.pbd file recognized

    Posted Jul 28, 2015 11:36 AM

    Great....
    Actually I was about to ask you this only when I wrote - "..as well as the profile file location ?"... But I missed that

     

    But good that something you got through. Let us know more details once you get it done.

     

    Regards,

    Vaibhav



  • 22.  Re: Cannot get custom.pbd file recognized

    Broadcom Employee
    Posted Jul 28, 2015 01:48 PM

    Dear Patrick:

         That great to hear. Usually when logs are not being created and the account is correct, I point them to a new directory with no permissions or temp just to see if it is a permissions issue. If that does not resolve it, please feel free to open a Support case just on the "no logs" aspect.

     

    Thanks

    Hallett German

    APM Support



  • 23.  Re: Cannot get custom.pbd file recognized

    Posted Jul 29, 2015 11:41 AM

    Introscopeagent.uulife is listed as an agent profile specifically for the uulife appprof.png



  • 24.  Re: Cannot get custom.pbd file recognized

    Broadcom Employee
    Posted Jul 29, 2015 11:47 AM

    Patrick, just to be sure. We are still at the beginning? The pbd file is not listed in the AutoProbe.log?



  • 25.  Re: Cannot get custom.pbd file recognized

    Posted Jul 30, 2015 08:17 AM

    It is listed in the AutoProbe.log



  • 26.  Re: Cannot get custom.pbd file recognized

    Broadcom Employee
    Posted Jul 30, 2015 09:39 AM

    Perfect, here again our check list:

     

    a) Check the pbd file is listed in the AutoProbe.log

    b) Check the classes instrumented in custom.pbd are listed in the AutoProbe.log (Second part of the AutoProbe.log)

    c) Check the classes / methods from custom.pbd if the methods are listed as instrumented with the tracer

    d) Metrics are still not showing

     

    Error analysis:

    a) fails => The pbd file was not accessible, not there or the restart didn't happen. Maybe wrong IntroscopeAgent.profile ?

    b) fails => The code which is targeted on "custom.pbd" was not (yet) executed / not loaded

    c) fails => either the class doesn't declare the method or it's declared in a super class and thus the byte code injection failed.

    d) fails => Check whether you run on the Agent into a metric clamp situration

     

    Looks like we are past a).



  • 27.  Re: Cannot get custom.pbd file recognized

    Posted Jul 29, 2015 11:37 AM

    Log files are now being written.  It was a permissions issue.   Unfortunately the pbd that we want to see is still not getting picked up. ulifeservice.pbd  .   Just in case there is an issue with capitalization we have made everything lower case since this is running on HPUNIX.



  • 28.  Re: Cannot get custom.pbd file recognized

    Posted Jul 29, 2015 11:46 AM

    7/29/15 10:20:02 AM CDT [ERROR] [IntroscopeAgent.Agent] Introscope AutoProbe will not run because the provided directives files are not valid: Invalid directives entry UlifeService.pbd found in directives list file /nmlprod/wily/introscopeHPUX/default-full.pbl Please restart with valid directives



  • 29.  Re: Cannot get custom.pbd file recognized

    Broadcom Employee
    Posted Jul 29, 2015 12:07 PM

    OK, that looks better. Looks like you have the UlifeServe.pbd in the directives and inside the pbl file. you can remove it at one place and you have to take care about the lower/upper case.



  • 30.  Re: Cannot get custom.pbd file recognized

    Posted Jul 29, 2015 01:40 PM

    UPDATE:  working with CA support.  uulife.pbd was being called from 2 locations.   Commented out the file in the pbl directory - now have to wait until recycle to see if this works.



  • 31.  Re: Cannot get custom.pbd file recognized

    Posted Jul 29, 2015 02:58 PM

    Errors are now gone but we still do not see the APP



  • 32.  Re: Cannot get custom.pbd file recognized

    Broadcom Employee
    Posted Jul 29, 2015 04:38 PM

    Patrick,

     

    coming back to our initial check list. At which item are we now?

     

    Thanks

    Andreas



  • 33.  Re: Cannot get custom.pbd file recognized

    Posted Jul 31, 2015 11:18 AM

    Having app team check and verify step b  making sure that the com.nm.ulife.printingservice.process.PrintingProcessAccessHome  exists.



  • 34.  Re: Cannot get custom.pbd file recognized
    Best Answer

    Posted Aug 12, 2015 09:01 AM

    This was the issue - this was not the correct path and app person was on vacation.  Thanks to all for your input