현상
복합 Office와 PDF 파일이 업로드될 때 컨플런스 메모리 부족 오류로 shutdown 발생
Log
ERROR [conversion-thread-0] [plugins.conversion.impl.TimeoutConversionRunnable] run Cannot convert. Execution error: java.lang.OutOfMemoryError: Java heap space 2015-01-15 11:48:34,898 ERROR [conversion-thread-0] [plugins.conversion.impl.TimeoutConversionRunnable] run Cannot convert. Execution error: java.lang.OutOfMemoryError: PermGen space java.lang.OutOfMemoryError: GC overhead limit exceeded
원인
Confluence 5.7에서 도입된 새로운 파일 미리보기 경험은 JVM에서 Confluence로 실행되는 파일 변환 서비스에 의존한다. 파일 변환 서비스는 매우 복잡한 Office 및 PDF 파일을 업로드하고 변환할 때 메모리 부족 오류를 발생시키는 것으로 알려져 있다.
해결책
아래 나열된 해결책을 한가지씩 적용시켜 본다.
- Java 1.7 버전 사용시 PermGen 증가(1.8버전은 무시)
Go to<installation-directory>/bin/setenv.bat
orsetenv.sh
and change the value of -XX:MaxPermSize
parameter from 256m to 384m - 메모리 heap size 증가
Thread 숫자 변경
-Dconfluence.document.conversion.threads=3
conversions service 비활성화
Go to > Add-ons Locate the Confluence Document Conversion Library system add-on Disable the File Conversions (file-conversions) module