Merci pour le conseil je l'ai fait et c'est le résultat:.
[Start] Function: __construct (Before doing anything). Used Memory: 749240
[wmv3 @ 0xaf8e9d0] Extra data: 8 bits left, value: 0
Function: __construct (After making stuff). Used Memory: 2191352
Function: makePreview (before calling makeScreenshot). Used Memory: 2191808
Function: makeScreenshot (start). Used Memory: 2191808
[wmv3 @ 0xaf8e9d0] Extra data: 8 bits left, value: 0
Function: makeScreenshot (end). Used Memory: 3680464
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2191808
$dst_x: 280 $dst_y: 40 $frameNumber, $frameValue: 12230,97851
Function: makePreview (before calling makeScreenshot). Used Memory: 2191856
Function: makeScreenshot (start). Used Memory: 2191856
Function: makeScreenshot (end). Used Memory: 3680512
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2191856
$dst_x: 540 $dst_y: 40 $frameNumber, $frameValue: 18345,97851
Function: makePreview (before calling makeScreenshot). Used Memory: 2191856
Function: makeScreenshot (start). Used Memory: 2191856
Function: makeScreenshot (end). Used Memory: 3680512
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2191856
$dst_x: 800 $dst_y: 40 $frameNumber, $frameValue: 24460,97851
Function: makePreview (before calling makeScreenshot). Used Memory: 2191856
Function: makeScreenshot (start). Used Memory: 2191856
Function: makeScreenshot (end). Used Memory: 3680512
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2191856
$dst_x: 1060 $dst_y: 40 $frameNumber, $frameValue: 30575,97851
Function: makePreview (before calling makeScreenshot). Used Memory: 2191856
Function: makeScreenshot (start). Used Memory: 2191856
Function: makeScreenshot (end). Used Memory: 3680512
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2191856
$dst_x: 280 $dst_y: 195 $frameNumber, $frameValue: 36690,97851
Function: makePreview (before calling makeScreenshot). Used Memory: 2191856
Function: makeScreenshot (start). Used Memory: 2191856
Function: makeScreenshot (end). Used Memory: 3680512
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2191856
$dst_x: 800 $dst_y: 195 $frameNumber, $frameValue: 48920,97851
Function: makePreview (before calling makeScreenshot). Used Memory: 2191856
Function: makeScreenshot (start). Used Memory: 2191856
Function: makeScreenshot (end). Used Memory: 3680512
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2191856
$dst_x: 1060 $dst_y: 195 $frameNumber, $frameValue: 55035,97851
Function: makePreview (before calling makeScreenshot). Used Memory: 2191856
Function: makeScreenshot (start). Used Memory: 2191856
Function: makeScreenshot (end). Used Memory: 3680512
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2191856
$dst_x: 280 $dst_y: 350 $frameNumber, $frameValue: 61150,97851
Function: makePreview (before calling makeScreenshot). Used Memory: 2191856
Function: makeScreenshot (start). Used Memory: 2191856
Function: makeScreenshot (end). Used Memory: 3680512
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2191856
$dst_x: 540 $dst_y: 350 $frameNumber, $frameValue: 67265,97851
Function: makePreview (before calling makeScreenshot). Used Memory: 2191856
Function: makeScreenshot (start). Used Memory: 2191856
Function: makeScreenshot (end). Used Memory: 3680512
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2191856
$dst_x: 800 $dst_y: 350 $frameNumber, $frameValue: 73380,97851
Function: makePreview (before calling makeScreenshot). Used Memory: 2191856
Function: makeScreenshot (start). Used Memory: 2191856
Function: makeScreenshot (end). Used Memory: 3680512
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2191856
$dst_x: 1060 $dst_y: 350 $frameNumber, $frameValue: 79495,97851
Function: makePreview (before calling makeScreenshot). Used Memory: 2191856
Function: makeScreenshot (start). Used Memory: 2191856
Function: makeScreenshot (end). Used Memory: 3680512
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2191856
$dst_x: 280 $dst_y: 505 $frameNumber, $frameValue: 85610,97851
Function: makePreview (before calling makeScreenshot). Used Memory: 2191856
Function: makeScreenshot (start). Used Memory: 2191856
Function: makeScreenshot (end). Used Memory: 3680512
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2191856
$dst_x: 540 $dst_y: 505 $frameNumber, $frameValue: 91725,97851
Function: makePreview (before calling makeScreenshot). Used Memory: 2191856
Function: makeScreenshot (start). Used Memory: 2191856
Function: makeScreenshot (end). Used Memory: 3680512
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2191856
Function: makeScreenshot (start). Used Memory: 2191856
Function: makeScreenshot (end). Used Memory: 3680512
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2191856
$dst_x: 800 $dst_y: 505 $frameNumber, $frameValue: 97840,97851
Function: makePreview (before calling makeScreenshot). Used Memory: 2191856
Function: makeScreenshot (start). Used Memory: 2191856
Function: makeScreenshot (end). Used Memory: 3680512
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2191856
$dst_x: 1060 $dst_y: 505 $frameNumber, $frameValue: 103955,97851
[END] Function: makePreview (After unsetting everything). Used Memory: 749728
[REAL-END] Function: __destruct (After unsetting really everything). Used Memory: 748936
il semble à peu près la même chose pour les autres vidéos il va toujours à: 748936. J'utilisé: memory_get_usage(); Voici les résultats pour memory_get_usage (true):
[Start] Function: __construct (Before doing anything). Used Memory: 1835008
[wmv3 @ 0x19c08dc0] Extra data: 8 bits left, value: 0
Function: __construct (After making stuff). Used Memory: 2359296
Function: makePreview (before calling makeScreenshot). Used Memory: 2359296
Function: makeScreenshot (start). Used Memory: 2359296
[wmv3 @ 0x19c08dc0] Extra data: 8 bits left, value: 0
Function: makeScreenshot (end). Used Memory: 3932160
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2359296
$dst_x: 280 $dst_y: 40 $frameNumber, $frameValue: 13082,104670
Function: makePreview (before calling makeScreenshot). Used Memory: 2359296
Function: makeScreenshot (start). Used Memory: 2359296
Function: makeScreenshot (end). Used Memory: 3932160
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2359296
$dst_x: 540 $dst_y: 40 $frameNumber, $frameValue: 19623,104670
Function: makePreview (before calling makeScreenshot). Used Memory: 2359296
Function: makeScreenshot (start). Used Memory: 2359296
Function: makeScreenshot (end). Used Memory: 3932160
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2359296
$dst_x: 800 $dst_y: 40 $frameNumber, $frameValue: 26164,104670
Function: makePreview (before calling makeScreenshot). Used Memory: 2359296
Function: makeScreenshot (start). Used Memory: 2359296
Function: makeScreenshot (end). Used Memory: 3932160
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2359296
$dst_x: 1060 $dst_y: 40 $frameNumber, $frameValue: 32705,104670
Function: makePreview (before calling makeScreenshot). Used Memory: 2359296
Function: makeScreenshot (start). Used Memory: 2359296
Function: makeScreenshot (end). Used Memory: 3932160
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2359296
$dst_x: 280 $dst_y: 195 $frameNumber, $frameValue: 39246,104670
Function: makePreview (before calling makeScreenshot). Used Memory: 2359296
Function: makeScreenshot (start). Used Memory: 2359296
Function: makeScreenshot (end). Used Memory: 3932160
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2359296
$dst_x: 540 $dst_y: 195 $frameNumber, $frameValue: 45787,104670
Function: makePreview (before calling makeScreenshot). Used Memory: 2359296
Function: makeScreenshot (start). Used Memory: 2359296
Function: makeScreenshot (end). Used Memory: 3932160
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2359296
$dst_x: 800 $dst_y: 195 $frameNumber, $frameValue: 52328,104670
Function: makePreview (before calling makeScreenshot). Used Memory: 2359296
Function: makeScreenshot (start). Used Memory: 2359296
Function: makeScreenshot (end). Used Memory: 3932160
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2359296
$dst_x: 1060 $dst_y: 195 $frameNumber, $frameValue: 58869,104670
Function: makePreview (before calling makeScreenshot). Used Memory: 2359296
Function: makeScreenshot (start). Used Memory: 2359296
Function: makeScreenshot (end). Used Memory: 3932160
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2359296
$dst_x: 280 $dst_y: 350 $frameNumber, $frameValue: 65410,104670
Function: makePreview (before calling makeScreenshot). Used Memory: 2359296
Function: makeScreenshot (start). Used Memory: 2359296
Function: makeScreenshot (end). Used Memory: 3932160
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2359296
$dst_x: 540 $dst_y: 350 $frameNumber, $frameValue: 71951,104670
Function: makePreview (before calling makeScreenshot). Used Memory: 2359296
Function: makeScreenshot (start). Used Memory: 2359296
Function: makeScreenshot (end). Used Memory: 3932160
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2359296
$dst_x: 800 $dst_y: 350 $frameNumber, $frameValue: 78492,104670
Function: makePreview (before calling makeScreenshot). Used Memory: 2359296
Function: makeScreenshot (start). Used Memory: 2359296
Function: makeScreenshot (end). Used Memory: 3932160
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2359296
$dst_x: 1060 $dst_y: 350 $frameNumber, $frameValue: 85033,104670
Function: makePreview (before calling makeScreenshot). Used Memory: 2359296
Function: makeScreenshot (start). Used Memory: 2359296
Function: makeScreenshot (end). Used Memory: 3932160
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2359296
$dst_x: 280 $dst_y: 505 $frameNumber, $frameValue: 91574,104670
Function: makePreview (before calling makeScreenshot). Used Memory: 2359296
Function: makeScreenshot (start). Used Memory: 2359296
Function: makeScreenshot (end). Used Memory: 3932160
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2359296
$dst_x: 540 $dst_y: 505 $frameNumber, $frameValue: 98115,104670
Function: makePreview (before calling makeScreenshot). Used Memory: 2359296
Function: makeScreenshot (start). Used Memory: 2359296
Function: makeScreenshot (end). Used Memory: 3932160
Function: makePreview (After unseting $screenshot of makeScreenshot). Used Memory: 2359296
$dst_x: 800 $dst_y: 505 $frameNumber, $frameValue: 104656,104670
Function: makePreview (before calling makeScreenshot). Used Memory: 2359296
Function: makeScreenshot (start). Used Memory: 2359296
Function: makeScreenshot (end). Used Memory: 2359296
FFmpeg-php messed up! I will just skip this screenshot...
FFmpeg-php messed up! I will just skip this screenshot...
Function: makePreview (After unseting $screenshot of makeScreenshot (case of failure)). Used Memory: 2359296
[END] Function: makePreview (After unsetting everything). Used Memory: 1835008
[REAL-END] Function: __destruct (After unsetting really everything). Used Memory: 1835008
donc je suppose que tout est bien ici, parce que:
[Start] Function: __construct (Before doing anything). Used Memory: 749240
[REAL-END] Function: __destruct (After unsetting really everything). Used Memory: 748936
Il est à peu près la même mémoire-utilisation, tout MHS après.
Mais "ps aux" me dit:
root 21637 37.0 **37.9** 303952 198744 pts/1 R+ 11:48 20:27 php upload.php
Il commence à 1,2 et augmente après chaque image. (37.9 est l'utilisation de la mémoire en%)
Que se passe-t-il?
N'ayant pas beaucoup de temps pour l'examiner en ce moment, ma première estimation est que certaines références ne sont pas déréférencées, donc certaines mises à jour ne libèrent pas vraiment la mémoire. Vous pouvez confirmer en utilisant 'memory_get_usage' avant et après. Si vous n'utilisez pas PHP 5.3, c'est beaucoup mieux à la mémoire de collecte des ordures - essayez-le. – Fanis
J'ai essayé et je vais envoyer le résultat – user536696