When Exporting to Confluence a large documentation:

If all the previous is met there are 2 options:

  1. Export a smaller documentation

  2. You can reconfigure Tomcat to accept larger requests. This can be done by increasing the allowable limit or just simply disabling this functionality.

    1. Edit is <Tomcat-Dir>/server.xml.

    2. Set the Tomcat configuration parameter maxPostSize for the HTTPConnector to a larger value (in bytes) to increase the limit.

    3. If using Apache web server, add the same parameter to the AJP connector instead.

    4. Restart.