Contents
Through adjustments to caches, JVM settings, and more, you can make sure that the application is performing well.
It's almost certain that you'll want to adjust application settings from their defaults shortly after you're up and running. In particular, you'll want to keep an eye on caching, but there are other things you can do to ensure that the application is performing as well as possible. See the following for tuning suggestions.
Jive SBS caches data in order to reduce the number of trips the application makes to its database. The caches improve performance by letting people get things done in the application more quickly. You can adjust the sizes of these caches so that they're best tailored for your community's needs. Adjusting cache settings often is the best way to improve performance.
You'll probably do most of your cache adjustment during the first few months of your deployment, then less frequently as use of the application grows.


The platform HTTPD server is pre-configured for optimal caching of static production content. Default configuration values for content caching can be found on a Jive-managed server at /usr/local/jive/etc/httpd/conf.d/cache.conf. You can edit this file to change default cache time or headers for specific scenarios (changing length of time static images are cached, for example). Changes to this file will be preserved across upgrades to a file named “cache.conf.rpmnew”. If this file is changed, be sure to check for new enhancements when upgrading.
You can adjust server-side page caching for anonymous users when their having the very freshest content is less of a concern. With server-side caching on, the server caches pages that are assembled dynamically from data and resources. Retrieving a page from the cache can save the time needed to assemble a fresh page. However, if the data that makes up the page has changed, the page in the cache won't be as fresh as a new one would be.
With server-side page caching disabled (and for registered users, whether or not caching is enabled), Jive SBS sends its default HTTP headers. With page caching enabled, in addition to the server-side page cache stored in memory, the application also sets the HTTP header in the response to Cache-Control max-age=3600.
The value set for max-age is configurable as described below.
You can set these with system properties in the admin console.
| Property | Description | Values |
|---|---|---|
| jive.pageCache.enabled | Enables server-side page caching. | false (default) to disable page caching; true to enable it. When enabled, only anonymous or guest users will receive cached content. |
| jive.pageCache.maxage.seconds | Sets the age after which the server will create a fresh page rather retrieve the page from the cache. | Defaults to 60 seconds. This sets Cache-Control: max-age=60 in the HTTP headers for the page. |
| jive.pageCache.expiration.seconds | Sets the number of seconds after which a page will be removed from the cache. | Defaults to 30 seconds |
| jive.pageCache.maxEntries | Sets the maximum number of pages that can be maintained in the cache. Note that increasing this value might require that you provide more system resources for the application. | Defaults to 1000 entries. |
Note that turning on developer mode by setting the jive.devMode property to true will disable the maxAgeFilter setting (effectively setting jive.maxAgeFilter.enable to false). The jive.devMode property is intended for situations when you're developing themes or plugins, In those situations, caching can hinder you from seeing the results of your development work.
serverName=myhost:serverPort=8080:contextPath=/our-community:localName=myhost:localPort=8080:localAddr=127.0.0.1
As with any Java-based web application, you can sometimes improve performance by assigning particular values to Java Virtual Machine options. The default location for environment configuration is located at /usr/local/jive/applications/sbs/bin/instance. Within this file, it is possible to edit JVM maximum memory settings by adding a value for JVM_HEAP_MAX. This value is expressed in MB, so for example, to set the max heap available to the application to 4GB, add the following lines to the instance file:
JVM_HEAP_MAX=4096
JVM_HEAP_MIN=4096
Jive recommends setting the MIN and MAX values the same to ensure that the system is capable of allocating the desired maximum value and that an OutOfMemoryException will not occur during runtime.
Note that in addition to the heap designation above, a typical Jive SBS instance will consume 512M of JVM "PermGen" heap. In the above example, increasing the MIN and MAX values to 4GB would result in a JVM process consuming slightly more than 4.5GB RAM.