+ The APR library is configured by the AprLifecycleListener
. This
+ listener is configured as a global listener under the Server
+ element in server.xml
. If the listener can't find the APR/native
+ library when it started, the library path it searched will be displayed.
+
+ The following attributes are supported by the
+ AprLifecycleListener
:
+
This must be
+ org.apache.catalina.core.AprLifecycleListener
Sets the source of entropy. Production system needs a reliable source
+ of entropy but entropy may need a lot of time to be collected therefore
+ test systems could use non-blocking entropy sources like
+ /dev/urandom
that will allow quicker starts of Tomcat. The
+ default value is builtin
.
+
- Once the libraries are properly installed and available to Java (if loading fails, the library path - will be displayed), the Tomcat connectors will automatically use APR. Configuration of the connectors + Once the libraries are properly installed and available to Java, the Tomcat + connectors will automatically use APR. Configuration of the connectors is similar to the regular connectors, but have a few extra attributes which are used to configure APR components. Note that the defaults should be well tuned for most use cases, and additional tweaking shouldn't be required.