Bug #19664
closedPoor memory management leads to crash when trying to configure large extensions (e.g. phpmyadmin 3.3.0)
0%
Description
When I try to configure the phpmyadmin 3.3.0 using the extension manager, I only get a blank screen.
This is caused by the consumption of very much memory.
phpmyadmin is larger than 12 MB and the whole code is read into an array:
typo3/mod/tools/em/class.em_index.php ~ 4091:
'content' => t3lib_div::getUrl($file)
But the content is never unset again.
My system: memory_limit: 20MB, PHP 5.2.6 (default from my provider)
I would understand when got the message "memory limit exceeded", but all that happens is that I get a blank screen.
I suppose that has something to do with a bug in memory management in PHP.
Anyway, you can work around the bug when unsetting the variable after it is not used anymore.
// class.em_index.php ~ 4082:
foreach($fileArr as $file) {
/* ... /
'content' => t3lib_div::getUrl($file)
/ ... */
// ~ 4105
unset ($uploadArray['FILES'][$relFileName]['content']);
}
(issue imported from #M9865)
Updated by Staffan Ericsson over 15 years ago
"freeCap CAPTCHA" and "Calendar Base" also hits the memory limit on my system (32MB)
I believe that there is time to start rewritting the extension installation code as more and more extensions will grow larger than a few MB. To be useful on web hotels no part of TYPO3 should require more than 32MB.
A few suggestion on solutions.
- split the extension files in to chunks of a few MB
- split the install process into several steps instead of one huge script
Updated by Helmut Hummel about 13 years ago
- Status changed from New to Needs Feedback
- Target version deleted (
0)
A memory limit of 32MB for TYPO3 is ridiculous.
I would close this.
Updated by Ingo Renner about 13 years ago
Helmut Hummel wrote:
A memory limit of 32MB for TYPO3 is ridiculous.
I agree, it's very low, but we still shouldn't waste memory... Thus I wouldn't close the issue
Updated by Helmut Hummel about 13 years ago
Hm, OK. Unsetting not needed variables indeed makes sense, splitting stuff in chunks I would say not.
Updated by Anja Leichsenring over 11 years ago
is this issue still valid? Helmut, Ingo, someone interested in some feedback?
Updated by Ingo Renner over 11 years ago
I think this issue is quite old now and relates to the old implementation of the EM. It might very well be that it is still valid, but I wouldn't bet on it. Fine with me closing this now.
Updated by Nicole Cordes over 11 years ago
- Status changed from Needs Feedback to Closed
I'm closing this issue as it is related to TYPO3 4.2
As we integrate more and more code and speed improvements this general issue is not required anymore.