...
There are many resources available online e.g. http://www.itworld.com/networking/83035/tomcat-performance-tuning-tips
Linux Configuration
Linux / Unix systems have a limit on the number of files that can be concurrently opened by a process. When the limit is hit, there will be an exception "Too many open files". The default for most distributions is 1024, which will not be enough for high traffic deployments. In Linux, increasing the ulimit
Code Block |
---|
ulimit -n 4096
|
works as a workaround but this is only valid for the session. For permanent configuration, please refer to documentation for the specific distribution e.g. http://posidev.com/blog/2009/06/04/set-ulimit-parameters-on-ubuntu/
Database Configuration
Database Indexing
...
In environments with large data and queries, one way to improve performance is to use the query cache. This can help speed up query performance tremendously. Details can be found at http://dev.mysql.com/doc/refman/5.0/en/query-cache.html
You may need to increase the number of maximum connections allowed if there are a lot of concurrent requests. https://dev.mysql.com/doc/refman/5.0/en/too-many-connections.html
...