Service Virtualization

 View Only
  • 1.  Is there any way to enable logging for specific service ?

    Posted Nov 07, 2022 05:30 PM
    Folks,
    We have performance VSE in our project and transactions rates are too high .Almost no logging is enabled due to performance constraints.
    WARN logs don't show anything helpful for debugging 
    Is there any way to enable logging for a specific service based on name or anything else .
    I am facing issue on one of the service where intermittenlty it is not able to match any response in VSI.
    Issue is simple there might be a incoming requets that is not matching but finding that trnasaction is not possible without logging due to high TPS .
    Possibly vse_matches logs will help if enabled for that servcie

    ------------------------------
    Regards
    Rahul V
    ------------------------------


  • 2.  RE: Is there any way to enable logging for specific service ?
    Best Answer

    Broadcom Employee
    Posted Nov 08, 2022 03:29 AM
    Hi Rahul
    First, try enabling DEBUG level log as well as VSE log. Repro
    the non-matching problem and go through the logs. If you find any specific
    package/class that gives the information that you need for diagnosis, then
    make a note of that class.

    Now you can add a class Specific DEBUG level logging. Shown below is an
    example specific to version 10.7.2

    Assuming that the class that you are interested in is "
    com.itko.lisa.ws.rest.RESTNode"

    This is how you could add a DEBUG logger exclusive to this class by editing
    LISA_HOME/logging.properties file:

    Define the logger:

    logger.nonmatching.name = com.itko.lisa.ws.rest.RESTNode
    logger.nonmatching.level = DEBUG
    logger.nonmatching.additivity = false
    logger.nonmatching.appenderRef.A1.ref = A1

    Add the logger to the list of loggers:

    loggers = nonmatching,<existing loggers="">

    Save the file. No need to restart your services.

    With the class specific DEBUG logging in place, you can retain ROOT logger
    at WARN or ERROR level to optimize the performance of VSE.

    --
    regards
    Sankar Natarajan

    --
    This electronic communication and the information and any files transmitted
    with it, or attached to it, are confidential and are intended solely for
    the use of the individual or entity to whom it is addressed and may contain
    information that is confidential, legally privileged, protected by privacy
    laws, or otherwise restricted from disclosure to anyone else. If you are
    not the intended recipient or the person responsible for delivering the
    e-mail to the intended recipient, you are hereby notified that any use,
    copying, distributing, dissemination, forwarding, printing, or copying of
    this e-mail is strictly prohibited. If you received this e-mail in error,
    please return the e-mail to the sender, delete it from your computer, and
    destroy any printed copy of it.




  • 3.  RE: Is there any way to enable logging for specific service ?

    Posted Nov 08, 2022 07:30 AM
    Hi Sankar,
    Thanks for your reply .
    But i can't enable DEBUG mode that will hamper server perfromance because for all the services we have very high TPS almost 24*7
    Can it be done at service level ?

    ------------------------------
    Regards
    Rahul V
    ------------------------------



  • 4.  RE: Is there any way to enable logging for specific service ?

    Broadcom Employee
    Posted Nov 08, 2022 11:08 AM
    Hi Rahul
    Looks like my earlier response was not understood well. The
    answer to your question is addressed in my previous response. Please go
    through it again and let me know if you have any questions

    --
    regards
    Sankar Natarajan

    --
    This electronic communication and the information and any files transmitted
    with it, or attached to it, are confidential and are intended solely for
    the use of the individual or entity to whom it is addressed and may contain
    information that is confidential, legally privileged, protected by privacy
    laws, or otherwise restricted from disclosure to anyone else. If you are
    not the intended recipient or the person responsible for delivering the
    e-mail to the intended recipient, you are hereby notified that any use,
    copying, distributing, dissemination, forwarding, printing, or copying of
    this e-mail is strictly prohibited. If you received this e-mail in error,
    please return the e-mail to the sender, delete it from your computer, and
    destroy any printed copy of it.




  • 5.  RE: Is there any way to enable logging for specific service ?

    Posted Nov 10, 2022 01:51 AM
    Thanks Sankar that helped

    ------------------------------
    Regards
    Rahul V
    ------------------------------



  • 6.  RE: Is there any way to enable logging for specific service ?

    Broadcom Employee
    Posted Nov 10, 2022 02:21 AM
    Thanks for the confirmation Rahul. Appreciate it.

    --
    regards
    Sankar Natarajan

    --
    This electronic communication and the information and any files transmitted
    with it, or attached to it, are confidential and are intended solely for
    the use of the individual or entity to whom it is addressed and may contain
    information that is confidential, legally privileged, protected by privacy
    laws, or otherwise restricted from disclosure to anyone else. If you are
    not the intended recipient or the person responsible for delivering the
    e-mail to the intended recipient, you are hereby notified that any use,
    copying, distributing, dissemination, forwarding, printing, or copying of
    this e-mail is strictly prohibited. If you received this e-mail in error,
    please return the e-mail to the sender, delete it from your computer, and
    destroy any printed copy of it.




  • 7.  RE: Is there any way to enable logging for specific service ?

    Posted Nov 17, 2022 10:37 AM
    Thanks for sharing this Sankar

    ------------------------------
    Regards,
    Vaibhav Jain
    Capgemini
    ------------------------------