1

I am using grails 2.4.4 and glassfish 4.1 and Java 8.


For Database Call

When i put a very first request to server it is taking long TTFB time (around 19s).

After that for each request it takes only(around 800 ms)TTFB.

For Static Pages

Even for static pages it takes (5 sec)TTFB. and when i refresh page again it takes (80 ms)TTFB.

After first request it loads every page very smoothly in any browser or any machines.(around 80-900 ms). That means it server side problem.

Can anyone tell why this happening.

Is it framework related issue or something else.

Thanks.

Hardik Patel
  • 937
  • 3
  • 14
  • 39
  • I would start by enabling debugging for DB / cache and generally enabling logging for all the logs warn debug etc - try to capture what it is doing - it could be cache is being initialised - it could be something else - very diffcult to say without knowing exactly what the app is attempting to do as it starts up. I would also test the time after it has started and running for a few minutes vs started just now and lets hit it – V H May 30 '16 at 12:31
  • Hi vahid: Sorry for late reply. I have create new grails application without any changes and made first request (Like http://localhost:8080/TestPerformance/) it has taken 7 second to load page. And When i refresh the same page it has taken only 634ms. – Hardik Patel Jun 16 '16 at 11:20
  • what processing grails does on loading very first request.? As compare to other application like (JSF), it takes very huge time. – Hardik Patel Jun 16 '16 at 11:23
  • 1
    Take a look here http://stackoverflow.com/questions/8840183/is-performance-of-grails-2-0-really-that-awfully-low – V H Jun 16 '16 at 12:16

0 Answers0