Project

General

Profile

Actions

Feature #25836

closed

Monitor peak memory usage

Added by Jigal van Hemert about 13 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
Should have
Category:
Miscellaneous
Target version:
-
Start date:
2011-04-07
Due date:
% Done:

100%

Estimated time:
PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:

Description

Measuring peak memory usage and comparing it with the memory limit can help preventing out of memory errors (blank pages).

The reports module reports if peak memory usage was more than 90% of the memory limit.

Actions #1

Updated by Mr. Hudson about 13 years ago

Patch set 1 of change Ie0cfed4dce4b2f3e269832a28be7045b972a6867 has been pushed to the review server.
It is available at http://review.typo3.org/1507

Actions #2

Updated by Jigal van Hemert about 13 years ago

How to test:

In class.t3lib_utility_monitor.php modify line 45:

if ($peakUsage / $memoryLimit >= 0.9) {

Change 0.9 to a low number such as 0.1; this will trigger the report on virtually each frontend page request.
See the Reports module for the resulting warning.

Actions #3

Updated by Mr. Hudson about 13 years ago

Patch set 1 of change Ic3cf9409efc16a606edced8ba711b2d93e5d7e27 has been pushed to the review server.
It is available at http://review.typo3.org/1536

Actions #4

Updated by Mr. Hudson about 13 years ago

Patch set 2 of change Ie0cfed4dce4b2f3e269832a28be7045b972a6867 has been pushed to the review server.
It is available at http://review.typo3.org/1507

Actions #5

Updated by Susanne Moog about 13 years ago

  • Status changed from New to Under Review
Actions #6

Updated by Xavier Perseguers almost 13 years ago

  • Target version changed from 1081 to 1238
Actions #7

Updated by Oliver Hader almost 13 years ago

  • Target version changed from 1238 to 1281
Actions #8

Updated by Xavier Perseguers almost 13 years ago

  • Target version changed from 1281 to 4.6.0-beta1
Actions #9

Updated by Jigal van Hemert over 12 years ago

  • Status changed from Under Review to Resolved
Actions #10

Updated by Xavier Perseguers about 12 years ago

  • Status changed from Resolved to Closed
Actions #11

Updated by Bernhard Eckl almost 11 years ago

I saw this in 6.1. I did not find anything about how this is measured, the highest memory usage in the last hour or just at the time I run the install tool? Thanks for your explanation.

Actions #12

Updated by Jigal van Hemert almost 11 years ago

Hi Bernhard,

This issue tracker is meant for bug reports. For questions you can use the mailing lists / newsgroups / forum at typo3.org.

To answer your question: at the end of every frontend request the peak memory usage as measured by PHP is compared with the memory limit that is configured. If it exceeds 90% of that limit the memory usage, the date/time of the event and the requested URL are stored for later use by the Reports module. If this happens there is an option in the Reports module to remove the stored data.
With this data the administrator can investigate why the memory usage was so high and possibly take appropriate action (fix the problem, raise the memory limit).

Actions #13

Updated by Ernesto Baschny almost 11 years ago

  • Target version deleted (4.6.0-beta1)
Actions

Also available in: Atom PDF