Page 1 sur 1

Lenteurs et doublons après màj vers 3.2.58

Posté : dim. 30 nov. 2025 19:10
par RodrigueLoL
Bonjour tout le monde 😁

Contexte :
Après plusieurs années en GestSup 3.2.18 sur une plate‑forme vieillissante, nous avons migré directement vers GestSup 3.2.58 et mis à jour tout l’environnement : Debian 12, Apache 2.4.65, PHP 8.4.14 et MariaDB 10.11.14.
Avant nous étions sur Serveur : Windows 10 | GestSup : 3.2.1 | WAMP : 3.2.2 | Apache : 2.4.46 | PHP : 7.4.9 | MySQL : 5.7.14
La procédure officielle a été suivie (sauvegarde, extraction du zip, suppression du dossier install, mise à jour de la base) et le memory_limit a été porté à 512 MB.
L’outil d’administration ne signale aucun avertissement majeur.

Environnement
Notre instance gère aujourd’hui plus de 84 000 tickets pour 5 techniciens travaillant en même temps sur la base.
Le serveur dispose de 7,8 Go de RAM, la base de données pèse moins de 200 Mo et tous les modules PHP requis (imap, curl, mbstring, etc.) sont installés.

Problème
Depuis la migration, la création ou la modification de tickets est anormalement lente :
  • la page reste bloquée plusieurs secondes/minutes et affiche parfois le message « Ticket déjà créé », ou peu créer un doublon de ticket
  • certaines actions (commentaires, changements d’état) sont enregistrées en double.
Les logs Apache/PHP ne montrent aucune erreur et la charge CPU/RAM reste faible.

En parcourant le forum, nous avons relevé plusieurs pistes :
  • des lenteurs causées par l’envoi automatique de mails = Nous n'utilisons pas cette fonctionnalité
  • un gel lié au paramètre MariaDB innodb_buffer_pool_size = correctement dimensionné
  • des doublons provoqués par des clics répétés = un seul clic suffit à provoquer le problème.
Question
Existe‑t‑il un bug connu en 3.2.58 ou une optimisation (Apache/PHP, index SQL, options GestSup) recommandée pour des bases volumineuses ?
Comment corriger le problème ?

Merci d’avance pour vos retours 😊

Re: Lenteurs et doublons après màj vers 3.2.58

Posté : lun. 1 déc. 2025 10:37
par Flox
Bonjour,

pouvez-vous transmettre une impression écran de la page administration > Système et indiquer si vous avez des erreurs dans les logs Apache.

Cdt

Re: Lenteurs et doublons après màj vers 3.2.58

Posté : mar. 2 déc. 2025 09:00
par RodrigueLoL
Merci pour votre retour 🙂

Voici les infos de la page Administration > Système et un extrait des logs Apache.

Code : Tout sélectionner

Server :
OS:LinuxSRV-INV6.1.0-40-amd64#1SMPPREEMPT_DYNAMICDebian6.1.153-1(2025-09-20)x86_64
Apache:2.4.65(enHTTP/1.1sur192.168.1)
MariaDB:10.11.14-MariaDB-0+deb12u2(base:bsup_ifq5872.7Mo)
PHP:8.4.14(/etc/php/8.4/fpm/php.ini)
GestSup:3.2.58(85141tickets/775utilisateurs/0équipements)
Horloge:2025-12-0117:51:44(Europe/Paris)
Fichierschargés:1526.01Mo(total7398.71Mo)

Client :
Mobile:Non
Navigateur:Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/142.0.0.0Safari/537.36
IPv4:192.168.1.

Network :
HTTPS:Ouvert(gestsup.fr:443)

Config Error :
URLserveur:Ilsemblequel'URLduserveurdéfiniedanslesparamètresgénérauxsoiterronée(http://192.168.1.)
Télémétrie:Désactivée,activerlatélémétriedansAdministration>Paramètres>Général>Serveur

PHP parameters :
file_uploads:Activé
memory_limit:512M
upload_max_filesize:50M
post_max_size:50M
max_execution_time:480s
date.timezone:Europe/Paris

PHP extensions :
php_curl:Activée
php_fileinfo:Activée
php_gd:Activée
php_iconv:Activée
php_intl:Activée
php_json:Activée
php_ldap:Activée
php_mbstring:Activée
php_openssl:Activée
php_pdo_mysql:Activée
php_xml:Activée
php_zip:Activée

Plugins :
Collectivités:1.0Kanban:1.1

Security :
HTTPS:Désactivé(lesconnexionsversleserveurnesontpaschiffrées,installeruncertificatSSLinstalleruncertificatSSL.)
VersionApache:Affichée(pourplusdesécurité,masquezlaversionapachequevousutilisez.PasserServerTokensàProddanssecurity.conf.)
VersionPHP:NonaffichéeDuréedelasession:PHP=1440sGestSup=1400m
Droitsécriture:Nonverrouillés(cf.documentation)
.Répertoireinstallation:NonprésentMotsdepasse:Aucunepolitiquedéfinie(définissezunepolitiquedemotdepassedansAdministration>Paramètres>Général>Utilisateur)
Mot de passe admin:Modifié
Logs:Activés
RestrictionIP:Désactivé(pourplusdesécurité,ilestpossiblederestreindreaccesdesclientsàcertainesadressesIP,cfAdministration>Paramètres>Général>Serveur)
.Notificationdeconnexiond'unadministrateursurunenouvelleIP:Désactivée(activercetteoptiondansAdministration>Paramètres>Général>Utilisateurs)
.Loginadmin:Actif(créerunnouvelutilisateurayantleprofiladministrateur,puisdésactiverl'utilisateurayantleloginadmin)
Listing des répertoires:Désactivé

Components :
Ace:4.0.0
makeusabrew/bootbox:6.0.2
twbs/bootstrap:4.6.2
itsjavi/bootstrap-colorpicker:3.4.0
steveathon/bootstrap-wysiwyg:2.0.1
selectize/selectize.js:0.15.2swagger-api/swagger-ui:5.11.0
FortAwesome/Font-Awesome:6.7.2
fullcalendar/fullcalendar:6.1.17
highcharts/highcharts:12.2.0
jquery/jquery:3.7.1
jeresig/jquery.hotkeys:0.2.0
thephpleague/oauth2-client:2.8.1
thephpleague/oauth2-google:4.0.1
stevenmaguire/oauth2-microsoft:2.2.0
greew/oauth2-azure-provider:2.0.0ezyang/htmlpurifier:4.18.0
microsoftgraph/msgraph-sdk-php:1.110.0
moment/moment:2.30.1
PHPMailer/PHPMailer:6.10.0
barbushin/php-imap:5.0.1
inetsys/phpgettext:1.0.12
ifsnop/mysqldump-php:2.12
FezVrasta/popper.js:1.16.0
tempusdominus/bootstrap-4:5.39.0thenetworg/oauth2-azure:2.2.2
Webklex/php-imap:6.2.0
Extrait de /var/log/apache2/error.log

Code : Tout sélectionner

[Mon Nov 24 17:07:42.055089 2025] [core:error] [pid 2205650:tid 2205692] [client 192.168.1.216:40738] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Mon Nov 24 17:07:43.192776 2025] [core:error] [pid 2205650:tid 2205705] [client 192.168.1.216:40810] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Mon Nov 24 17:28:27.903968 2025] [core:error] [pid 2205652:tid 2205661] [client 192.168.1.80:59030] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://192.168.1.216/glpi/
[Mon Nov 24 17:28:30.000406 2025] [core:error] [pid 2205652:tid 2205675] [client 192.168.1.80:58493] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://192.168.1.216/glpi/
[Mon Nov 24 18:25:39.345349 2025] [core:error] [pid 2205650:tid 2205685] [client 192.168.1.80:56177] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://192.168.1.216/glpi/
[Mon Nov 24 18:25:40.342829 2025] [core:error] [pid 2205652:tid 2205656] [client 192.168.1.80:54676] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://192.168.1.216/glpi/
[Tue Nov 25 08:24:09.355492 2025] [core:error] [pid 2205650:tid 2205688] [client 192.168.1.80:63819] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://192.168.1.216/glpi/
[Thu Nov 27 17:29:20.446704 2025] [proxy_fcgi:error] [pid 2205650:tid 2205693] [client 192.168.1.40:63904] AH01071: Got error 'PHP message: CollectiviteManager::getRecent - SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near ''5'' at line 7', referer: http://192.168.1.216/bsup_ifq/index.php?page=dashboard&userid=844&state=5
[Sat Nov 29 18:16:41.876719 2025] [mpm_event:notice] [pid 2205648:tid 2205648] AH00492: caught SIGWINCH, shutting down gracefully
[Sat Nov 29 18:16:45.235217 2025] [core:warn] [pid 2205648:tid 2205648] AH00045: child process 2205652 still did not exit, sending a SIGTERM
[Sat Nov 29 18:16:47.237473 2025] [core:warn] [pid 2205648:tid 2205648] AH00045: child process 2205652 still did not exit, sending a SIGTERM
[Sat Nov 29 18:16:49.239275 2025] [core:warn] [pid 2205648:tid 2205648] AH00045: child process 2205652 still did not exit, sending a SIGTERM
[Sat Nov 29 18:16:51.241403 2025] [core:error] [pid 2205648:tid 2205648] AH00046: child process 2205652 still did not exit, sending a SIGKILL
[Sun Nov 30 19:27:02.454024 2025] [mpm_event:notice] [pid 2391123:tid 2391123] AH00489: Apache/2.4.65 (Debian) configured -- resuming normal operations
[Sun Nov 30 19:27:02.454110 2025] [core:notice] [pid 2391123:tid 2391123] AH00094: Command line: '/usr/sbin/apache2'
[Sun Nov 30 19:27:02.456798 2025] [:warn] [pid 2391124:tid 2391124] ./mod_dnssd.c: No services found to register
[Mon Dec 01 10:24:35.520338 2025] [core:error] [pid 2391126:tid 2391175] [client 192.168.1.80:65391] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace., referer: http://192.168.1.216/glpi/
[Mon Dec 01 10:57:25.013777 2025] [mpm_event:notice] [pid 2391123:tid 2391123] AH00492: caught SIGWINCH, shutting down gracefully
[Mon Dec 01 10:58:38.418964 2025] [mpm_event:notice] [pid 777:tid 777] AH00489: Apache/2.4.65 (Debian) configured -- resuming normal operations
[Mon Dec 01 10:58:38.422398 2025] [core:notice] [pid 777:tid 777] AH00094: Command line: '/usr/sbin/apache2'
[Mon Dec 01 10:58:38.439468 2025] [:warn] [pid 779:tid 779] ./mod_dnssd.c: No services found to register
[Mon Dec 01 10:58:38.645481 2025] [proxy:error] [pid 788:tid 832] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /run/php/php8.4-fpm.sock (localhost:8000) failed
[Mon Dec 01 10:58:38.645522 2025] [proxy_fcgi:error] [pid 788:tid 832] [client 192.168.1.39:58856] AH01079: failed to make connection to backend: localhost, referer: http://192.168.1.216/bsup_ifq/index.php?page=dashboard&state=%25&userid=%25&technician=&user=&techgroup=&sender_service=&category=&subcat=&asset=&title=&date_create=&priority=&criticality=&viewid=&type=&place=&service=&agency=&company=&view=&date_range=&date_start=&date_end=&keywords=&companyview=&groupview=&order=&way=&cursor=
[Mon Dec 01 12:46:31.805312 2025] [proxy_fcgi:error] [pid 789:tid 815] [client 192.168.1.80:59211] AH01071: Got error 'PHP message: PHP Warning:  stream_socket_client(): Unable to connect to tcp://ipv6.lafibre.info:443 (Network is unreachable) in /var/www/html/bsup_ifq/core/functions.php on line 626', referer: http://192.168.1.216/bsup_ifq/index.php?page=dashboard&userid=%25&state=%25&ticket=%25&technician=%25&user=%25&category=%25&subcat=%25&title=%25&date_create=%25&priority=%25&criticality=%25&company=%25
[Mon Dec 01 13:39:55.876206 2025] [proxy_fcgi:error] [pid 789:tid 797] [client 192.168.1.80:63748] AH01071: Got error 'PHP message: PHP Warning:  stream_socket_client(): Unable to connect to tcp://ipv6.lafibre.info:443 (Network is unreachable) in /var/www/html/bsup_ifq/core/functions.php on line 626', referer: http://192.168.1.216/bsup_ifq/index.php?page=admin&subpage=parameters&tab=general&subtab=server
[Mon Dec 01 14:27:04.938345 2025] [proxy_fcgi:error] [pid 788:tid 842] [client 192.168.1.80:62215] AH01071: Got error 'PHP message: PHP Warning:  stream_socket_client(): Unable to connect to tcp://ipv6.lafibre.info:443 (Network is unreachable) in /var/www/html/bsup_ifq/core/functions.php on line 626', referer: http://192.168.1.216/bsup_ifq/index.php?page=admin&subpage=system
[Mon Dec 01 14:44:32.507877 2025] [proxy_fcgi:error] [pid 788:tid 830] [client 192.168.1.80:53355] AH01071: Got error 'PHP message: PHP Warning:  require_once(/var/www/html/monitoring/includes/config/autoload.php): Failed to open stream: No such file or directory in /var/www/html/monitoring/includes/common.php on line 8; PHP message: PHP Fatal error:  Uncaught Error: Failed opening required '/var/www/html/monitoring/includes/config/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/monitoring/includes/common.php:8\nStack trace:\n#0 /var/www/html/monitoring/logs.php(5): require_once()\n#1 {main}\n  thrown in /var/www/html/monitoring/includes/common.php on line 8', referer: http://192.168.1.216/monitoring/
[Mon Dec 01 14:44:34.202671 2025] [proxy_fcgi:error] [pid 789:tid 817] [client 192.168.1.80:57490] AH01071: Got error 'PHP message: PHP Warning:  require_once(/var/www/html/monitoring/includes/config/autoload.php): Failed to open stream: No such file or directory in /var/www/html/monitoring/includes/common.php on line 8; PHP message: PHP Fatal error:  Uncaught Error: Failed opening required '/var/www/html/monitoring/includes/config/autoload.php' (include_path='.:/usr/share/php') in /var/www/html/monitoring/includes/common.php:8\nStack trace:\n#0 /var/www/html/monitoring/logs.php(5): require_once()\n#1 {main}\n  thrown in /var/www/html/monitoring/includes/common.php on line 8', referer: http://192.168.1.216/monitoring/
[Mon Dec 01 17:51:44.859167 2025] [proxy_fcgi:error] [pid 789:tid 818] [client 192.168.1.80:60972] AH01071: Got error 'PHP message: PHP Warning:  stream_socket_client(): Unable to connect to tcp://ipv6.lafibre.info:443 (Network is unreachable) in /var/www/html/bsup_ifq/core/functions.php on line 626', referer: http://192.168.1.216/bsup_ifq/index.php?page=admin&subpage=parameters
Voici les informations de performance de notre instance GestSup après migration (base bsup_ifq).

Code : Tout sélectionner

=== MariaDB ===
• Taille totale base : 5,7 Go
• innodb_buffer_pool_size : 128 Mo
• innodb_log_file_size : 96 Mo
• innodb_flush_log_at_trx_commit : 1
• innodb_file_per_table : ON
• innodb_flush_method : O_DIRECT
• max_connections : 151

=== Volumétrie tables principales ===
tthreads : 500 409 lignes (3,6 Go)
tincidents : 85 579 lignes (2,0 Go)

=== PHP-FPM ===
• “slow: 20” dans php8.4-fpm.service (20 requêtes lentes déjà détectées)
Merci d’avance 😁

Re: Lenteurs et doublons après màj vers 3.2.58

Posté : jeu. 4 déc. 2025 17:18
par Flox
Bonjour,

est il possible de récupérer votre base de données afin d'isoler un problème de serveur ?

Cdt

Re: Lenteurs et doublons après màj vers 3.2.58

Posté : ven. 5 déc. 2025 09:54
par RodrigueLoL
Oui, pas de souci 😊
Par quel biais puis-je vous la transmettre ?

Re: Lenteurs et doublons après màj vers 3.2.58

Posté : lun. 8 déc. 2025 10:01
par Flox
Il semble que la mémoire allouée à la base de données soit incorrecte essayer de modifier le paramètre suivant :

nano /etc/mysql/mariadb.conf.d/50-server.cnf

innodb_buffer_pool_size = 2G

+ redémarrage