2012-08-23 4 views
1
나는이 명중 다음 사람을 위해 빵 부스러기를 제공하기 위해 내 자신의 질문에 대답 할 수 있습니다

:메이븐 flexmojos - 받는다는 - 플러그인도 -Xmx1024m -XX와 OutOfMemoryError가와 함께 실패를 MaxPermSize = 512m

문제

x86Linux 메이븐 빌드와 flexmojos - 받는다는 - 플러그인 중에 실패

load-config+=...flex-config.xml -static-link-runtime-shared-libraries... 
-metadata.language+=en_US 
[INFO] Loading configuration file .../flex-config.xml 

# There is insufficient memory for the Java Runtime Environment to continue. 
# Native memory allocation (malloc) failed to allocate 37064 bytes for Chunk::new 
[ERROR] OutOfMemoryError -> [Help 1] 

답변

0

솔루션

시스템 스왑을 늘리십시오. flexmojos는 flex 컴파일러 (JVM에 할당 된 메모리 이외의 메모리가 필요한 기본 실행 파일)를 호출합니다. 메모리가 부족하여 maven의 jvm을 바꿀 수 없다면 flex 컴파일러가 실패합니다.

추가 스왑을 추가하고 빌드를 성공적으로 완료 할 수있었습니다. 자기에 enter link description here

# create swap file 
dd if=/dev/zero of=/opt/swapfile.1 bs=1M count=2048 
# Set Permissions 
chmod 600 /opt/swapfile.1 
# Define as swap 
mkswap /opt/swapfile.1 
# Add to active swap 
swapon /opt/swapfile.1 
# Verify 
free -m 
+0

노트에서

- 순서를 먼저 /etc/init.d이 추가 ..... –