Looks like my apache reverse proxy may be acting as the bottleneck and bogging down the number of requests users can make.
I run Apache and Tomcat on server1, which has 96 gb RAM, rhel5 x64, 24 cores. Pretty beefy.
The Postgresql database runs on server2, with 50gb ram, rhel5 x64, 24 cores.
Tomcat is configured to use 60gb ram (I can increase and decrease this as needed). I am handling hundreds of hits per minute (both from users as well as remote API calls) and looks like Apache cannot keep up.
What settings should I boost in the httpd.conf to allow it to make sure of additional memory? I've also read that number of threads in apache correlates directly with the database threads. My postgres server is definitely beefy and is not used to its potential, but I don't want to increase one at the expense of the other. So how do I figure out the correct settings for both?
Apache is handling my SSL, serving on 443. Tomcat has a connector with port 8080.
Should I be increasing the number of workers for apache? Or giving them more memory?