인터럽트 사용 경험!

톰캣 비동기 타임아웃 후 스레드 종료되지 않음. 여러번 호출시 OOM 발생.

인터럽트 확인 후 break 및 write

if (!Thread.*currentThread*().isInterrupted()) { sheets.write(outputStream);}

if (Thread.*currentThread*().isInterrupted()) { break;}

스레드 종료되지 않은 경험!

배치 Job은 완료했으나 배치 프로세스가 종료되지 않는 현상 발생

스레드 덤프 → RabbitMQ 스레드 확인

rabbitMQ.resetConnection