Jump to content

(RESOLU)Requête bloquante qui sature le site


Recommended Posts

Bonjour

 

Après avoir configurer le nettoyage automatique des données statistiques mon site s'est mis à planter: connexion à la BD impossible puis accès coupé car le site est désactivé par l'hébergeur.

 

Le site est en PS 1.2.5 et voila la réponse de mon hebergeur :

 

 

Bonjour,


Tout ce que nous voyons de notre côté, c'est que dès que nous réactivons le site, ces requêtes sont aussitôt envoyées à la base de données.

En regardant plusieurs processus php qui tourne sur votre compte, je vois que :

- il s'agit d'appels provenant de bots de moteurs de recherche (voila, baidu)

- à chaque fois, le script appelé est category.php


Par exemple :


DOCUMENT_ROOT=/vhosts/a/q/aquadog/www

HTTP_ACCEPT=*/*

HTTP_ACCEPT_ENCODING=gzip

HTTP_ACCEPT_LANGUAGE=en-US

HTTP_CONNECTION=close

HTTP_HOST=

HTTP_USER_AGENT=Mozilla/5.0 (compatible; Baiduspider/2.0; +
)

MAILUSER=postmaster

PATH=/bin:/usr/bin

QMAILDEFAULTDOMAIN=

REDIRECT_MAILUSER=postmaster

REDIRECT_QMAILDEFAULTDOMAIN=

REDIRECT_QUERY_STRING=id_category=201&amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bp=6&amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bp=3&amp%3Bamp%3Bamp%3Bamp%3Bp=6&amp%3Bamp%3Bamp%3Bp=2&amp%3Bamp%3Bp=4&orderby=quantity&orderway=desc&p=3&id_lang=1

REDIRECT_SG_DEFAULT_PHP_VERSION=5

REDIRECT_STATUS=200

REDIRECT_URL=/category.php

REMOTE_ADDR=180.76.6.139

REMOTE_PORT=47457

SCRIPT_FILENAME=/vhosts/a/q/aquadog/www/category.php

SERVER_ADDR=81.93.240.44


SERVER_NAME=

SERVER_PORT=80

SERVER_SOFTWARE=Apache

SG_DEFAULT_PHP_VERSION=5

GATEWAY_INTERFACE=CGI/1.1

SERVER_PROTOCOL=HTTP/1.1

REQUEST_METHOD=GET

QUERY_STRING=id_category=201&amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bp=6&amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bp=3&amp%3Bamp%3Bamp%3Bamp%3Bp=6&amp%3Bamp%3Bamp%3Bp=2&amp%3Bamp%3Bp=4&orderby=quantity&orderway=desc&p=3&id_lang=1

REQUEST_URI=/category.php?id_category=201&amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bamp%3Bp=6&amp%3Bamp%3Bamp%3Bamp%3Bamp%3Bp=3&amp%3Bamp%3Bamp%3Bamp%3Bp=6&amp%3Bamp%3Bamp%3Bp=2&amp%3Bamp%3Bp=4&orderby=quantity&orderway=desc&p=3&id_lang=1

SCRIPT_NAME=/category.php

PATH_TRANSLATED=/vhosts/a/q/aquadog/www/category.php

PHPRC=/usr/local/lib/users/aquadog/php-5.2

Quelqu'un a t'il une idée de ce qu'il faut faire pour se sortir de ce problème ?
 
Merci
 
Laurent
Edited by lgaignebet (see edit history)
Link to comment
Share on other sites

Voici la requête qui était bloquante :

 

| 846 | n_aquadog1875  | www14:40089 | n_aquadog1875  | Query   |   15 | preparing | DELETE FROM `prefpres_connections_page`

 

En remettant la configuration du nettoyage des stats sur "jamais" le problème a disparu.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...