手册:$wgMaxShellMemory

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgMaxShellMemory and the translation is 36% complete.

Other languages:
Deutsch • ‎English • ‎dansk • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎മലയാളം • ‎中文 • ‎日本語
杂项设置: $wgMaxShellMemory
Maximum amount of virtual memory available to shell processes under Linux, in KB.
引进版本:1.7.0 (r14795)
移除版本:仍在使用
允许的值:(integer)
默认值:102400 (MediaWiki版本低于1.22)
307200 (MW 1.22+[1])
其他设置: 按首字母排序 | 按功能排序

默认

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

详情

Under Linux, shell commands are executed with the time and memory limits given by $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.)

參見