Is performance of Grails 2.0 really that awfully low?

后端 未结 4 1673
野的像风
野的像风 2021-02-05 13:32

I\'m somewhat newbie for WEB development based on JVM stack, but future project will require specifically some JVM-based WEB engine. So I started looking on some ground to make

相关标签:
4条回答
  • 2021-02-05 14:00

    Are you running it with run-app?

    http://grails.org/Deployment states:

    "Grails should never be deployed using the grails run-app command as this sets Grails up in "development" mode which has additional overheads. "

    0 讨论(0)
  • 2021-02-05 14:02

    try deploying your sample app to tomcat. grails run-app is for development only.

    0 讨论(0)
  • 2021-02-05 14:03

    Yeah this is a benchmark by someone who doesn't know alot about grails or his environment; first he is running on Windows know for being bad at resource management which is why most web serves/app serves run in Linux environments.

    Second, if he is using 'ab' to benchmark, then he doesn't have his proxy cache setup because after the first hit, the remainder of the hits would be cached and the he is now benchmarking his cache from my understanding of his setup.

    So this all just looks like the benchmarking of a bad setup and a poor understanding of Grails. No offense intended.

    0 讨论(0)
  • 2021-02-05 14:05

    in which environment did you start the app? prod? dev?

    do you use scaffolding?

    i've tried it on my machine (core i7-2600k). a login page with 4 input fields, dynamic layouts and some other things. i've got 525 requests per second in the slower dev environment.

    0 讨论(0)
提交回复
热议问题