Shell and process control: $wgMaxShellMemory | ||
Maximum amount of virtual memory available to shell processes under Linux, in KiB. | ||
Introduced in version: | 1.7.0 (r14795) | |
Removed in version: | still in use | |
Allowed values: | (integer) | |
Default value: | 307200 (1.22+)[1] 102400 (1.7-1.21) |
|
Other settings: Alphabetical | By function |
Default
// 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, 등.
Details
리눅스 아래에서, 쉘 명령은 $wgMaxShellTime와 $wgMaxShellMemory에 의해 주어진 시간과 메모리 제한으로 실행됩니다. 두 변수 중 하나를 0으로 설정하면 두 제한이 모두 비활성화됩니다.
만약 ImageMagick으로 썸네일 생성이 "Memory allocation failed" 또는 "/bin/ulimit4.sh: Segmentation fault /usr/bin/convert ..." 또는 "convert: Unable to extend cache ..."와 같은 웹 서버 오류 로그 메시지와 함께 실패하면, $wgMaxShellMemory 값이 증가되어야 할 수 있습니다.
만약 Batik을 일부 시스템에서 SVG 그래픽을 렌더링하기 위해 사용하면, 이 값은 확장 기능이 작동하려면 높여져야 합니다. (문구 "Could not create the Java virtual machine."는 이 문제가 발생하면 아파치 오류 로그에 나타날 수 있습니다.)
See also
- $wgMaxShellFileSize - 리눅스 쉘 프로세스에 대해 허용되는 최대 파일 크기
- $wgMaxShellTime - 리눅스 쉘 프로세스에 대해 최대 허용 시간
- $wgShellCgroup - ulimit -v 대신 cgroups를 사용하여 메모리 사용량을 제어하면 더 안정적입니다.