PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > Crashes apache +tomcat+ linux
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

Crashes apache +tomcat+ linux

Réponse
 
LinkBack Outils de la discussion
Vieux 26/09/2006, 08h30   #1 (permalink)
Sako
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Crashes apache +tomcat+ linux

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

  Réponse avec citation
Vieux 02/10/2006, 18h17   #2 (permalink)
Yamaska
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Crashes apache +tomcat+ linux

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 )
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 09h33.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,09303 seconds with 10 queries