...
Code Block | ||
---|---|---|
| ||
<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 | ||||
---|---|---|---|---|
| ||||
<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.
...