Feature #25836
closed
Monitor peak memory usage
Added by Jigal van Hemert over 13 years ago.
Updated over 11 years ago.
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.
Patch set 1 of change Ie0cfed4dce4b2f3e269832a28be7045b972a6867 has been pushed to the review server.
It is available at http://review.typo3.org/1507
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.
Patch set 1 of change Ic3cf9409efc16a606edced8ba711b2d93e5d7e27 has been pushed to the review server.
It is available at http://review.typo3.org/1536
Patch set 2 of change Ie0cfed4dce4b2f3e269832a28be7045b972a6867 has been pushed to the review server.
It is available at http://review.typo3.org/1507
- Status changed from New to Under Review
- Target version changed from 1081 to 1238
- Target version changed from 1238 to 1281
- Target version changed from 1281 to 4.6.0-beta1
- Status changed from Under Review to Resolved
- Status changed from Resolved to Closed
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.
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).
- Target version deleted (
4.6.0-beta1)
Also available in: Atom
PDF