Service Virtualization

 View Only
  • 1.  CPU, JVM usage at a given time when the virtual service used in performance test

    Posted Feb 26, 2021 07:23 AM
    Hi there, I have a scenario where virtual service response time increased after an hour the performance test started. Virtual service metrics shows response time, no. of hits, etc. Health check report in DevTest portal shows data for the current time. but, please suggest how I can retrieve CPU, JVM usage at a given time (say yesterday 3 am to 4 am?


  • 2.  RE: CPU, JVM usage at a given time when the virtual service used in performance test

    Broadcom Employee
    Posted Feb 26, 2021 09:44 AM
    You can get this data from vse.log file. You would be able to see statements like this printed every 30 seconds.

    Line 2406: 2021-01-22 08:33:19,265Z (14:03) [Event Sink Thread Pool Thread 1] INFO  com.itko.lisa.coordinator.VirtualServiceEnvironmentImpl - Memory used 428mb, allocated 934mb, max 910mb (47%) Our cpu usage 15%, system cpu used 99% GC time 0%

    Line 4482: 2021-01-22 08:33:49,530Z (14:03) [Event Sink Thread Pool Thread 2] INFO  com.itko.lisa.coordinator.VirtualServiceEnvironmentImpl - Memory used 554mb, allocated 1,011mb, max 910mb (60%) Our cpu usage 22%, system cpu used 83% GC time 0%

    Line 6669: 2021-01-22 08:34:19,878Z (14:04) [Event Sink Thread Pool Thread 1] INFO  com.itko.lisa.coordinator.VirtualServiceEnvironmentImpl - Memory used 587mb, allocated 972mb, max 910mb (64%) Our cpu usage 10%, system cpu used 86% GC time 0%

    Since this log entry is in INFO mode and for production ERROR or WARN is preferred than INFO mode, you could add the following entry to logging.properties file to see these statements.


    log4j.logger.com.itko.lisa.coordinator.VirtualServiceEnvironmentImpl=INFO


    --
    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: CPU, JVM usage at a given time when the virtual service used in performance test

    Posted Feb 26, 2021 10:14 AM
    thanks @Sankar Natarajan. Ok. by adding the property for INFO​, will this impact the performance of the virtual service anyway?
    Also, please advise if there is anyway we can get CPU and JVM usage trend for the duration of 8 hours period (of load test)?


  • 4.  RE: CPU, JVM usage at a given time when the virtual service used in performance test

    Broadcom Employee
    Posted Feb 26, 2021 10:36 AM
    Hi Sak
           Since INFO level logging in set for only one class, it may not have any impact on the performance of a Virtual Service. Please make sure you add the suggested entry only to the logging.properties file.

    I am not aware of any other means to get this information.

    --
    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.