-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresin-guwen-8011.xml
254 lines (212 loc) · 7.29 KB
/
resin-guwen-8011.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<!--
- Resin 4.0 configuration file for a clustered/load-balance environment
-->
<resin xmlns="http://caucho.com/ns/resin"
xmlns:resin="urn:java:com.caucho.resin"
xmlns:health="urn:java:com.caucho.health">
<!--
- Logging configuration for the JDK logging API.
-->
<log-handler name="" level="all" path="stdout:"
timestamp="[%y-%m-%d %H:%M:%S.%s] {%{thread}} "/>
<!--
- level='info' for production
- 'fine' or 'finer' for development and troubleshooting
-->
<logger name="com.caucho" level="info"/>
<logger name="com.caucho.java" level="config"/>
<logger name="com.caucho.loader" level="config"/>
<!--
- driver .jar files can be placed in ${resin.root}/ext-lib
-->
<class-loader>
<tree-loader path="${resin.home}/ext-lib"/>
<tree-loader path="${resin.root}/ext-lib"/>
</class-loader>
<class-loader>
<tree-loader path="${resin.home}/lib"/>
<tree-loader path="${resin.root}/lib"/>
</class-loader>
<!--
- jars with maven dependencies can be placed in project-jars to be used
- by web-apps
-->
<resin:ProjectJarRepository path="${resin.root}/project-jars"/>
<!--
- Remote management requires at least one enabled admin user.
-->
<resin:AdminAuthenticator>
<resin:import path="${__DIR__}/admin-users.xml" optional="true"/>
</resin:AdminAuthenticator>
<!--
- For clustered systems, create a password in place of "changeme"
- and uncomment the <resin-system-auth-key>.
-
- <resin-system-auth-key>changeme</resin-system-auth-key>
-->
<!--
- For production sites, change dependency-check-interval to something
- like 600s, so it only checks for updates every 10 minutes.
-->
<dependency-check-interval>2s</dependency-check-interval>
<!-- Java system-properties -->
<system-property mail.smtp.host="127.0.0.1"/>
<system-property mail.smtp.port="25"/>
<!--
- Sets the default character encoding to utf-8
-
- <character-encoding>utf-8</character-encoding>
-->
<character-encoding>utf-8</character-encoding>
<!--
- You can change the compiler to "javac", "eclipse" or "internal".
-->
<javac compiler="internal" args="-source 1.5"/>
<!--
- default configuration applied to all clusters
-->
<cluster-default>
<!-- shared webapp jars for non-classloader-aware libraries -->
<web-app-default>
<!--
- Enable EL expressions in Servlet and Filter init-param
-->
<allow-servlet-el/>
<prologue>
<allow-servlet-el/>
</prologue>
<class-loader>
<library-loader path="${resin.home}/webapp-jars"/>
</class-loader>
<!--
- Some JSP packages have incorrect .tld files. It's possible to
- set validate-taglib-schema to false to work around these packages.
-->
<jsp>
<validate-taglib-schema>true</validate-taglib-schema>
<fast-jstl>true</fast-jstl>
</jsp>
</web-app-default>
<!-- standard servlet behavior, including .jsp, .php, and WEB-INF -->
<resin:import path="classpath:META-INF/caucho/app-default.xml"/>
<!-- enables development error pages -->
<development-mode-error-page/>
<!--
- Uncomment to allow remote administration services
-
- <resin:RemoteAdminService/>
-->
<!--
- Default host configuration applied to all virtual hosts.
-->
<host-default>
<!--
<access-log path="log/access.log"
format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
rollover-period="1W"/>
-->
<!-- creates the webapps directory for .war expansion -->
<!--
<web-app-deploy path="webapps"
expand-preserve-fileset="WEB-INF/work/**"/>
-->
<!--
- Defaults applied to each web-app.
-->
<web-app-default>
<prologue>
<allow-servlet-el/>
</prologue>
<session-config>
<!--
- enable persistent sessions
- <use-persistent-store/>
-->
<enable-url-rewriting>false</enable-url-rewriting>
</session-config>
</web-app-default>
</host-default>
</cluster-default>
<!--
- Configures the main appliction cluster. Load-balancing configurations
- will also have a load-balance-tier cluster.
-->
<cluster id="shiyan">
<!-- sets the content root for the cluster, relative to resin.root -->
<root-directory>.</root-directory>
<!-- defaults for each server, i.e. JVM -->
<server-default>
<!-- The http port -->
<!--http address="*" port="8080"/-->
<!-- SSL port configuration (jsse): -->
<!--
<http address="*" port="8443">
<jsse-ssl self-signed-certificate-name="resin@localhost"/>
</http>
-->
<!-- SSL port configuration (OpenSSL): -->
<!--
<http address="*" port="8443">
<openssl>
<certificate-file>keys/gryffindor.crt</certificate-file>
<certificate-key-file>keys/gryffindor.key</certificate-key-file>
<password>my-password</password>
</openssl>
</http>
-->
<!--
- Configures the minimum free memory allowed before Resin
- will force a restart.
-->
<memory-free-min>1M</memory-free-min>
<!-- Maximum number of threads. -->
<thread-max>512</thread-max>
<!-- Configures the socket timeout -->
<socket-timeout>65s</socket-timeout>
<!-- Configures the keepalive -->
<keepalive-max>128</keepalive-max>
<keepalive-timeout>15s</keepalive-timeout>
<!--
- <jvm-arg>-Xmx512m</jvm-arg>
- <jvm-arg>-agentlib:resin</jvm-arg>
-->
<jvm-arg>-server</jvm-arg>
<jvm-arg>-d64</jvm-arg>
<jvm-arg>-Xms2048m</jvm-arg>
<jvm-arg>-Xmx2048m</jvm-arg>
<jvm-arg>-Xmn1024m</jvm-arg>
<jvm-arg>-Xss1m</jvm-arg>
<jvm-arg>-XX:PermSize=256m</jvm-arg>
<jvm-arg>-XX:MaxPermSize=256m</jvm-arg>
<jvm-arg>-XX:SurvivorRatio=8</jvm-arg>
<jvm-arg>-XX:GCTimeRatio=19</jvm-arg>
<jvm-arg>-XX:+UseParNewGC</jvm-arg>
<jvm-arg>-XX:+UseConcMarkSweepGC</jvm-arg>
<jvm-arg>-XX:ParallelGCThreads=20</jvm-arg>
<jvm-arg>-XX:TargetSurvivorRatio=90</jvm-arg>
<jvm-arg>-XX:MaxTenuringThreshold=31</jvm-arg>
<watchdog-jvm-arg>-Dcom.sun.management.jmxremote</watchdog-jvm-arg>
<watchdog-port>6611</watchdog-port>
</server-default>
<!-- define the servers in the cluster -->
<server id="shiyan-8011" address="127.0.0.1" port="6811">
<http id="" port="8011"/>
</server>
<!-- the default host, matching any host name -->
<host id="" root-directory=".">
<web-app id="/" root-directory="D:/www/pro/shiyan">
<form-parameter-max>100</form-parameter-max>
<stderr-log path='D:/www/log/resin/shiyan/stderr.log' timestamp='[%Y-%m-%d %H:%M:%S] ' rollover-period='1D'/>
<stdout-log path='D:/www/log/resin/shiyan/stdout.log' timestamp='[%Y-%m-%d %H:%M:%S] ' rollover-period='1D'/>
</web-app>
</host>
<!-- configures a deployment directory for virtual hosts -->
<!--
<host-deploy path="hosts">
<host-default>
<resin:import path="host.xml" optional="true"/>
</host-default>
</host-deploy>
-->
</cluster>
</resin>