Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Add resource cache max size to Context for Tomcat 8.5

...

Code Block
titleExample Tomcat 7/8 Connector Configuration
<Context sessionCookiePath="/">

Increase Resource Cache Size

uPortal and the typical collection of portlets take a lot of space. Tomcat 8.5 issues warnings about running out of resource cache space. Add the following cache configuration just before the close of the Context node.

Code Block
languagexml
titleAdd resource caching size in Context
    <Resources cachingAllowed="true" cacheMaxSize="100000" />
</Context>

 

JVM Heap Configuration

uPortal requires a larger than standard PermGen space (Java 7 only) and more heap than may be allocated by default. A good conservative set of heap settings are -XX:MaxPermSize=384m (Java 7 only) -Xmx2048m. To add these, create a file called either setenv.sh (Linux/Mac) or setenv.bat (Windows) in your CATALINA_HOME/bin directory and add the configuration as follows.  Note for production settings you would typically want more heap space, at least 4GB.  See Additional Tomcat Configuration below.

...