Salesforce Developers Blog

Apex Performance Troubleshooting

Avatar for Dan YuDan Yu
For architects and developers working with Apex code, debugging performance problems can be difficult. A new article explores some of the common causes of performance issues, and then looks at the process of using debug logs, the Developer Console, and other tools to find and fix performance issues.
Apex Performance Troubleshooting
September 24, 2014
Listen to this article
0:00 / 0:00

Apex Performance Troubleshooting

Troubleshooting Apex Performance Problems

Force.com is a platform where you can build compelling applications using Visualforce and Apex. However, sometimes you’ll find yourself dealing with unexpected performance problems in your app that impact the user experience. Troubleshooting Apex performance problems can be difficult and time-consuming, so it’s worth understanding the causes and ways to fix any issues that come up.

We’ve created an article that talks about what can cause Apex performance problems, ways to diagnose these problems, and tools to help you quickly and easily get the information you need. In particular, the article discusses how to work with Apex debug logs, including understanding log time gaps and how overuse of System.Debug can affect logs. Additionally, the article talks about an Apex Timeline tool that uses the Tooling API to programmatically access debug logs.

Troubleshooting Apex Performance Problems

Armed with this knowledge, you’ll be able to track down Apex performance issues in no time, and make your app fly!

Related Resources

About the Author and CCE Technical Enablement

Dan Yu is a technical writer within the Technical Enablement team of the salesforce.com Customer-Centric Engineering group. The team’s mission is to help customers understand how to implement technically sound salesforce.com solutions. Check out all of the resources that this team maintains on the Architect Core Resources page of Developer Force.

Get the latest Salesforce Developer blog posts and podcast episodes via Slack or RSS.

Add to Slack Subscribe to RSS

More Blog Posts

Invoke Prompt Templates from Flow, Apex, or the REST API

Invoke Prompt Templates from Flow, Apex, or the REST API

Thanks to the Connect REST API, it’s not only possible to invoke prompt templates programmatically within the Salesforce Platform, but also from third-party systems.April 18, 2024

Invoke Agentforce Agents with Apex and Flow

Invoke Agentforce Agents with Apex and Flow

Augment low-code and pro-code automations in Salesforce by invoking Agentforce agents with Apex and Flow.April 03, 2025