Increase the SAS® Infrastructure for Risk Management maximum file upload size


Note: See the SAS® Infrastructure for Risk Management: Upload New Data to an Input Data Table documentation for additional information.

By default, SAS Infrastructure for Risk Management supports a maximum file upload size of 52,428,800 bytes.

However, if you have sufficient memory (RAM) in the mid-tier server, you can increase this limit by adjusting the highlighted properties in the web.xml file and then restarting Server-8.

<config>/Lev1/Web/WebAppServer/SASServer8_1/sas_webapps/sas.insuranceriskmanagementserver.war/WEB-INF/web.xml

To increase the default max file upload size, use the following code:

<servlet>

                   <servlet-name>services</servlet-name>

                   <display-name>Dispatcher Servlet</display-name>

                   <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>

                   <load-on-startup>1</load-on-startup>

                   <multipart-config>

                              <max-file-size>52428800 </max-file-size>

                              <max-request-size>52428800 </max-request-size>

                              <file-size-threshold>0</file-size-threshold>

                   </multipart-config>

               </servlet>

You can increase the maximum file upload size according to your requirements. In the example below, the maximum file upload size was increased to 157,286,400 bytes, which is equivalent to RGF:         

<servlet>

                   <servlet-name>services</servlet-name>

                   <display-name>Dispatcher Servlet</display-name>

                   <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>

                   <load-on-startup>1</load-on-startup>

                   <multipart-config>

                              <max-file-size>157286400</max-file-size>

                              <max-request-size>157286400</max-request-size>

                              <file-size-threshold>0</file-size-threshold>

                   </multipart-config>

               </servlet>