Thread Profiling

Thread profiling enables you to identify and isolate bottlenecks in your code stack. In Site24x7 APM Insight, all thread profiles collected in the chosen time window are listed, along with the thread count, CPU time and memory details. Each thread profile consists of a list of threads that were running when the application was being profiled. 

Upon clicking a specific thread profile, one can view:

  • High CPU consuming threads,along with its thread ID, CPU time and memory allocated details
  • Time consuming methods which could potentially affect application's performance
  • Invocation count of every method

Contents

  1. View thread profiling
  2. Types of thread profiling
1. To View thread profiling:
  • Log into your Site24x7 account
  • Home > APM > Your application
  • Click on Thread profiling tab > Click on individual threads to inspect them further
 
2. Types of thread profiling
Scheduled profiling:

By default, APM Insight schedules thread profiling twice a day for a period of 5 minutes.

Note: In Java agent, scheduled thread profiling happens for every one hour.

On-Demand profiling:

With On-Demand profiling,one can initiate thread profiling at the current time for a duration ranging from 5 to 30 minutes.

The threads are sampled at regular time interval in the specified duration and the collective data is displayed at the end of time duration.

To initiate On-Demand profiling,

  • Log into your Site24x7 account
  • Home > APM > Your application
  • Click on Thread profiling tab > Click on On-Demand thread profiling tab to initiate
  • Specify time duration and click on Initiate profiling
 
On-Demand  profiling can be initiated only once per hour ie.,if you initiate On-Demand profiling for 5 minutes, next initiation can be done only after 55 minutes. 
 

On-Demand profiling can be initiated for both applications and instances.

    • In application view, On-Demand profiling will be initiated for the first available instance.
    • In instance view, On-Demand profiling will be initiated only when the instance is UP.
    • When you try to initiate On-Demand profiling when the instance is Down,you will receive an alert message saying "Agent is currently DOWN.Please try after some time
    • When your instance is suspended, On-Demand profiling will be disabled
 

Here's a quick video of how thread profiling works:

Was this document helpful?
Thanks for taking the time to share your feedback. We’ll use your feedback to improve our online help resources.