Manual:$wgMaxShellMemory

From mediawiki.org
This page is a translated version of the page Manual:$wgMaxShellMemory and the translation is 77% complete.
シェルとプロセス制御: $wgMaxShellMemory
Linux 環境でシェル プロセスが利用できる仮想メモリの最大サイズ (KiB 単位)。
導入されたバージョン:1.7.0 (r14795)
除去されたバージョン:使用中
許容される値:(整数)
既定値:307200 (1.22+) gerrit:91833
102400 (1.7-1.21)

既定

// Maximum amount of virtual memory available to shell processes under Linux, in KiB.
$wgMaxShellMemory = 307200;
1 KiB = 1024 B, 102400 KiB = 100 MiB, 307200 KiB = 300 MiB, etc.

詳細

Linux 環境では、シェル コマンドは $wgMaxShellTime $wgMaxShellMemory で指定した時間とメモリの制限のもとで実行されます。どちらの変数も、0 を指定するとその制限が無効になります。

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 ..." or "convert: Unable to extend cache ...", the $wgMaxShellMemory value may need to be increased.

SVG グラフィックスのレンダリングに Batik を使用しているシステムの一部では、拡張機能 (展開?) を動作させるために、この値を増やす必要があります。(この問題点が発生している場合、Apache のログに「Could not create the Java virtual machine.」というフレーズが出力されることがあります。)

関連項目

  • $wgMaxShellFileSize - Linux 環境でシェル プロセスが作成できる最大ファイル サイズ
  • $wgMaxShellTime - Linux のシェル プロセスが許容される最長時間
  • $wgShellCgroup - Use cgroups instead of ulimit -v to control memory usage, which is more reliable.