Loading
Scalability
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Use Load Generation Features in Scale Test

          Use Load Generation Features in Scale Test

          Validate your app's performance before peak demand by running a full-scale load test in a production-like environment.

          The Load Generation feature in Scale Test runs traffic simulations with JMeter or Playwright scripts. Use these simulations to identify governor limit violations, measure response times, and compare sandbox behavior against a production baseline before issues happen in production.

          1. Set up your test environment.
            1. In Scale Test, go to Test Environment Setup and select Manage Workloads. Enter your GitHub repository URL and personal access token, then click Fetch Workloads. Confirm imported workloads show Valid status.
            2. Select Trial Accuracy Checker. Enter your production baseline metrics and sandbox trial run metrics, then click Submit. Confirm that accuracy rates are 90% or higher before proceeding.
            3. Select Test RPS Estimator. Select a trial run date and time, then enter a scaling factor to calculate your target Requests Per Second (RPS).
          2. Book your scale test.
            1. Go to Test Scheduler and click New Booking.
            2. Review the booking requirements and click I Acknowledge.
            3. Enter your trial run details and scaling factor, select your test dates, enter a test name, and click Submit.
          3. Execute and monitor your test.
            1. When your slot is active, go to Test Execution. On the Test Runs tab, select your workload, enter a test name, and click Run.
            2. Click View under Live Test to monitor real-time metrics. Use Suspend, Restart, or Terminate to manage individual tasks during the run.
            3. When the test is complete, click Create Report. Enter a name and time range.
          4. Analyze the report results.
            1. Review summary metrics: total logged-in users, average RPS, governor limit hits, and org throttle status.
            2. Check the Governor Limit Hits table for exceptions such as too many SOQL queries and resolve them before scheduling a larger test.
            3. Review Apex Performance for CPU and DB time distribution by entry point. Visit ApexGuru in Scale Center for optimization guidance.
          Load Generation Phases
          Load Generation Phases
          Phase Description
          Phase 1: Test Environment Setup Import JMeter or Playwright scripts from GitHub, validate accuracy against a production baseline, and calculate your target RPS.
          Phase 2: Book Your Scale Test Reserve a production-like sandbox slot, acknowledge booking policies, and confirm your scaling factor, target RPS, and test dates.
          Phase 3: Test Execution and Analysis Run your workload, monitor live JMeter and Playwright metrics, generate a report, and review governor limit hits, RPS projections, and Apex performance.
           
          Loading
          Salesforce Help | Article