OOM 3

[OOM] Out Of Memory 분석 방법(with JProfiler(유료))

시스템 성능, 메모리 사용량, 잠재적 인 메모리 누수 및 스레드 프로파일 링을 볼 수 있는 인터페이스를 제공로컬 및 원격 응용 프로그램 모두에 사용원격 컴퓨터에서 실행중인 Java 응용 프로그램을 설치할 필요없이 프로필 작성코드 일부 수정(이유: 실행 즉시 dump 파일 생성으로 온라인 연결 불가)import java.util.ArrayList;import java.util.List; public class OutOfMemoryExample {    public static void main(String[] args) {        List memoryLeak = new ArrayList();        try {            while (true) {                // Crea..

JAVA 2024.09.22

[OOM] Out Of Memory 분석 방법(with VisualVM)

Java 응용 프로그램 프로파일 링 도구Java Development Kit (JDK)에 번들로 제공1. 다운로드 경로 : https://visualvm.github.io/download.html VisualVM: DownloadFirst Steps Unzip the downloaded archive. The archive already contains the top-level visualvm directory. Start VisualVM by invoking the binary appropriate for your OS:visualvm\bin\visualvm.exe or visualvm/bin/visualvm You may provide additional options tovisualvm.github..

JAVA 2024.09.22

[OOM] Out Of Memory 분석 방법(with MAT)

heap dump 생성 및 분석 1. 샘플 파일 생성(OutOfMemoryExample.java)import java.util.ArrayList;import java.util.List; public class OutOfMemoryExample {    public static void main(String[] args) {        List memoryLeak = new ArrayList();        while (true) {            memoryLeak.add(new Object()); // Continuously adding objects to the list        }    }} 2. 컴파일(OutOfMemoryExample.class 생성)javac OutOfMemoryE..

JAVA 2024.09.20