|
@@ -23,7 +23,7 @@ public class Bootstrap {
|
|
public static void main(String[] args) {
|
|
public static void main(String[] args) {
|
|
System.setProperty("smart-socket.server.pageSize", (16 * 1024 * 1024) + "");
|
|
System.setProperty("smart-socket.server.pageSize", (16 * 1024 * 1024) + "");
|
|
System.setProperty("smart-socket.session.writeChunkSize", (1024 * 8) + "");
|
|
System.setProperty("smart-socket.session.writeChunkSize", (1024 * 8) + "");
|
|
-// System.setProperty("sun.nio.ch.maxCompletionHandlersOnStack","32");
|
|
|
|
|
|
+ System.setProperty("sun.nio.ch.maxCompletionHandlersOnStack","8");
|
|
HttpMessageProcessor processor = new HttpMessageProcessor(System.getProperty("webapps.dir", "./"));
|
|
HttpMessageProcessor processor = new HttpMessageProcessor(System.getProperty("webapps.dir", "./"));
|
|
processor.route("/plaintext", new HttpHandle() {
|
|
processor.route("/plaintext", new HttpHandle() {
|
|
|
|
|