Troubleshooting performance issues in SAS® Visual Analytics 8.x on SAS® Viya®


If a SAS Visual Analytics report is performing poorly (slow to open or slow to load pages or graphs), use the following guide to collect and provide useful information to SAS Technical Support:

Information to Gather

Providing a specific example of where you see poor performance and gathering relevant information is vital. Here are some items to consider:


Enable Report Data Debugging

The Report Data service is responsible for sending requests to the CAS server and retrieving the data. Most performance issues occur on this service, so it is helpful to have debugging enabled:

  1. Log in to SAS® Environment Manager as an Administrator.
  2. Navigate to Configuration ► All Services ► Report Data service.
  3. Edit the section logging.level: com.sas.bidata.
  4. Set the level to DEBUG.
  5. Click Save to save the changes.
  6. Repeat these changes for these additional logging levels:
    • logging.level: com.sas.cas
    • logging.level: com.sas.reportcache
    • logging.level: com.sas.reportcommon
    • logging.level: com.sas.reportcommon.utils.debug.Time
    • logging.level: com.sas.reportdata

A service restart is not needed. The debugging takes effect after 30-60 seconds.
 

Enable Report Data Garbage Collection

Garbage-collection logging can provide more detailed performance metrics about memory usage within the report data service. To enable this logging, follow the directions in SAS Note 64727 to create a report-data.conf file.

CAS Table Information

Information about the CAS tables used in SAS Visual Analytics reports can be useful as well. Here are items to consider:

Replicate the Problem and Capture Diagnostics

Follow these steps to capture additional diagnostic information as the problem occurs, and to know what information to provide to SAS Technical Support.

  1. On the CAS server, start a CAS gridmon recording to capture activity.
  2. On the client where the problem will be reproduced, open the browser window.
  3. Start a Network Trace (SAS KB0036430) in the web browser.
  4. In the same browser window where the network trace is running, replicate the issue. Allow enough time for all report objects to load, if possible. Any data requests that have not completed are not captured in the network trace.
  5. Optional: If the issue is with a specific report object, such as a list table or crosstab, you can capture Query Diagnostics (SAS KB0036172) as well.
  6. Once complete, click anywhere in the SAS Visual Analytics report and press Ctrl+Alt+P on your keyboard to open the SAS Visual Analytics Performance Diagnostics window. 
  7. Save the contents here, or copy and paste everything in this window to a text file.
  8. In the same window, click the BIRD tab. This tab displays the report definition.
  9. Save the contents here, or copy and paste everything in this window to a text file.
  10. Save the network trace and the browser console output. 
  11. Stop the gridmon recording. 
  12. Send the following information to SAS Technical Support:
    • The Browser Diagnostic information (network and console captures) 
    • The Performance export from Ctrl+Alt+P 
    • The BIRD export from Ctrl+Alt+P
    • The Report Data service log (default location: /opt/sas/viya/config/var/log/report-data/default. Collect the most recent sas-report-data-timestamp.log file)
    • The CAS service log (default location: /opt/sas/viya/config/var/log/cas/default. Collect the most recent cas_timestamp_hostname_pid.log file)
    • The Report Data garbage collection log (default location: /opt/sas/viya/config/var/log. Collect the most recent gc_sas-report-data_timestamp.log file)
    • The gridmon recording