Manual:$wgMaxShellMemory

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎日本語 • ‎polski • ‎português • ‎português do Brasil • ‎中文
Miscellaneous settings: $wgMaxShellMemory
Maximum amount of virtual memory available to shell processes under Linux, in KB.
Introduced in version: 1.7.0 (r14795)
Removed in version: still in use
Allowed values: (integer)
Default value: 102400 (MW < 1.22)
307200 (MW >= 1.22 [1])
Other settings: Alphabetical | By function

Default[edit]

//Maximum amount of virtual memory available to shell processes under Linux, in KB.
$wgMaxShellMemory = 307200;

Note Note: 102400 KB = 100 MB, 307200 KB = 300 MB, etc.

Details[edit]

Under Linux, shell commands are executed with the time and memory limits given by $wgMaxShellTimeManual:$wgMaxShellTime and $wgMaxShellMemory. Setting either variable to 0 will disable both limits.

If generating thumbnails with ImageMagick fails with a web server error log message like "Memory allocation failed" or "/bin/ulimit4.sh: Segmentation fault /usr/bin/convert ...", the $wgMaxShellMemory value may need to be increased.

If using Batik to render SVG graphics on some systems, this value needs to be raised in order for the extension to function. (The phrase "Could not create the Java virtual machine." may appear in Apache error log if this problem is occurring.)

See also[edit]