Project

General

Profile

Actions

Bug #17774

closed

cli_dispatch.phpsh lowlevel_refindex -c runs into memeory size exhausted

Added by Dirk Diebel over 16 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2007-11-12
Due date:
% Done:

100%

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

Description

i'm trying to run ./cli_dispatch.phpsh lowlevel_refindex -c from shell, but i all i got is this message:

***********************************
Reference Index being TESTED (nothing written, use "-e" to update) ***********************************
PHP Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 40 bytes) in /opt/wwwroot/typo3_src/t3src412/t3lib/class.t3lib_div.php on line 2178

(issue imported from #M6691)


Files

ReferenceIndex.php.patch (679 Bytes) ReferenceIndex.php.patch Witali Rott, 2014-03-28 11:18
class.t3lib_refindex.php.patch (582 Bytes) class.t3lib_refindex.php.patch Witali Rott, 2014-03-28 11:31

Related issues 3 (0 open3 closed)

Has duplicate TYPO3 Core - Bug #40017: Allowed memory size exhausted with "cli_dispatch.phpsh lowlevel_refindex -e"Closed2012-08-21

Actions
Has duplicate TYPO3 Core - Bug #48108: Running cli_dispatch.phpsh lowlevel_refindex failsClosedClaus Harup2013-05-10

Actions
Blocked by TYPO3 Core - Bug #66338: lowlevel_refindex script should skip nonRelationTablesClosed2015-04-09

Actions
Actions #1

Updated by Daniel Krupke about 15 years ago

Did you try running the script with full path? Running the script local is not supported by CLI.

Wrong:
./cli_dispatch.phpsh lowlevel_refindex -c

Right:
/path/to/your/typo3/cli_dispatch.phpsh lowlevel_refindex -c

Additionally you can try using another php to compile this script.
Example:
/usr/bin/php5 /path/to/your/typo3/cli_dispatch.phpsh lowlevel_refindex -c

Actions #2

Updated by Marcus Krause about 11 years ago

  • Target version deleted (0)

IMHO, issue should be closed.

This is an expected behavior when content grows - adjust max memory size!

Actions #3

Updated by Alexander Opitz almost 11 years ago

Fatal errors are never expected behaviors. And maybe something is wrong, can be fixed or a warning can be given out.

Thats why I will let it stay open.

Actions #4

Updated by Witali Rott about 10 years ago

This Patch fix the Problem under Typo3 6.
I don't test it under Typo3 4

Actions #5

Updated by Witali Rott about 10 years ago

Check this for Typo3 4 and give Feedback

Actions #6

Updated by Stephan Großberndt over 9 years ago

I have some big databases where even memory_limit=1024M is not enough. So this should be fixed. The error occurs too when updating the index (-e).

I tried the patch for TYPO3 4.5 and it did not help (maybe there is less memory used but its not enough).

From the programming logic it really seems to be a bug that the class creates a new instance of itself for each record instead of calling the method in its own instance (but since it is using properties to keep track ($this->word_strings etc) maybe this is necessary (and thus the patch is not good).

Actions #7

Updated by Mathias Schreiber over 9 years ago

  • Status changed from New to Needs Feedback
  • Is Regression set to No

@Stephan:
Will this be tackled by your current efforts?
If so, give me a ping so I can close the issue

Actions #8

Updated by Christian Weiske about 9 years ago

I'm using TYPO3 6.2.11 and still have the memory issue.

The main reason in my eyes is that all rows of a table are fetched at once (exec_SELECTgetRows) and then analysed, instead of only fetching one row after another.

Also, table sys_log is analyzed, which is huge in older instances -> see #66338.

Actions #9

Updated by Gerrit Code Review about 9 years ago

  • Status changed from Needs Feedback to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38573

Actions #10

Updated by Gerrit Code Review about 9 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38573

Actions #11

Updated by Gerrit Code Review about 9 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38573

Actions #12

Updated by Gerrit Code Review about 9 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38573

Actions #13

Updated by Gerrit Code Review about 9 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/38587

Actions #14

Updated by Christian Weiske about 9 years ago

  • Status changed from Under Review to Resolved
Actions #15

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF