The troubleshooting tips in this note should help if you encounter problems when you run SAS® Stored Processes on the SAS® Stored Process Server using the SAS Stored Process Web Application.
- Specify the &_debug=trace option in the URL when you submit the
request. This specification provides a trace of the execution in your web browser, as shown below.
http://your-server.com:8080/SASStoredProcess/do?_program=
%2FSamples%2FStored+Processes%2FSample%3A+Hello+World&_debug=trace
- Alternatively, you can specify the &_debug=trace,time,log option in the URL when you submit the request. In addition to providing an execution trace, it also indicates the execution time that is required for each step.
- The stored-process server creates log files in a location that is similar to the following:
.../Lev1/SASMain/StoredProcessServer/logs/
Different releases of the SAS®9 Stored Process Web Application create a log file on the middle-tier server at a different location and increasing debugging information is done differently. See the appropriate SAS release levels below for further information about the SAS Stored Process Web Application log files.
SAS® 9.13 Notes
In SAS 9.13, the SAS Stored Process Web Application creates a log file on the middle-tier server in the following location:
.../Lev1/web/Deployments/Portal/stp.log
If necessary, you can produce more detailed logging information in the stp.log file about the execution of the SASStoredProcess servlet (which runs on your middle-tier web server) by using the following approach.
- Make a backup copy of the logging_config_stp.xml file. This file should be located on your web-server machine at a path that is similar to the following:
.../Lev1/web/Deployments/Portal/logging_config_stp.xml
- Modify the logging_config_stp.xml file, as follows.
- Change the RootLoggingContext priority from WARN to DEBUG.
- Change the com.sas.services.storedprocess priority from WARN to DEBUG.
- Restart SAS Remote Services and your servlet container (or example, your Tomcat server) to activate the changes.
- Submit a stored-process request from the web interface, as shown in the example below:
http://your-server.com:8080/SASStoredProcess/do?_program=
%2FSamples%2FStored+Processes%2FSample%3A+Hello+World&_debug=trace,time,log
- After you complete this test, you should restore the original settings in your logging_config_stp.xml file. You need to restore the settings because using the DEBUG option results in slower performance.
- Restart SAS Remote Services and your servlet container (for example, your Apache Tomcat server) to activate the changes.
SAS® 9.2 Notes
In SAS 9.2, the sAS Stored Process Web Application creates a log file on the middle-tier server in the following location:
.../Lev1/Web/logs/SASStoredProcess9.2.log
If necessary, you can produce more detailed logging information in
the SASStoredProcess9.2.log file about the execution of the SASStoredProcess servlet (which runs on your middle-tier web server) by using the following approach.
- Log on to SAS® Management Console.
- On the Plug-ins tab, select Environment Management ► Foundation Services Manager ► SASStoredProcess9.2.Local.Services ► Core ► Logging Service.
- Right-click Logging Service and select Properties.
The Logging Service Properties dialog box appears.
- Click the Service Configuration tab and then click Configuration. The Logging Service Configuration dialog box appears for the application.
- On the Contexts tab, click New to open the
New Logging Service Context dialog box.
- For Name specify com.sas.services.storedprocess.
- For Outputs, select SAS_LS_CONSOLE and SAS_LS_FILE.
- For Priority, select DEBUG.
- Click OK to exit from each window.
- To enforce the changes that you have made, restart the SAS web application.
- After you complete this test, you should set the priority to WARN for com.sas.services.storedprocess. You need to do this because the DEBUG priority result in slower performance.
For more information, see
Administering Logging for SAS Web Applications.
SAS® 9.3 Notes
In SAS 9.3, the SAS Stored Process Web Application creates a log file on the middle-tier server in the following location:
.../Lev1/Web/logs/SASStoredProcess9.3.log
If necessary, you can produce more detailed logging information in
the SASStoredProcess9.3.log file about the execution of the SASStoredProcess servlet by using the following approach.
- Make a backup copy of the SASStoredProcess-log4j.xml file. This file is located on your web-server machine in a path that is similar to the following:
.../Lev1/Web/Common/LogConfig/SASStoredProcess-log4j.xml
- Modify the SASStoredProcess-log4j.xml file by changing the com.sas.services priority from WARN to DEBUG
- Restart the SAS Web Application Server to activate the changes.
- Submit a stored-process request from the SAS Stored Process Web Application interface, as shown below.
http://your-server.com:8080/SASStoredProcess/do?_program=
%2FSamples%2FStored+Processes%2FSample%3A+Hello+World&_debug=trace,time,log
- After you complete this test, you should restore the original settings in your SASStoredProcess-log4j.xml file because the DEBUG priority results in slower performance.
Additional SAS® 9.3 Note
The following approach can be used to produce some additional logging without having
much impact on performance
.
This approach produces additional logging about the names of stored processes
that were executed, the users who submitted the requests and the beginning and ending execution times of each request.
- Modify the SASStoredProcess-log4j.xml file by changing the com.sas.services.storedprocess.webapp logger priority from WARN to INFO.
- Restart the Web Application Server to activate the changes.
For more troubleshooting ideas, see SAS Notes 12571 , 14764 , 17604, and 17336
Operating System and Release Information
| SAS System | SAS Integration Technologies | Microsoft Windows XP Professional | 9.1 TS1M3 SP3 | |
| Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 SP3 | |
| Microsoft Windows NT Workstation | 9.1 TS1M3 SP3 | |
| Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 SP3 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 SP3 | |
| Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 SP3 | |
| Microsoft Windows 2000 Server | 9.1 TS1M3 SP3 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 SP3 | |
| Microsoft Windows 2000 Professional | 9.1 TS1M3 SP3 | |
| Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 SP3 | |
| Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 SP3 | |
| 64-bit Enabled HP-UX | 9.1 TS1M3 SP3 | |
| HP-UX IPF | 9.1 TS1M3 SP3 | |
| Linux on Itanium | 9.1 TS1M3 SP3 | |
| Linux | 9.1 TS1M3 SP3 | |
| 64-bit Enabled Solaris | 9.1 TS1M3 SP3 | |
| OpenVMS Alpha | 9.1 TS1M3 SP3 | |
| 64-bit Enabled AIX | 9.1 TS1M3 SP3 | |
| Tru64 UNIX | 9.1 TS1M3 SP3 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.