Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] - Standalone container performance #13122

Open
mobilemindtec opened this issue Sep 11, 2023 · 2 comments
Open

[Question] - Standalone container performance #13122

mobilemindtec opened this issue Sep 11, 2023 · 2 comments

Comments

@mobilemindtec
Copy link

Issue description

I have a question about the performance of grails running a standalone container.

When I run ./gradlew bootRun my application responds 454413 in one minute. When I compile the application using ./gradlew war and run java -Dgrails.env=prod -server -Xmx2048M -jar build/libs/g6-app-0.1.war the same application only responds to 3132 requests in one minute.

I don't understand what it could be.

Grails 6.0.0
JVM java 20.0.2
Container Undertow

@fernando88to
Copy link

I believe a possible reason for this is here spring-projects/spring-boot#16471

Generally in my projects I use a tomcat docker image and upload the ".war" to tomcat. Test to see the performance.

@mobilemindtec
Copy link
Author

Hi,

I changed the build command to ./gradlew bootJar and ran the .jar instead of the .war. It seems that the slowness is related to .war. By making this change, the number of requests increased incredibly. Thanks!

Statistics        Avg      Stdev        Max
  Reqs/sec      9490.78    9544.63   94628.63
  Latency      333.12ms   299.59ms      2.92s
  Latency Distribution
     50%   199.36ms
     75%   313.30ms
     90%   813.43ms
     95%      0.99s
     99%      1.72s
  HTTP codes:
    1xx - 0, 2xx - 540046, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:     4.56MB/s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants