Page MenuHomePhabricator

adding option --memory-limit to SMW maintenance scripts
Closed, DeclinedPublic

Description

Since PHP 5.3 servers running the suhosin extension complain about automatic disabling of the memory_limit by scripts executed via cron (ALERT - script tried to disable memory_limit by setting it to a negative value -1 bytes which is not allowed). The standard MW maintenance scripts introduced the option --memory-limit <some value> to overcome this problem. Thus it might be a good idea to add this functionality to SMW maintenance scripts too.


Version: unspecified
Severity: enhancement

Details

Reference
bz33750

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 12:02 AM
bzimport set Reference to bz33750.
bzimport added a subscriber: Unknown Object (MLST).
Kghbln created this task.Jan 16 2012, 10:18 AM

sakthi92 wrote:

memory_limit option has been already added to SMW maintenance scripts.

Kghbln added a comment.Apr 3 2012, 8:03 PM

Cool, when did that happen? I see it was implemented for "SMW_refreshData.php". What about "SMW_conceptCache.php" and "SMW_dumpRDF.php"? For the first script it is not documented and I cannot check the second one, since this throws an error message.

sakthi92 wrote:

Hit --help for both and see. But I have no idea why the second script throws a error. I think a file name should be specified to store the RDF data.(In reply to comment #2)

Cool, when did that happen? I see it was implemented for "SMW_refreshData.php".
What about "SMW_conceptCache.php" and "SMW_dumpRDF.php"? For the first script
it is not documented and I cannot check the second one, since this throws an
error message.

Kghbln added a comment.Apr 3 2012, 9:24 PM

--help for "SMW_conceptCache.php" does not show the option --memory-limit and "SMW_dumpRDF.php" aborts with --help (see but 35679) so I cannot check this. I think the option --memory-limit should be added to the script documentation in case is is there and functional. Everything seems to be fluffy with "SMW_refreshData.php" :)

Aklapper closed this task as Declined.Mar 3 2015, 5:50 PM
Aklapper added a subscriber: Aklapper.

The Semantic MediaWiki developers requested in https://phabricator.wikimedia.org/T64114 to move their task tracking to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues and to close remaining tasks in Wikimedia Phabricator. If you still face the problem reported in this task in a supported version of SMW, please feel free to transfer your report to https://github.com/SemanticMediaWiki/SemanticMediaWiki/issues . We are sorry for the inconvenience.