HTTP Status 500 error when publishing to PDF using View and Markup (retired) - SmartPlant Foundation - SmartPlant Foundation 2020 - Help - Hexagon

SmartPlant Foundation and Web Client Modified and Retired Functionality

SmartPlant Foundation
Search by Category
SmartPlant Foundation / SDx Version
SmartPlant Markup Plus Version
10.0 (2019)

The following applies if you are using a version of the software before Update 33 and SmartPlant Markup Plus Server 2019 SP 1 or earlier. For the latest information, see File viewing problems.


When publishing a non-Hexagon file to PDF using the Publish > Publish to PDF command in the View and Markup page, the following error appears:

HTTP Status 500 - Internal Server Error

Common Cause

You might encounter this problem if the file:

  • Has several markup layers.

  • Has a large number of images.

  • Contains thousands of pages.

There are several changes that can help alleviate these problems. Modifying Brava! Server properties will help display large PDF files. For those instructions, see Solution 1, Modify Brava! Server properties in Cannot view large PDF files using View and Markup (retired).

The following solution often helps with publishing large PDFs displayed in the View and Markup page.

Solution: Modify Tomcat settings for Java

SHARED Tip For help with Apache Tomcat settings, refer to the documentation at

  1. Log on to the SmartPlant Markup Plus server as an administrator.

  2. Go to Start > Administrative Tools > Services and stop the Apache Tomcat service.

  3. Increase the Apache Tomcat memory allocation settings for Java:

    1. Click Start > Apache Tomcat [version] > Configure Tomcat.

    2. Select the Java tab.

    3. Increase the Initial Memory and Maximum Memory settings.

      For example, some very large PDFs might require an initial memory of at least 1000 and a maximum memory of at least 3000.

      Consider how much RAM is available. Increasing the maximum memory allocation for Apache Tomcat will decrease available memory for other processes.

  4. Increase the asyncTimeout attribute for the Tomcat <Connector> elements:

    1. Open the Apache Tomcat configuration file:

      [Apache installation folder]\Apache Software Foundation\Tomcat [version]\conf\server.xml

    2. For both the connector port and the redirect port, increase the asyncTimeout attribute on the <Connector> element to 600000 or higher. This value is measured in milliseconds.

      • Usually the connector port is 8080 and the redirect port is 8443. Your company may use different settings. If your company uses a redirect port, be sure to set the attribute for both ports.

      • Attribute names are case-sensitive.

      • The asyncTimeout attribute is added to the <Connector> elements when configuring the SmartPlant Markup Plus Server to use SSL. For more information, see Set connector attributes to personal information exchange file (PFX).

  5. Go to Start > Administrative Tools > Services and restart the Apache Tomcat service.