Browse Source

Optimal configuration of hserver framework (#7155)

* hserver framework submit

* hserver framework submit

* lowercase fix

* Required response header missing: Date fix

* Date format fix

* update hserver version

* update hserver threadPool

* update hserver

* update hserver

* update hserver query

* update hserver query

* Update README.md

* update hserver query

* update hserver query

* update hserver query

* update hserver query

* update hserver query

* update hserver query

* Optimal configuration of hserver framework

Co-authored-by: 黑小马 <[email protected]>
黑小马 3 years ago
parent
commit
309f956c70

+ 2 - 2
frameworks/Java/hserver/hserver.dockerfile

@@ -1,10 +1,10 @@
-FROM maven:3.6.3-openjdk-8-slim as maven
+FROM maven:3.6.1-jdk-11-slim as maven
 WORKDIR /hserver
 COPY pom.xml pom.xml
 COPY src src
 RUN mvn package
 
-FROM openjdk:8u275-jdk-slim
+FROM openjdk:11.0.3-jdk-slim
 WORKDIR /hserver
 COPY --from=maven /hserver/target/hserver-1.0.jar app.jar
 

+ 0 - 1
frameworks/Java/hserver/src/main/java/com/test/hserver/StartApp.java

@@ -11,7 +11,6 @@ import top.hserver.core.server.context.ConstConfig;
 public class StartApp {
 
     public static void main(String[] args) {
-        ConstConfig.workerPool=Runtime.getRuntime().availableProcessors()*2;
         HServerApplication.run(StartApp.class, 8888, args);
     }
 }

+ 1 - 1
frameworks/Java/hserver/src/main/resources/app.properties

@@ -3,4 +3,4 @@ username= benchmarkdbuser
 password= benchmarkdbpass
 maximumPoolSize= 256
 level=info
-businessPool=-1
+