Browse Source

[java] Update hserver and hserver-business version (#9451)

* 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

* Optimal configuration of hserver framework

* Optimal configuration of hserver framework

* Upgrade hserver Framework version and optimize configuration

* Upgrade hserver Framework version and optimize configuration

* Upgrade hserver Framework version and optimize configuration

* Upgrade hserver Framework version and optimize configuration

* Upgrade hserver Framework version and optimize configuration

* Upgrade hserver Framework version and optimize configuration

* Upgrade hserver Framework version and optimize configuration

* Upgrade hserver Framework version and optimize configuration

* Upgrade hserver Framework version and optimize configuration

* Upgrade hserver Framework version and optimize configuration

* Upgrade hserver Framework version and optimize configuration

* Upgrade hserver Framework version and optimize configuration

* Upgrade hserver Framework version and optimize configuration

* Upgrade hserver Framework version and optimize configuration

* Upgrade hserver Framework version and optimize configuration

* Update pom.xml

Upgrade dependencies, optimize performance.

* Upgrade hserver Framework version and optimize configuration

* Upgrade hserver Framework version and optimize configuration and Optimize log printing

* Update pom.xml

* Update StartApp.java

* 1

* 1

* 1

* update jdk version

* update version

* update version

* update version

* Update app.properties

* Update config.toml

* Update benchmark_config.json

* Update benchmark_config.json

* Update config.toml

* Upgrade hserver Framework version and optimize configuration

* Upgrade hserver Framework version and optimize configuration

* Upgrade hserver Framework version and optimize configuration

* update version

* add hserver-business test

* [java] Update hserver and hserver-business version

* [java] Update hserver and hserver-business version

---------

Co-authored-by: 黑小马 <[email protected]>
黑小马 8 months ago
parent
commit
b747ccf5a9

+ 1 - 1
frameworks/Java/hserver-business/README.md

@@ -1,4 +1,4 @@
-# HServer Benchmarking Test
+# hserver-business Benchmarking Test
 This is the HServer portion of a [benchmarking test suite](../) comparing a variety of web development platforms.
 This is the HServer portion of a [benchmarking test suite](../) comparing a variety of web development platforms.
 
 
 ### Tests
 ### Tests

+ 5 - 5
frameworks/Java/hserver-business/benchmark_config.json

@@ -1,6 +1,6 @@
 
 
 {
 {
-  "framework": "hserver",
+  "framework": "hserver-business",
   "tests": [
   "tests": [
     {
     {
       "default": {
       "default": {
@@ -14,17 +14,17 @@
         "approach": "Realistic",
         "approach": "Realistic",
         "classification": "Fullstack",
         "classification": "Fullstack",
         "database": "Postgres",
         "database": "Postgres",
-        "framework": "hserver",
+        "framework": "hserver-business",
         "language": "Java",
         "language": "Java",
         "flavor": "None",
         "flavor": "None",
         "orm": "Full",
         "orm": "Full",
-        "platform": "hserver",
-        "webserver": "hserver",
+        "platform": "hserver-business",
+        "webserver": "hserver-business",
         "os": "Linux",
         "os": "Linux",
         "database_os": "Linux",
         "database_os": "Linux",
         "display_name": "hserver-business",
         "display_name": "hserver-business",
         "notes": "",
         "notes": "",
-        "versus": "hserver"
+        "versus": "hserver-business"
       }
       }
     }
     }
   ]
   ]

+ 3 - 3
frameworks/Java/hserver-business/config.toml

@@ -12,6 +12,6 @@ approach = "Realistic"
 classification = "Fullstack"
 classification = "Fullstack"
 os = "Linux"
 os = "Linux"
 orm = "Full"
 orm = "Full"
-platform = "hserver"
-webserver = "hserver"
-versus = "hserver"
+platform = "hserver-business"
+webserver = "hserver-business"
+versus = "hserver-business"

+ 14 - 0
frameworks/Java/hserver-business/hserver-business.dockerfile

@@ -0,0 +1,14 @@
+FROM maven:3.6.1-jdk-11-slim as maven
+WORKDIR /hserver-business
+COPY pom.xml pom.xml
+COPY src src
+RUN mvn package
+
+FROM openjdk:11.0.3-jdk-slim
+WORKDIR /hserver-business
+COPY --from=maven /hserver-business/target/hserver-business-1.0.jar app.jar
+
+EXPOSE 8888
+
+CMD ["java", "-server", "-XX:+UseNUMA", "-XX:+UseParallelGC", "-XX:+AggressiveOpts", "-Dio.netty.buffer.checkBounds=false", "-Dio.netty.buffer.checkAccessible=false", "-Dio.netty.iouring.iosqeAsyncThreshold=32000", "-jar", "app.jar"]
+

+ 0 - 13
frameworks/Java/hserver-business/hserver.dockerfile

@@ -1,13 +0,0 @@
-FROM maven:3.8.4-openjdk-17-slim as maven
-WORKDIR /hserver
-COPY pom.xml pom.xml
-COPY src src
-RUN mvn package
-
-FROM openjdk:17.0.2
-WORKDIR /hserver
-COPY --from=maven /hserver/target/hserver-1.0.jar app.jar
-
-EXPOSE 8888
-
-CMD ["java", "-jar", "app.jar"]

+ 2 - 2
frameworks/Java/hserver-business/pom.xml

@@ -5,13 +5,13 @@
     <modelVersion>4.0.0</modelVersion>
     <modelVersion>4.0.0</modelVersion>
 
 
     <groupId>com.test.hserver</groupId>
     <groupId>com.test.hserver</groupId>
-    <artifactId>hserver</artifactId>
+    <artifactId>hserver-business</artifactId>
     <version>1.0</version>
     <version>1.0</version>
 
 
     <parent>
     <parent>
         <artifactId>hserver-parent</artifactId>
         <artifactId>hserver-parent</artifactId>
         <groupId>cn.hserver</groupId>
         <groupId>cn.hserver</groupId>
-        <version>3.6.0</version>
+        <version>3.6.M3</version>
     </parent>
     </parent>
     <properties>
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

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

@@ -1,13 +1,13 @@
-FROM maven:3.8.4-openjdk-17-slim as maven
+FROM maven:3.6.1-jdk-11-slim as maven
 WORKDIR /hserver
 WORKDIR /hserver
 COPY pom.xml pom.xml
 COPY pom.xml pom.xml
 COPY src src
 COPY src src
 RUN mvn package
 RUN mvn package
 
 
-FROM openjdk:17.0.2
+FROM openjdk:11.0.3-jdk-slim
 WORKDIR /hserver
 WORKDIR /hserver
 COPY --from=maven /hserver/target/hserver-1.0.jar app.jar
 COPY --from=maven /hserver/target/hserver-1.0.jar app.jar
 
 
 EXPOSE 8888
 EXPOSE 8888
 
 
-CMD ["java", "-jar", "app.jar"]
+CMD ["java", "-server", "-XX:+UseNUMA", "-XX:+UseParallelGC", "-XX:+AggressiveOpts", "-Dio.netty.buffer.checkBounds=false", "-Dio.netty.buffer.checkAccessible=false", "-Dio.netty.iouring.iosqeAsyncThreshold=32000", "-jar", "app.jar"]

+ 1 - 1
frameworks/Java/hserver/pom.xml

@@ -11,7 +11,7 @@
     <parent>
     <parent>
         <artifactId>hserver-parent</artifactId>
         <artifactId>hserver-parent</artifactId>
         <groupId>cn.hserver</groupId>
         <groupId>cn.hserver</groupId>
-        <version>3.6.0</version>
+        <version>3.6.M3</version>
     </parent>
     </parent>
     <properties>
     <properties>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

+ 7 - 0
frameworks/Java/hserver/src/main/java/com/test/hserver/controller/TestController.java

@@ -33,6 +33,13 @@ public class TestController {
     @Autowired
     @Autowired
     private DataSource dataSource;
     private DataSource dataSource;
 
 
+
+    @GET("/jso2n")
+    private   Message jso2n(long ud,int a,HttpResponse response) {
+        response.setHeader("Date", DateUtil.getTime());
+        return new Message();
+    }
+
     @GET("/json")
     @GET("/json")
     public Message json(HttpResponse response) {
     public Message json(HttpResponse response) {
         response.setHeader("Date", DateUtil.getTime());
         response.setHeader("Date", DateUtil.getTime());