Home > Contributions > Xalan

Contribution fuite mémoire Xalan

Le problème se pose sur l’objet XMLReaderManager, celui-ci ne résiste pas à la charge et à un environnement multithreadé. Il garde en cache une map de tous les fichiers xml chargé, et ne la libère jamais.

Voici le scénario rencontré en production :

  1. Serveur WEB1 démarré à 13h00 :
    • à 15H : le HashTable XMLReaderManager fait 12Mo et contient 800 entrées.
    • à 16H : Le HashTable XMLReaderManager fait 30Mo et contient 1800 entrées.
  2. Serveur WEB2 demarré vers 17h avec injection jusqu’à minuit :
    • à 18h20 : Le HashTable XMLReaderManager fait 71Mo et contient 3071 entrées.
    • à J+1 09h10 : Le HashTable XMLReaderManager fait 148 Mo et contient 6143 entrées.

Ce correctif est tiré des 2 issues communataires.

Link :
This contribution has been submitted on 2007-07-07 by Michel LOISELEUR .
This patch has been made for version 2.6.0