: 내 힙 크기들이 프로젝트 홈페이지에서 권장하는 동일 충분한OutOfMemoryError를 구축 아파치 슬링 나는 받는다는도 권장 힙 크기로, 아파치 슬링을 위해 구축 실행 다음과 같은 오류가
main:
[echo] **************** WARNING (SLING-443/SLING-1782) ******************************
[echo] On most platforms, you'll get OutOfMemoryErrors when building unless you set
[echo] on 32bit platforms: MAVEN_OPTS="-Xmx256M -XX:MaxPermSize=256M", see SLING-443
[echo] on 64bit platforms: MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=512M", see SLING-1782
[echo] ******************************************************************************
[INFO] Executed tasks
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ sling-launchpad-webapp-archetype ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/thomasf/slingDownload/sling/maven/archetypes/launchpad-webapp/src/test/resources
[INFO] Copying 3 resources
[INFO]
[INFO] --- animal-sniffer-maven-plugin:1.7:check (default) @ sling-launchpad-webapp-archetype ---
[INFO] Checking unresolved references to org.codehaus.mojo.signature:java15:1.0
[ERROR] Java heap space -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
물론 : 내가 콘솔 출력에서 분기되는 플러그인을 식별 할 수 있지만 -
echo $MAVEN_OPTS
-Xmx512M -XX:MaxPermSize=512m
나는 원인이 그 받는다는가 분기하고 자식 프로세스의 JVM이 같은 힙 크기가없는 것으로 판단됩니다.
어떤 아이디어라도 감사합니다 !!! 감사합니다
나는 이미 아무 소용이 시도했다. 내가 말했듯이 그 이유는 maven 컴파일 목표가 다른 힙 공간 설정을 가진 다른 JVM을 생성한다는 것입니다. 이 설정을 구성하는 방법과 위치를 알아야합니다. 내가 이것을 의심하는 이유는 메모리 부족 오류로 인해 빌드가 실패 할 때 많은 양의 사용 가능한 메모리를 볼 수 있기 때문입니다. 빌드는 내가 할당 한 것의 일부만 사용하지 않습니다. – murungu