Linux / 메모리 확인 및 캐시 삭제
문제 : AWS 프리티어를 사용할 때 Spring-boot Project 를 빌드하고 Nginx와 같이 테스트 웹서버를 구동할 경우 메모리 1GB로 매우 부족하여 금방 시스템이 다운된다. 그래서 캐시 메모리를 비워줘서 시스템 다운되는 현상을 최대한 막아보도록 한다. 해결 : - 메모리 사용량 확인 free [-m] * -m 옵션 : MB단위로 출력 - 메모리 캐시 삭제 (~ page caches) : root 기준 echo 3 > /proc/sys/vm/drop_caches : User 기준 sudo sh -c "usr/bin/echo 3 > /proc/sys/vm/drop_caches" - 시간마다 메모리 캐시 삭제 ( 작업스케줄러 Crontab 작성 / 예제 : 매시간 0분 실행 설정) crontab..
Linux
2022. 5. 22. 03:09
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- Spring Group
- Spring Artifact
- 리눅스 메모리 캐시
- mysql oracle
- vue npm
- gitignore 적용오류
- spring boot sh파일
- gitignore 적용안됨
- docker 명령어
- Mybatis vs JPA
- Mapper namespcae
- aws spring boot
- docker context
- SQL Mapper
- colima
- aws git
- mybatis
- aws build
- nginx
- aws git pull
- git gitignore
- linux 포트중복
- Docker
- vue project
- docker --context
- colima docker
- 메모리 삭제
- Linux caches
- aws
- oracle db
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
글 보관함