APM Scenarios for SCIS
Use these scenarios as a guide for applying Application Performance Management (APM) results to boost SuiteCommerce InStore (SCIS) performance:
To view performance in APM:
-
Go to Customization > SCIS Performance > SCIS Performance Diagnostics.
-
Set filters for the area you want to review, like a Date Range or Location with a spike in transactions. For more information, see SuiteCommerce InStore Performance Diagnostics.
-
Click Refresh.
-
Click an Action tile to see a time-duration graph for your chosen Date Range.
-
Hover over the graph and click a point of interest to open Action History, which shows a performance summary and Action History Detail tables.
Scenario A – Excessive time for a User Event Script
A user event script is taking an excessive amount of time.
Data in SCIS APM
-
Workflow run times appear in a table after you go to Action > Graph > Action History Details.
-
Use the Profiler Details links to investigate any events taking too long.
To resolve the scenario:
-
Review workflows running with the script to see if they're causing long runtimes.
-
Check if the script is from a third-party bundle.
-
If yes, contact the bundle owner and ask if it needs to run in the SCIS WebApplication or Payment PostBack contexts.
-
If the script isn't required in these SCIS contexts, use the Script Deployment page to exclude it from those contexts.
-
-
Review customizations in your environment for possible issues.
If a customization shouldn't run for SCIS, exclude the script from the WebApplication or Payment PostBack contexts using the Script Deployment page.
To exclude a script by an SCIS execution context:
-
To exclude a script by SCIS execution context:
-
Clear highlights for WebApplication and Payment PostBack.
-
Click Save.
For more information, see Updating a Script Deployment.
Scenario B – Excessive time for a Workflow
A workflow running for a user event script is taking an excessive amount of time to complete.
Data in SCIS APM
-
The Workflow run times display in a table after you navigate to Action > Graph > Action History Details.
-
Use the links in the Profiler Details column to research an event with an excessive time.
To resolve the scenario:
-
Review scripts that include the workflow to determine if they are the source of excessive runtimes.
-
Determine if the workflow is from a third-party bundle script.
-
If yes, contact the bundle owner and ask if the script is required to execute in the SCIS WebApplication or Payment PostBack contexts.
-
If the script is not required in these SCIS contexts, use the Script Deployment page to exclude the script from those contexts.
-
-
Review any customizations specific to your environment for potential problems.
If the customization should not run for SCIS, use the Script Deployment page to exclude the script from executing in the SCIS WebApplication or Payment PostBack contexts.
To exclude a script by an SCIS execution context:
-
Clear highlights for WebApplication and Payment PostBack.
-
Click Save.
For more information, see Updating a Script Deployment.
Scenario C – Excessive time for a Custom Client Script URL Request
A custom client script URL request is taking an excessive amount of time.
Data in SCIS APM
Custom Client Script URL Request run times show up in a table after you go to Action > Graph > Action History Details, listing the total duration for each request.
To resolve the scenario:
-
Figure out if a user event script, workflow, or custom client script URL request is causing the long durations.
-
After you've checked, open a case with NetSuite Customer Support so they can review the script and suggest what to do. When you create the case, include:
-
APM Action Tile name
-
Date and time from Action History Detail page
-
Custom client script URL
-
Log ID
-
Sample of duration times
-
Scenario D – Excessive time for the SCIS & Others area
Excessively long times are showing for processes under the SCIS & Others area.
Data in SCIS APM
The time used by the SCIS application (including SuiteScript processing) is shown in a table after you go to Action > Graph > Action History Details, with the total duration for each request listed.
To resolve the scenario:
-
Figure out if a user event script, workflow, or custom client script URL request is causing the delays.
-
If none of these are the cause, open a case with NetSuite Customer Support so they can review the times and recommend next steps. When you create the case, include:
-
APM Action Tile name
-
Date and time from Action History Detail page
-
Log ID
-
Sample of duration times
-