DX Application Performance Management

 View Only
  • 1.  CA Tuesday Tip: Top 10 common causes for EM performance issues - Checklist

    Broadcom Employee
    Posted Mar 22, 2011 10:26 AM
    CA Wily Tuesday Tip by Sergio Morales, Principal Support Engineer for 3/22/2011

    Hi Everyone,

    For this week, I am sharing with you a list of the top 10 common causes for performance issues, which can show differently in your environment:
    - Missing datapoints in graphs, dashboards
    - frequently agents disconnections
    - in a cluster environment, frequently collectors disconnections
    - Slowness when connecting to the Introscope EM using workstation or when running CLW.
    - Out Of Memory messages.

    The most important point I want to emphasize is for you to make sure you follow our recommendations and if after applying all of them the problem persists, then please collect the information mentioned at the bottom and contact us.

    There is a high volume of performance issues coming to support and following the below recommendations has solved most of them.

    1. Make sure the following settings are set correctly in ALL EMs (MOM and Collectors) properties files:

    -transport.outgoingMessageQueueSize=6000
    -transport.override.isengard.high.concurrency.pool.min.size=10
    -transport.override.isengard.high.concurrency.pool.max.size=10

    A restart of the EMs is required for the changes to take effect.

    NOTE:
    - Increasing the outgoing message queue allows you to have a bigger buffer
    - Increasing the thread pool size allows to have more worker threads to send outgoing messages.
    These important adjustments are required when, sending messages, usually between collector and MOM, becomes a bottle neck for performance.


    2. Make sure to set the initial heap size (-Xms) equal to the maximum heap size (-Xmx) in the Introscope Enterprise Manager.lax or EMService.conf.
    Since no heap expansion or contraction occurs, this can result in significant performance gains in some situations.

    Set heap size in collectors to at least 1.5 GB and MOM with 12GB in order for Introscope to support 1,000,000 metrics on the MOM. This MOM should be configured with a 64bit jvm.

    For v8.x you need to use jre 1.5. Our EM has been tested and is officially supported with update 15. You can download a copy from http://java.sun.com/products/archive/
    For v9.x onwards 1.6 is supported.


    3. If EMs are running on UNIX: Make sure nohup mode has been configured correctly:

    The property "lax.stdin.redirect" in Enterprise Manager.lax file should be <blank>

    From ConfigAdminGuide.pdf:
    "Note Do not run the Enterprise Manager in nohup mode without performing the configuration described above. Otherwise, the Enterprise Manager
    might not start, or might start and consume excessive system resources."


    4. Make sure smatstor db is pointing to a dedicated hd/disk controller.

    Once smartstor is reconfigured to have its own disk, you should change the EM property introscope.enterprisemanager.smartstor.dedicatedcontroller=true which allows the EM to fully utilize this setting.

    When the dedicated controller property is set to false, the Collector assumes that there is one disk for all Enterprise Manager operations, and therefore uses one disk-writing lock. This means that only one area at a time is written. For example, the Collector will write only to SmartStor or only to the heuristics database that supports the Investigator Overview dashboard.
    Performance disadvantages to having the dedicated controller property set to false are:
    - Only one I/O task can be running at a time.
    - SmartStor writes are in shorter segments.
    - The disk's seek pointer is invalidated after each context switch.
    If there is a second disk for SmartStor, but the property is set to false, there is no performance gain by having a second disk for SmartStor.
    - Collector sizing recommendations are reduced by 50%.


    5. Check the "Enterprise Manager | Smartstor | Metadata | Metrics with Data" supportability metric and verify if it is higher than 300K.

    If so, there is probably a historical metric explosion in your EM/Collector. You need to use the Smartstor Tool utility to fix this problem. Once the historical metric count is below 300K, the Enterprise Manager will run smoothly.

    Metric explosions can be caused by a number of factors, such as a large number of unique SQL statements, JMX, sockets being opened on random ports, etc


    6.Are you running multiple collectors on the same server?

    - Run the OS in 64-bit mode to take advantage of a large file cache.
    The file cache is important for the Collectors when doing SmartStor maintenance, for example spooling and reperiodization. File cache resides in
    the physical RAM, and is dynamically adjusted by the OS during runtime based on the available physical RAM. CA Wily recommends having 3 to 4 GB RAM per Collector.

    - There should not be any disk contention for SmartStor, meaning you use a separate physical disk for each SmartStor instance.
    If there is contention for SmartStor write operations, the whole system can start to fall behind, which can result in poor performance such as combined
    time slices and dropped agent connections.

    - The Baseline.db and traces.db files from up to four Collectors can reside on a separate single disk. In other words, up to four Collectors can share the same physical disk to store all of their baseline.db and traces.db files.


    7. Find out, how the agents are balanced

    Are the agents configured to connect to the MOM, collector or a combination of both? If you are using a combination, this could be one of the reasons for a cluster instability.


    8. Are the Collectors and MOM on the same subnet?

    Whenever possible, a MOM and its Collectors should be in the same data centre; preferably in the same subnet. Even when crossing through a firewall or passing through any kind of router, the optimal response time is difficult to maintain. If the MOM and Collector are across a router or, worse yet, a packet-sniffing firewall protection router, response time can slow dramatically.


    9. Is there a SAN configured involved?

    If you plan to use SAN for SmartStor storage, then each logical unit number (LUN) requires a dedicated physical disk. If you have configured two or more LUNs to represent partitions or subsets of the same physical disk, this does not meet the requirements needed for SmartStor dedicated disk.

    However, we have identified a performance EM issue (Bug#59755) for customers using Linux/Solaris and SAN configuration.
    If from the perfog.txt you see the "harvest duration" spikes every 5 minute with no other obvious reason like a script/calculator running every 5 minute, then that is probably it. The spikes are very obvious and could be very bad with high load. With this problem, the EM could have very unstable performance, and therefore causing other problems like the queue limit. If this problem does apply, upgrading to 8.2.3 and adding the below property should resolve these spikes:

    introscope.enterprisemanager.supportability.volumespace.enable=false

    If this property is set to false, we will not poll the volume space to avoid the harvest duration spikes every 5 minute on some systems.
    The side effect is that the volume space supportability metrics will not be available:
    Enterprise Manager|Data Store|Volume Space Free:xxxx


    10. Check how big is your tracers database.

    From the Collector's perflog.txt, review the "Performance.Transactions.Num.Traces" column
    If the value is too higher than 500K and increasing rapidly or reaching a 1million, then this could be the cause of the problem.
    If possible start the EM with a fresh new Tracers database to isolate the problem,

    If MQ PP is involved in the implementation, there are 2 active bugs affecting the tracers database v8.2: EM (Bug# 61432) and Agent(Bug#61363).
    Contact CA Support to request a fix and if an upgrade is not possible, disable transaction sampling on the EM side by setting introscope.agent.transactiontracer.sampling.perinterval.count=0 and for now introscope.enterprisemanager.transactionevents.storage.max.data.age=1 (by default traces information will be store for 14 days)


    If the problem persists after applying all the above changes, you should contact support and make sure to provide the following information:
    - zipped content of EM_HOME/logs
    - EM_HOME/config/Introscope Enterprose Manager.properties
    - EM_HOME/EMService.conf
    - Hardware specs and a general overview of the implementation indicating where the collectors and MOM are
    - screenshot of the following supportability metrics:
    1) EM | Smartstor | Metadata | Metrics with Data
    2) EM | Internal | Number of Connection Tickets
    3) EM | Internal | Number of Virtual Metrics
    4) EM | Tasks | Harvest Duration
    5) EM | Tasks | Smartstor Duration
    6) EM | GC Heap | Bytes in Use
    7) EM | GC Heap | GC Duration

    Please make sure to remove all existing introscope log files to another location before starting the tests so we have a clear picture of your latest tests.

    Regards,

    Sergio


  • 2.  RE: Top 10 common causes for EM performance issues - Checklist

     
    Posted Mar 22, 2011 12:34 PM
    Great Tuesday Tip Sergio! Thank you and welcome all Wily community members to Tuesday Tips!

    Chris


  • 3.  RE: Top 10 common causes for EM performance issues - Checklist

    Posted Mar 23, 2011 04:37 AM
    This is essential information for anyone who is responsible for maintaining Enterprise Managers.
    Thanks Sergio.


  • 4.  RE: Top 10 common causes for EM performance issues - Checklist

    Posted Mar 24, 2011 06:54 AM
    Thanks Sergio! It's very helpful checklist.


  • 5.  RE: CA Tuesday Tip: Top 10 common causes for EM performance issues - Checkl

    Posted Sep 27, 2011 11:42 AM
    Thank you very much Sergio. The tips are really useful.
    Regarding the #5, the # of “Metrics with Data” is way over 300K in our production EM servers. One of Collectors actually reached the 1 million metrics. We do experience very slow response time from time to time but it is not consistently slow. Do you recommend we should truncate the historical data to lower than 300K per collector? Is there any document I can refer to and understand more about the metrics?

    I could open a ticket thru CA Support. Can you let me know how can I get the ticket assigned to you?


  • 6.  RE: CA Tuesday Tip: Top 10 common causes for EM performance issues - Checkl

    Broadcom Employee
    Posted May 30, 2013 06:45 AM
    Hi Eugene,
    I am sorry about the delay. In regards to your question, if it is v8.x, reduce the count to 300K, if v9.x, try to lower it to 600K, that should fix the issue.

    See new post: CA Tuesday Tip:MARCH 2013 - Top 20 common causes for EM performance issues
    100642256

    Regards,
    Sergio


  • 7.  RE: CA Tuesday Tip: Top 10 common causes for EM performance issues - Checkl

    Posted Nov 15, 2011 08:05 PM
    good stuff. Sergio.Thanks


  • 8.  Thread Splitted

    Broadcom Employee
    Posted Nov 20, 2012 10:12 AM
    The new thread can be found at 99689055.

    Splitting thread from the Tuesday Tips.


  • 9.  RE: CA Tuesday Tip: Top 10 common causes for EM performance issues - Checkl

    Posted May 30, 2013 06:11 AM
    Hi,

    Are the tips still valid for a V9.1 system?
    If not could this useful thread be updated please?

    Thanks.


  • 10.  RE: CA Tuesday Tip: Top 10 common causes for EM performance issues - Checkl

    Broadcom Employee
    Posted May 30, 2013 06:36 AM
    Hi, yes, they still valid. I posted an update last March.
    Regards,
    Sergio

    CA Tuesday Tip:MARCH 2013 - Top 20 common causes for EM performance issues
    100642256