PHP: memory_get_peak_usage under eAccelerator?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
5 views
Major project in PHP. Roll out the new version on server memory usage (memory_get_peak_usage at the end of executable code) has doubled.

Alarmed, they began to dig.

Disabling eAccelerator shows that the old and new versions consume the same.

Include eA — again the difference in the two.


Actually, questions:

1. Since the memory consumption of the same script off eA and eA is markedly different, it was concluded that in the case of a working eA in consumed memory does not count opcode the script itself, because it lies in shared memory. Is it really so? If not, then how else can you explain the enormous difference in the result of memory_get_peak_usage in the same conditions?


2. And most importantly: what might be a reasonable explanation of the conduct set forth in the first part? When eA memory consumption has not changed (and we tend to believe it), and when enabled, the eA issued a totally unrealistic increase in consumption.
by | 5 views

1 Answer

0 like 0 dislike
you are so concerned about the extra 4MB?
if Yes, consider then it is weighted average with weights at the time of execution, you may just win
and Yes, the new version code does not always mean good )
by

Related questions

0 like 0 dislike
4 answers
asked Mar 25, 2019 by ilyaplot
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
0 like 0 dislike
1 answer
110,608 questions
257,186 answers
0 comments
28,013 users