1

I'm wondering where I can configure how many requests my Grails application handles at the same time. I wonder if I can configure directly the embedded tomcat in this way. Or is there somewhere in the Grails configs I can change the setting of this? I'm trying to configure this because I feel a significant delay when there are multiple, like 3, requests coming in at the same time.

I'm using Grails 2.4.4. My controllers are all in default scope (I didn't manually configure it as singleton or session) and my actions are all in closure format.

Appreciate your advice!

Community
  • 1
  • 1
OrlandoL
  • 898
  • 2
  • 12
  • 32
  • Are all the requests coming from a single browser? If so, it's most likely the browser that is limiting the number of concurrent requests to a single host. You might start by verifying that's not the issue. Grails doesn't control the number of concurrent requests. Tomcat has a maximum default of around 150. I think it's your browser. – Joshua Moore Apr 03 '16 at 11:11
  • @JoshuaMoore Your point makes a lot of sense! I think it can be the cause of the problem and I'm checking it now. However, I wonder what will happen if there's no more memory or resource that Grails can assign to a new request handling thread? Will it be queued or will it just throw an exception? – OrlandoL Apr 03 '16 at 12:08

0 Answers0