Open hanbee1005 opened 3 years ago
EC2에서 ./gradlew test 로 테스트를 실행하려고 할 때 위와 같은 에러가 발생하는 경우
free -h
sudo dd if=/dev/zero of=/swapfile bs=64M count=16
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
sudo vi /etc/fstab
위 명령어로 파일 열고 아래 내용 추가
/swapfile swap swap defaults 0 0
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00007fe1061aa000, 262144, 0) failed; error='Not enough space' (errno=12)
EC2에서 ./gradlew test 로 테스트를 실행하려고 할 때 위와 같은 에러가 발생하는 경우