IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Langage PHP Discussion :

Utilisation de mémoire (Out of memory)


Sujet :

Langage PHP

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Profil pro
    Inscrit en
    Octobre 2008
    Messages
    61
    Détails du profil
    Informations personnelles :
    Localisation : France, Mayenne (Pays de la Loire)

    Informations forums :
    Inscription : Octobre 2008
    Messages : 61
    Par défaut Utilisation de mémoire (Out of memory)
    Bonjour,

    Ce matin au niveau de ma log PHP j'ai eu l'erreur suivante :

    [11-Apr-2014 09:01:32 Europe/Paris] PHP Fatal error: Out of memory (allocated 1572864) (tried to allocate 1048577 bytes)
    En regardant ma config de php : memory_limit = 2048M

    Comment j'ai pu me retrouver à court de mémoire ?

    D'avance merci,

    Mckilleron

  2. #2
    Modérateur
    Avatar de sabotage
    Homme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    29 208
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Juillet 2005
    Messages : 29 208
    Par défaut
    Tu n'aurais pas dans ton script un redefinition de la limite mémoire ?
    N'oubliez pas de consulter les FAQ PHP et les cours et tutoriels PHP

  3. #3
    Membre confirmé
    Profil pro
    Inscrit en
    Octobre 2008
    Messages
    61
    Détails du profil
    Informations personnelles :
    Localisation : France, Mayenne (Pays de la Loire)

    Informations forums :
    Inscription : Octobre 2008
    Messages : 61
    Par défaut
    Non, les seules fonction appellées liées à la mémoire sont des memory_get_peak_usage()

  4. #4
    Modérateur
    Avatar de sabotage
    Homme Profil pro
    Inscrit en
    Juillet 2005
    Messages
    29 208
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations forums :
    Inscription : Juillet 2005
    Messages : 29 208
    Par défaut
    Si tu fais un phpinfo() sur le script concerné tu vois la bonne quantité de mémoire ?
    N'oubliez pas de consulter les FAQ PHP et les cours et tutoriels PHP

  5. #5
    Membre confirmé
    Profil pro
    Inscrit en
    Octobre 2008
    Messages
    61
    Détails du profil
    Informations personnelles :
    Localisation : France, Mayenne (Pays de la Loire)

    Informations forums :
    Inscription : Octobre 2008
    Messages : 61
    Par défaut
    On plante sur différents fichier et type de fonctions :

    [11-Apr-2014 09:00:31 Europe/Paris] PHP Fatal error: Out of memory (allocated 4718592) (tried to allocate 1076438 bytes) in D:\SERVEURWEB\EaseIT\EbicsSecurity.inc.php on line 1015
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    $UnZipped=ZEbicsGetOutputPtr($p, "UnZipped", $encoderOut); // Cette fonction rajoute une chaine décompressée dans un fichier
    [11-Apr-2014 09:00:46 Europe/Paris] PHP Fatal error: Out of memory (allocated 1572864) (tried to allocate 1048577 bytes) in D:\SERVEURWEB\fonctions\fonctions.php on line 1078

    [11-Apr-2014 09:00:50 Europe/Paris] PHP Fatal error: Out of memory (allocated 2621440) (tried to allocate 1048577 bytes) in D:\SERVEURWEB\fonctions\fonctions.php on line 1078
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    $contents = fread($handle, TAILLE_BUFFER);
    [11-Apr-2014 09:00:51 Europe/Paris] PHP Fatal error: Out of memory (allocated 7077888) (tried to allocate 1352328 bytes) in D:\SERVEURWEB\fonctions\fct_diverses.php on line 407
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    $Donnees_decomp = gzuncompress($Donnees);
    [11-Apr-2014 09:01:32 Europe/Paris] PHP Fatal error: Out of memory (allocated 1572864) (tried to allocate 1048577 bytes) in D:\SERVEURWEB\fonctions\fonctions.php on line 1078

    [11-Apr-2014 09:01:40 Europe/Paris] PHP Fatal error: Out of memory (allocated 1572864) (tried to allocate 1048577 bytes) in D:\SERVEURWEB\fonctions\fonctions.php on line 1078

    [11-Apr-2014 09:01:48 Europe/Paris] PHP Fatal error: Out of memory (allocated 1572864) (tried to allocate 1048577 bytes) in D:\SERVEURWEB\fonctions\fonctions.php on line 1078

    [11-Apr-2014 09:01:53 Europe/Paris] PHP Fatal error: Out of memory (allocated 1572864) (tried to allocate 1048577 bytes) in D:\SERVEURWEB\fonctions\fonctions.php on line 1078

    [11-Apr-2014 09:02:01 Europe/Paris] PHP Fatal error: Out of memory (allocated 1572864) (tried to allocate 1048577 bytes) in D:\SERVEURWEB\fonctions\fonctions.php on line 1078

    [11-Apr-2014 09:02:07 Europe/Paris] PHP Fatal error: Out of memory (allocated 1572864) (tried to allocate 1048577 bytes) in D:\SERVEURWEB\fonctions\fonctions.php on line 1078

    [11-Apr-2014 09:02:10 Europe/Paris] PHP Fatal error: Out of memory (allocated 1572864) (tried to allocate 1048577 bytes) in D:\SERVEURWEB\fonctions\fonctions.php on line 1078

    [11-Apr-2014 09:02:11 Europe/Paris] PHP Fatal error: Out of memory (allocated 1572864) (tried to allocate 1048577 bytes) in D:\SERVEURWEB\fonctions\fonctions.php on line 1078

    [11-Apr-2014 09:02:13 Europe/Paris] PHP Fatal error: Out of memory (allocated 1572864) (tried to allocate 1048577 bytes) in D:\SERVEURWEB\fonctions\fonctions.php on line 1078

    [11-Apr-2014 09:02:18 Europe/Paris] PHP Fatal error: Out of memory (allocated 1572864) (tried to allocate 1048577 bytes) in D:\SERVEURWEB\fonctions\fonctions.php on line 1078

    [11-Apr-2014 09:02:21 Europe/Paris] PHP Fatal error: Out of memory (allocated 1572864) (tried to allocate 1048577 bytes) in D:\SERVEURWEB\fonctions\fonctions.php on line 1078

    [11-Apr-2014 09:03:38 Europe/Paris] PHP Fatal error: Out of memory (allocated 1572864) (tried to allocate 927310 bytes) in D:\SERVEURWEB\Webservices\fonctions\WS_extrait_FDL.php on line 103

    [11-Apr-2014 09:03:44 Europe/Paris] PHP Fatal error: Out of memory (allocated 1572864) (tried to allocate 757310 bytes) in D:\SERVEURWEB\Webservices\fonctions\WS_extrait_FDL.php on line 103
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    $client = new SoapClient($wsdl_extrait,
    							array('location' => $URL_WS_Transfert_local,
    									'local_cert' => $local_cert,
    									'passphrase' => $passphrase, 'trace' => 1));
    				103 ==>	$result = $client->restituerReleve($str_simplexml_header);
    [11-Apr-2014 09:04:13 Europe/Paris] PHP Fatal error: Out of memory (allocated 1572864) (tried to allocate 884647 bytes) in D:\SERVEURWEB\Webservices\fonctions\WS_extrait_FDL.php on line 103


    Coté Apache j'ai eu ca :


    [Fri Apr 11 09:05:16 2014] [notice] Parent: child process exited with status 3221225477 -- Restarting.
    [Fri Apr 11 09:05:19 2014] [notice] Apache/2.2.25 (Win32) PHP/5.4.17 mod_ssl/2.2.25 OpenSSL/0.9.8y configured -- resuming normal operations
    [Fri Apr 11 09:05:19 2014] [notice] Server built: Jul 10 2013 01:52:12
    [Fri Apr 11 09:05:19 2014] [notice] Parent: Created child process 4608
    [Fri Apr 11 09:05:21 2014] [notice] Child 4608: Child process is running
    [Fri Apr 11 09:05:21 2014] [notice] Child 4608: Acquired the start mutex.
    [Fri Apr 11 09:05:21 2014] [notice] Child 4608: Starting 150 worker threads.
    [Fri Apr 11 09:05:21 2014] [notice] Child 4608: Starting thread to listen on port 80.
    [Fri Apr 11 09:05:21 2014] [notice] Child 4608: Starting thread to listen on port 80.
    [Fri Apr 11 09:05:21 2014] [notice] Child 4608: Starting thread to listen on port 443.
    [Fri Apr 11 09:05:21 2014] [notice] Child 4608: Starting thread to listen on port 443.

Discussions similaires

  1. Composant TAdoQuery & problème de mémoire (out of memory)
    Par suiX- dans le forum Composants VCL
    Réponses: 6
    Dernier message: 08/08/2014, 09h30
  2. Analyser la mémoire (Out of Memory )
    Par dr23fr dans le forum EDI et Outils pour Java
    Réponses: 5
    Dernier message: 19/08/2011, 14h08
  3. Réponses: 0
    Dernier message: 15/12/2010, 16h28
  4. Out of memory avec plein de mémoire!
    Par JM-R dans le forum ASP.NET
    Réponses: 4
    Dernier message: 26/11/2007, 14h28
  5. [pb mémoire] out of memory d'eclipse
    Par Casp dans le forum Eclipse Java
    Réponses: 2
    Dernier message: 12/05/2005, 16h39

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo