// default timeout
private long _timeout = 65000L;
private int _connectionMax = 512;//查找resin所有源码后,发现没有对这个值进行设置
private int _minSpareConnection = 16;
private int _keepaliveMax = -1;
private int _minSpareListen = 5;
private int _maxSpareListen = 10;
这个加大以后能到3000
<thread-pool>
<!-- Maximum number of threads. -->
<thread-max>20480</thread-max>
<!-- Minimum number of spare connection threads. -->
<spare-thread-min>10</spare-thread-min>
</thread-pool>
然后就会报这个错误
java.lang.OutOfMemoryError: unable to create new native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:574)
at com.caucho.util.ThreadPool$ThreadLauncher.startConnection(ThreadPool.java:621)
at com.caucho.util.ThreadPool$ThreadLauncher.run(ThreadPool.java:660)