티스토리 뷰

tomcat을 사용하다보면 종종 다음과 같은 오류가 발생한다. 

# There is insufficient memory for the Java Runtime Environment to continue. 
# Native memory allocation (mmap) failed to map 134217728 bytes for Failed to commit area from 0x0000000081a00000 to 0x0000000089a00000 of length 134217728. 
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000081a00000, 134217728, 0) failed; error='�� �۾��� �Ϸ��ϱ� ���� ����¡ ������ �ʹ� �۽��ϴ�' (DOS error/errno=1455) 
# An error report file with more information is saved as:

# C:\User\User\git\sample-project\hs_err_pid1716.log

일단 보라고 한 hs_err_pid1716.log 이녀석을 살펴보니 문제점과 해결책이 모두 있었다. 그리고 밑에는 Out of Memory Error 라고 명시가 되어 있다.

 

# Possible reasons:
#   The system is out of physical RAM or swap space
#   The process is running with CompressedOops enabled, and the Java Heap may be blocking the growth of the native heap


Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=

 

가장 중요한건 물리적인 RAM의 부족인것 같다. 닫을 수 있는건 모두 닫아보고 다시 시도를 해보자. 필자의 경우는 크롬의 탭이 너무 많이 열려 있어서 그것만 좀 닫아줬더니 그 후로는 문제가 없었다. 다 닫아도 안된다면 Possible solutions 에 나온것처럼 eclipse.ini (or STS.ini) 파일의 Xmx / Xms / Xss 등을 수정해보자. 

 

끝!

댓글
최근에 올라온 글
최근에 달린 댓글
«   2024/04   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30