Lines 103-113
Link Here
|
103 |
|
103 |
|
104 |
</section> |
104 |
</section> |
105 |
|
105 |
|
|
|
106 |
<section name="APR Configuration"> |
107 |
|
108 |
<p> |
109 |
The APR library is configured by the <code>AprLifecycleListener</code>. This |
110 |
listener is configured as a global listener under the <code>Server</code> |
111 |
element in <code>server.xml</code>. If the listener can't find the APR/native |
112 |
library when it started, the library path it searched will be displayed. |
113 |
</p> |
114 |
<p> |
115 |
The following attributes are supported by the |
116 |
<code>AprLifecycleListener</code>: |
117 |
</p> |
118 |
|
119 |
<attributes> |
120 |
<attribute name="className" required="true"> |
121 |
<p>This must be |
122 |
<code>org.apache.catalina.core.AprLifecycleListener</code></p> |
123 |
</attribute> |
124 |
<attribute name="SSLRandomSeed" required="false"> |
125 |
<p>Sets the source of entropy. Production system needs a reliable source |
126 |
of entropy but entropy may need a lot of time to be collected therefore |
127 |
test systems could use non-blocking entropy sources like |
128 |
<code>/dev/urandom</code> that will allow quicker starts of Tomcat. The |
129 |
default value is <code>builtin</code>. |
130 |
</p> |
131 |
</attribute> |
132 |
</attributes> |
133 |
</section> |
106 |
<section name="APR Components"> |
134 |
<section name="APR Components"> |
107 |
|
135 |
|
108 |
<p> |
136 |
<p> |
109 |
Once the libraries are properly installed and available to Java (if loading fails, the library path |
137 |
Once the libraries are properly installed and available to Java, the Tomcat |
110 |
will be displayed), the Tomcat connectors will automatically use APR. Configuration of the connectors |
138 |
connectors will automatically use APR. Configuration of the connectors |
111 |
is similar to the regular connectors, but have a few extra attributes which are used to configure |
139 |
is similar to the regular connectors, but have a few extra attributes which are used to configure |
112 |
APR components. Note that the defaults should be well tuned for most use cases, and additional |
140 |
APR components. Note that the defaults should be well tuned for most use cases, and additional |
113 |
tweaking shouldn't be required. |
141 |
tweaking shouldn't be required. |