When you face performance problems, the following guidelines and steps help resolve the issue without needing to contact your support provider. However if you still need assistance, the gathered information is helpful while raising a case.
Use the Pipeline Profiler and Reports & Dashboards to monitor and review deployed code performance, and identify or prevent performance problems. When a performance issue occurs, you can take several steps to identify the cause and quickly resolve the issue.
Grid-wide median responses for the most critical pipelines are:
If the response times for these critical controllers are around the mentioned median response time, the site is scalable.
When you push a new version of your storefront code, or receive a new B2C Commerce version, monitor performance to see if the new code affects it with the Pipeline Profiler. Also monitor job performance and search indexing, and optimize when possible.
The Pipeline Profiler displays a high-level view of response times per script, such as hits, total time for a page to be generated, and average time. Use the Pipeline Profiler to identify the most expensive pipeline or controllers, and the most expensive component within that pipeline or controller. Drill down into script data within a pipeline or controller to identify expensive scripts running on the storefront.
These are the first metrics to focus on for troubleshooting performance.
While the profiler is running, similar metrics are provided for all Server-Side
JavaScript (whether it is in a script file, in an ${expression}
, or
between <isscript>
tags). When you stop the profiler, script data is
no longer provided.
You can also look at the pipeline technical reports to identify which recent code deployments are related to performance issues. If a new script or pipeline was recently deployed, you can roll back the code. Use a code replication of type Undo, or change the active version in production.
The Code Profiler provides insight into run-time performance. Unlike Pipeline Profiler data, the information is kept and can be exported. For more information, see Using Code Profiler.
Are you currently facing a performance issue? Use these steps to troubleshoot in real time: Troubleshooting Real-Time Performance.
If you would like to generally review the performance of your site, see: Troubleshooting General Performance Issues.
We recommend you follow a sequential approach to narrow down the origin of the issue before reaching out to support. The following documentation leads you towards a possible root cause and solution for your real-time performance issue.
To check for Commerce Cloud disruptions or service degradations, check the Trust Status Page.
Network-Related Issues
Verify Network Issues
To verify network issues, consider the following:
traceroute
. This can identify a bottleneck in your
network chain.Use the Real-Time Performance tab in
.Sudden Increase in Orders
Increase in System Workload Without Significant Order Change
Increase in System Workload and Decrease in Orders
Check for recent code or data replications if the time matches. Is there an issue with Cache Clear? Cache Clears can lead to suboptimal performance during high traffic.
What Can Cause a Cache Clear?
iscache
tags of type daily
in your storefront
pages clear all pages of a specific type at the same time every day.Common Caching Mistakes
Changes During Replication
Long Running Jobs?
Check for long running jobs that can be causing thread exhaustion.
Potential Causes
Are the errors related to custom code? Check for recent code releases or activation. Work with the Development team to debug the recent code.
If errors are related to the system, fetch log and raise a case with support.
Verify the respective web services and refer to Configuring Web Services in Business Manager.
Some tasks or jobs are prioritized in their capability to lock resources on a higher level. For example, if a job has the right to lock the site's resource it will automatically release all underlying resources before. So now the workflow job loses the exclusivity of the assigned locks and will fail as it isn't able to get the resources again (as it is currently locked by an overlying job).
To prevent the correlation between such jobs, determine which jobs are affecting others and if it is possible that the other jobs are locking the needed resources.
This can be done by reviewing the Job History to see if possible system and custom jobs are running longer than without the own job before. You can also search in the log center by ‘resource lock’. If the own defined job is failing regularly, and is followed by a system job, contact B2C Support to reschedule the system job to a runtime which wouldn't interfere with the workflow job. If the locking is due to a custom job, consider rescheduling to avoid overlapping.
We recommend you follow a sequential approach to narrow down the origin of the issue before reaching out to support. The following documentation leads you towards a possible root cause and solution for your general performance issue.
Capture an HTTP Archive (HAR) file to pinpoint where the time is spent. A HAR file contains lots of trace information from within a browser. It records all web requests made by the browser tab, including the request and response headers, the body, and the time it took to load. HAR files are useful when troubleshooting issues relating to speed, caching, and issues that are harder to replicate.
Increase in Orders as Well
If you see an increase in session or requests, system workload, and orders, reach out to the support team with information on the workload increase. Your realm resourcing can be fine-tuned, if necessary.
Order Throughput Remains the Same
Potential Bot or Crawler Issue
Verify Controller Performance Metrics
You can click into the controllers and view remote-includes controllers to understand where the time is most spent.
Long Running Jobs
To monitor job runtimes, navigate to
.We recommend monitoring jobs regularly, and to analyze any jobs running over one hour to identify possible optimizations.
Data import best practices:
Navigate to
.Navigate to
.Resource lock occurs when two jobs are executed simultaneously, locking on the same resource.
Navigate to
.Reports and Dashboards can help you drill into insights on technical operations, site traffic, real-time performance metrics, and other aspects of your B2C Commerce sites.
If you notice an increase in system workload at a certain time, you can review what changes were made on the instance at the time such as, code and data deployment, replication, long running jobs, or ongoing sales or promotions.
If you notice an increase in sessions or requests without many changes in orders, this can generally point to an issue with BOT traffic. The Traffic dashboard shows data about the visitors to your site, and can be used to investigate issues related to BOT traffic, which may be causing performance issues to your site.
Performance of a controller has a direct correlation with the performance of your site, in particular your page load time. Therefore, it’s important to ensure that controllers are tuned to give the best response time.
The Technical Reports dashboard gives you insights about your site’s server-side technical operations data, including pipelines and controllers. To maximize the scalability and stability of your customization, particularly when the environment is under increased load, the critical storefront controllers should be at or below the average processing times suggested.
It is important to have such controllers tuned to the finest.
Use the Technical tab to view the cache hit, cache miss, and cache miss and store of each controller. If you have poor cache hit ratio for certain controllers, you should review the caching strategy.
Gathering good data is the most helpful thing you can do before contacting Support.
Identify changes to your code or data to narrow down the possible causes of the problem: