본문 바로가기 메뉴 바로가기

Deve1oper

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Deve1oper

검색하기 폼
  • 분류 전체보기 (18)
    • Linux (2)
    • JAVA (0)
    • React & Vue (1)
    • Spring & Spring Boot (2)
    • AWS & DOCKER (6)
    • DATABASE (6)
    • AHK (0)
    • VBA (0)
    • Git (1)
  • 방명록

리눅스 메모리 캐시 (1)
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
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • aws git
  • docker --context
  • Mybatis vs JPA
  • oracle db
  • Spring Group
  • Mapper namespcae
  • 메모리 삭제
  • vue project
  • colima docker
  • colima
  • vue npm
  • gitignore 적용안됨
  • git gitignore
  • linux 포트중복
  • Spring Artifact
  • mybatis
  • Docker
  • nginx
  • mysql oracle
  • 리눅스 메모리 캐시
  • docker context
  • aws git pull
  • gitignore 적용오류
  • SQL Mapper
  • aws
  • Linux caches
  • aws spring boot
  • aws build
  • spring boot sh파일
  • docker 명령어
more
«   2025/07   »
일 월 화 수 목 금 토
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
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바