Revision 38:346f2a2fb939
pom.xml | ||
---|---|---|
46 | 46 |
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> |
47 | 47 |
<port>9090</port> |
48 | 48 |
<maxIdleTime>60000</maxIdleTime> |
49 |
<threadPool>150</threadPool> |
|
50 | 49 |
</connector> |
51 | 50 |
</connectors> |
52 | 51 |
<stopPort>9005</stopPort> |
53 | 52 |
<stopKey>STOP</stopKey> |
54 | 53 |
<contextPath>${project.artifactId}</contextPath> |
54 |
<jettyConfig>target/classes/jetty.xml</jettyConfig> |
|
55 | 55 |
</configuration> |
56 | 56 |
</plugin> |
57 | 57 |
</plugins> |
... | ... | |
425 | 425 |
</goals> |
426 | 426 |
</execution> |
427 | 427 |
</executions> |
428 |
</plugin>
|
|
428 |
</plugin> |
|
429 | 429 |
<plugin> |
430 | 430 |
<groupId>org.codehaus.mojo</groupId> |
431 | 431 |
<artifactId>exec-maven-plugin</artifactId> |
resources/jetty.xml | ||
---|---|---|
1 |
<?xml version="1.0"?> |
|
2 |
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> |
|
3 |
|
|
4 |
<Configure id="Server" class="org.mortbay.jetty.Server"> |
|
5 |
|
|
6 |
<!-- =========================================================== --> |
|
7 |
<!-- Server Thread Pool --> |
|
8 |
<!-- =========================================================== --> |
|
9 |
<Set name="ThreadPool"> |
|
10 |
<New class="org.mortbay.thread.QueuedThreadPool"> |
|
11 |
<!-- initial threads set to 10 --> |
|
12 |
<Set name="minThreads">50</Set> |
|
13 |
|
|
14 |
<!-- the thread pool will grow only up to 200 --> |
|
15 |
<Set name="maxThreads">150</Set> |
|
16 |
|
|
17 |
<!-- indicates that having 20 and below, the pool will be considered low |
|
18 |
on threads --> |
|
19 |
<!-- <Set name="lowThreads">100</Set> --> |
|
20 |
|
|
21 |
<!-- The number of queued jobs (or idle threads) needed before the thread |
|
22 |
pool is grown (or shrunk) --> |
|
23 |
<Set name="SpawnOrShrinkAt">2</Set> |
|
24 |
</New> |
|
25 |
</Set> |
|
26 |
</Configure> |
Also available in: Unified diff