Bug #18296
closed
Apache uses a huge amount of memory
Added by emds-itsupport over 16 years ago.
Updated about 6 years ago.
Description
After a few hours of running TYPO3, I get this error message: Fatal error: Out of memory (allocated 2621440) (tried to allocate 136100 bytes) in C:\typo3c\htdocs\Quickstart\typo3\class.db_list_extra.inc on line 485
Plus in the task manager, I can see that Apache uses at some point more than 200 MB of RAM.
(issue imported from #M7652)
Files
Hm, 2621440 bytes are 2.5 MB which seems to be a bit low.
Furthermore it looks like there are still some processes alive which are not really required anymore (but this is related to the webserver configuration and not to TYPO3 then).
Please go to the install tool and check for warning in the "Basic configuration" section or check the following properties in your php.ini file:
- memory_limit
- max_execution_time
What is the exact environment you're using?
- Apache version/mode?
- PHP version
- OS
- local development server or live server
Why do you think it is TYPO3-related?
Possibly you have pconnect enabled in PHP and it wastes resources. May be you have some Apache modules that have memory leaks.
In fact independently of the number given above in the "out of memory" sentence, Apache starts using 50 MB. After many hours of it running, and as I am doing some tests with lots of refresh on pages using forms, I can see in the task manager that little by little, after a refresh some, that Apache is using more and more memory until reaching at some point more than 200 MB. This comment also applies to Firefox 2.0.0.12, which even goes beyond 300 MB.
When I say TYPO3, I actually include everything mysql/apache/php), as I do not know where it comes from.
Configuration:
- I am using the package TYPO3 Winstaller for 4.2alpha3 from Andreas Eberhard, plus sources from beta1. I have not changed any setting
- Windows XP, SP2
- PHP 5.2.1
- MySQL v14.7, distrib 4.1.21
- Apache 2.0.59
- max_execution_time: 60 (default from package)
- memory_limit: 128M (default from package)
Although I will try to look at the modules and their configuration in the next few days, I am attaching ApacheProblem.gif showing mem allocation and the error message
Resolved, no change required:
php is known to have some memory leaks, a useful configuration for apache is to let processes / threads die and refork after some number of requests. We are still constantly working on reducing memory usage of TYPO3, but this issue itself seems to be not TYPO3-core, but system setup related.
- Status changed from Resolved to Closed
Also available in: Atom
PDF