jcmd
[링크 : https://docs.oracle.com/javase/10/tools/jcmd.htm]
| # jcmd --help Error parsing arguments: No command specified Usage: jcmd |
근데 보는법을 모르겠다 ㅠㅠ
|
# jcmd 10776 help # jcmd 10776 GC.heap_info |
[링크 : http://karunsubramanian.com/websphere/how-to-monior-heap-usage-of-a-java-application/]
+
GPL 이라는데 상용으로 사용가능한지 모르겠음
[링크 : https://visualvm.github.io/]
+
클래스 히스토그램은.. 클래스별 메모리 사용량인가?
| # jcmd 10776 GC.class_histogram 10776: num #instances #bytes class name ---------------------------------------------- 1: 150865 436535528 [C 2: 7008 47125920 [B 3: 134955 4318560 java.util.concurrent.ConcurrentHashMap$Node 4: 145517 3492408 java.lang.String 5: 11226 3398488 [I |
찾다보니 jmap -histo pid도 동일한 결과를 내주네..
[링크 : http://www.openkb.info/2014/06/how-to-check-java-memory-usage.html]
일단 의미를 보건대.. [C는 Char array 라는 느낌인데
무슨 미친 char 배열 객체가 이렇게 메모리를 쳐드시나...
|
Element Type Encoding
it is an array of objects as specified by JVM Specifications for internal representation of class names:
so [Ljava.lang.object; means Object[] |
[링크 : https://stackoverflow.com/.../what-do-those-strange-class-names-in-a-java-heap-dump-mean]
+
[링크 : https://spring.io/blog/2015/12/10/spring-boot-memory-performance]
'Programming > Java(Spring)' 카테고리의 다른 글
| spring에 angluar 통합하기 (0) | 2019.06.04 |
|---|---|
| spring war와 war.original (0) | 2019.04.23 |
| Transaction was marked for rollback only; cannot commit (0) | 2019.03.25 |
| spring boot cassandra (0) | 2019.03.08 |
| gradle 에 jar 추가하여 빌드하기 (0) | 2019.03.08 |

