Reputation: 1013
Presently I have deployed my grails war file in tomcat 8.0, with ubuntu OS with 2 GB RAM.
I wish to know the configuration required to alter in below code like maxConnections and maxThread, etc, inorder to improve the performance.
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"/>
And also, I wish to know maximum number of concurrent users, where tomcat can handle.
I have read the tomcat documentation, which I could not able to understand most of the things.
Any help is appreciated.
Upvotes: 1
Views: 2337
Reputation: 48067
"It depends" (TM)
The maximum number of connections that tomcat can access - just as the number of concurrent users - fully depends on what your application is doing: It might calculate fractal images for every single request, or it might just show static content. You know best what your application does, and you know what hardware your server has.
Some applications are CPU-heavy, others are limited by RAM, or DB performance or I/O. Measure yours. Then raise or lower the number or accepted connections according to your measures. Adjust the allocated memory. Tune your database. Add another network adapter. All these activities of course only, if your measures show that this fixes the bottleneck you found during debugging.
Bringing in the points from my comment: This is what it depends on (incomplete list) - even if you'd answer every single bullet point, it'll still be impossible to predict a number:
There is no definitive answer to this question - at all. You will have to measure your installation yourself.
Upvotes: 2