From 22f9a63bd4986381b74266d97158e8d0ad0d7f48 Mon Sep 17 00:00:00 2001 From: Daniel Barcelona Date: Wed, 30 May 2018 11:54:39 +0200 Subject: [PATCH] add hotrod worker threads parameter --- server/src/main/java/org/infinispan/creson/Server.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/src/main/java/org/infinispan/creson/Server.java b/server/src/main/java/org/infinispan/creson/Server.java index c7f2d92..73ea101 100644 --- a/server/src/main/java/org/infinispan/creson/Server.java +++ b/server/src/main/java/org/infinispan/creson/Server.java @@ -54,6 +54,9 @@ public class Server { @Option(name = "-userLibs", usage = "directory containing the user libraries") private String userLib = userLibraries; + @Option(name = "-wt", usage = "number of HotRod worker threads") + private int workerThreads = 100; + private volatile boolean running = false; public Server() { @@ -145,7 +148,7 @@ public void doMain(String[] args) { hbuilder.proxyPort(proxyPort); } - hbuilder.workerThreads(100); + hbuilder.workerThreads(workerThreads); hbuilder.tcpNoDelay(true); final HotRodServer server = new HotRodServer();