일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- JVM
- Elk
- spring
- springboot
- sql
- 엘라스틱서치
- heap메모리
- Apach
- nodejs
- SonarQube
- mysql
- 스프링
- 레드마인
- Stash
- mybatis
- 트랜잭션
- ElasticSearch
- Bitbucket
- 마이바티스
- Git
- Java
- slave node
- npm
- 리눅스
- orm
- 자바
- DB
- Gradle
- 아파치
- 시스템운영
Archives
- Today
- Total
목록memory (1)
프로그래머호이잇
jvm 메모리 관련 내용
totalMemory는 현재 힙에 할당된 총 메모리 크기 maxMemory는 최대로 할당될 수 있는 메모리 크기 freeMemory는 현재 할당된 힙 메모리 중 사용가능한 크기 확인 방법 Code double maxMemory = (double) Runtime.getRuntime().maxMemory() / (1024 * 1024); double totalMemory = (double) Runtime.getRuntime().totalMemory() / (1024 * 1024); double freeMemory = (double) Runtime.getRuntime().freeMemory() / (1024 * 1024); 1024 * 1024 로 나누어 주는 이유는 MB 로 단위를 변경하기 위함
java
2019. 8. 26. 10:46