It seems to me the thread-max is always 128 no matter what I set:
Below is my config.
<server-default>
<jvm-arg-line>-Xmx2048m</jvm-arg-line>
<thread-max>64</thread-max>
</server-default>
<server id="" address="127.0.0.1" port="6800">
<-- More settings -->
<!-- Maximum number of threads. -->
<thread-max>20</thread-max>
</server>
Am I missing something about this? How do I get the config work?
I can set the value in by code:
com.caucho.util.ThreadPool.setThreadMax(6);
Had another problem with the com.caucho.util.ThreadPool.setThreadMax(6)
. If I debug or run through Eclipse, it is OK. However, when I run in the Cmd with ant, it reports: [java] java.lang.NoClassDefFoundError: com/caucho/util/ThreadPool
exception.
I am using Resin 4.0.32 with Java 1.6_16. Eclipse version is 4.2 if this matters.
Any suggestion or comments are appreciated.