Project

General

Profile

Actions

Bug #18296

closed

Apache uses a huge amount of memory

Added by emds-itsupport over 16 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2008-02-25
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

ApacheProblem.gif (9.13 KB) ApacheProblem.gif Administrator Admin, 2008-02-26 19:07
Actions #1

Updated by Oliver Hader over 16 years ago

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
Actions #2

Updated by Oliver Hader over 16 years ago

What is the exact environment you're using?
  • Apache version/mode?
  • PHP version
  • OS
  • local development server or live server
Actions #3

Updated by Dmitry Dulepov over 16 years ago

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.

Actions #4

Updated by emds-itsupport over 16 years ago

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)

Actions #5

Updated by emds-itsupport over 16 years ago

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

Actions #6

Updated by Christian Kuhn over 14 years ago

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.

Actions #7

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF