|
|
|
|
||||||
| alt.apache.configuration Apache web server configuration issues. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi gents I have problems with my web site, my webserver is a
redhat enterprise, I use tomcat+apache to server my website. Monday's morning (usually) when everyone loggs in and doesn't disconnect as they should my httpd and java processes rise up a lot, but when the httpd processes get over 95 and the java ones get over 145 (more or less) then my server doesn't recover and the processes keep rising, so the only thing I found to solve this is to restart apache and tomcat. |-httpd---99*[httpd] |-java---java---153*[java] Is there any way to prevent this to happen? is there any script that could be counfigured to automatically restart? I'm a newbie in webservers, so I'll try to ask any questions the best I can. Thanks in advance and regards |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Sako wrote:
> Hi gents I have problems with my web site, my webserver is a > redhat enterprise, I use tomcat+apache to server my website. > Monday's morning (usually) when everyone loggs in and doesn't > disconnect as they should my httpd and java processes rise up a lot, > but when the httpd processes get over 95 and the java ones get over 145 > (more or less) then my server doesn't recover and the processes keep > rising, so the only thing I found to solve this is to restart apache > and tomcat. > > |-httpd---99*[httpd] > |-java---java---153*[java] > > Is there any way to prevent this to happen? is there any script > that could be counfigured to automatically restart? > > I'm a newbie in webservers, so I'll try to ask any questions the > best I can. > > Thanks in advance and regards > It's a JVM issue,.. ( your tomcat ) ... it seems to be getting tooo much load,.. so it can't handle the requests anymore,.. this results in a "no more threads available" within tomcat.. effectively rendering new requests useless,.. on the front end apache is still getting requests but can't pass em on to hte back-end anymore.. Look into tweaking your tomcat and in the meantime set the timeouts within apache to a lower number, so apache won't hang as fast once tomcat hangs... Hope this s Pete P.S. we had pretty ,much the same prob at work with a 3rd party site written in java,.. sonce no more budget for a good code review,,.. from our internal client, we've temp resolved the issue by having tomcat restart everynight ( cron job in cron.daily runs at 4 AM so noone has a prob with it since it's a site for schools,,.. last time I checked schoolkids aren't in around that time lol ) |
|
![]() |
| Outils de la discussion | |
|
|