The default timeout for the SAS Stored Process Web Application servlet is 900 seconds, or 15 minutes. To change the timeout for the SAS Stored Process Web Application servlet (that is, when you are using /SASStoredProcess/do? to submit a stored process from a Web client), you must edit the web.xml file found on the middle-tier server in the servlet WEB–INF directory. For example, under Tomcat the path might look like these samples below:
UNIX platforms:
<tomcat-root>/webapps/SASStoredProcess/WEB-INF/
Windows platforms:
<tomcat-root>\webapps\SASStoredProcess\WEB-INF\
Once you have located the SASStoredProcess/WEB-INF/web.xml file, edit the file and add the following block with the desired timeout specified in seconds:
<init-param>
<param-name>SessionTimeout</param-name>
<param-value>1800</param-value>
</init-param>
The init param must be included in the <servlet> section of the web.xml file as follows:
<servlet>
<servlet-name>
storedprocessservlet
</servlet-name>
<servlet-class>
com.sas.services.storedprocess.webapp.StoredProcessServlet
</servlet-class>
<init-param>
<param-name>InputEncoding</param-name>
<param-value>utf-8</param-value>
</init-param>
<init-param>
<param-name>OutputEncoding</param-name>
<param-value>utf-8</param-value>
</init-param>
<init-param>
<param-name>AuthMechanism</param-name>
<param-value>host</param-value>
</init-param>
<init-param>
<param-name>SessionTimeout</param-name>
<param-value>1800</param-value>
</init-param>
</servlet>
Once the edited file is saved, you must stop and restart the servlet container for this change to be picked up. You should also delete the SASStoredProcess temporary cache directory under the servlet container to ensure that the new content is used. For example, under Tomcat the directory by default is:
<tomcat-root>\work\Standalone\localhost\SASStoredProcess.
Note: If the Web Infrastructure Kit (WIK) is redeployed, the changes made to the web.xml file under the servlet container will be lost when the file is deployed again. Additional information is included below.
To include the SessionTimeout modification when the WIK is redeployed, edit the web.xml file found in the following locations:
UNIX platforms:
<installdir>/Web/Portal2.0.1/SASStoredProcess/WEB-INF/web.xml
Windows platforms:
C:\Program Files\SAS\Web\Portal2.0.1\SASStoredProcess\WEB-INF
The configure_wik.bat (Windows) or configure_wik.sh script (UNIX) must be resubmitted and the recreated WAR files must be redeployed. Refer to the wik_readme.html file for instructions on deploying the Web applications to the servlet container.
Operating System and Release Information
SAS System | SAS Integration Technologies | z/OS | 9.1 TS1M3 | |
Microsoft® Windows® for 64-Bit Itanium-based Systems | 9.1 TS1M3 | |
Microsoft Windows Server 2003 Datacenter 64-bit Edition | 9.1 TS1M3 | |
Microsoft Windows Server 2003 Enterprise 64-bit Edition | 9.1 TS1M3 | |
Microsoft Windows XP 64-bit Edition | 9.1 TS1M3 | |
Microsoft® Windows® for x64 | 9.1 TS1M3 | |
Microsoft Windows 2000 Advanced Server | 9.1 TS1M3 | |
Microsoft Windows 2000 Datacenter Server | 9.1 TS1M3 | |
Microsoft Windows 2000 Server | 9.1 TS1M3 | |
Microsoft Windows 2000 Professional | 9.1 TS1M3 | |
Microsoft Windows NT Workstation | 9.1 TS1M3 | |
Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M3 | |
Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M3 | |
Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M3 | |
Microsoft Windows XP Professional | 9.1 TS1M3 | |
Windows Vista | 9.1 TS1M3 | |
64-bit Enabled AIX | 9.1 TS1M3 | |
64-bit Enabled HP-UX | 9.1 TS1M3 | |
64-bit Enabled Solaris | 9.1 TS1M3 | |
HP-UX IPF | 9.1 TS1M3 | |
Linux | 9.1 TS1M3 | |
OpenVMS Alpha | 9.1 TS1M3 | |
Solaris for x64 | 9.1 TS1M3 | |
Tru64 UNIX | 9.1 TS1M3 | |
*
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.