분류 전체보기
-
-
덤프(dump)컴퓨터 용어/IT 용어 2022. 1. 13. 03:56
덤프란? 어떤 장애가 발생했을 때, 프로그램의 오류 수정이나 데이터의 검사(디버그)를 위해 그 상태 (기억된 내용의 일부 또는 전부)를 외부 장치의 하나인 프린터 등 행 인쇄기 같은 출력장치에 표시 혹은 인쇄하기 위해 기억장치나 파일 내용의 전체 또는 일부 자료에 기억시킨 내용을 보조기억장치 등 기록 매체에 복사, 전이하는 조작을 일컫거나 컴퓨터 주기억장치와 레지스터, 데이터나 프로그램 등 디지털 계산기에 그런 내용이 존재 및 지정된 메모리 영역이다. 우리가 운영체제에서 자주 겪는 메모리 덤프란 System의 물리 Memory를 File형태로 저장하는 방법으로 침해사고 시점의 휘발성 Data를 File로 간직하여 Memory에 변화를 주지 않으면서 분석하기 위해 Memory Dump를 수행한다.
-
Garbage Collection 모니터링JAVA공부/JVM 2022. 1. 12. 01:30
GC모니터링 JVM이 어떻게 GC를 수행하는지를 알아내는 과정을 말하는데, Young영역에서 Old영역으로 얼마나 이동했는지, Stop-The-World가 언제 일어나고 얼마동안 일어났는지 정보를 알 수 있다. 또한, 때에 따라서 GC튜닝이 필요한지 안한지 확인하기 위해서다. 모니터링방법 1.jstat HotSpot JVM에 있는 모니터링 도구이다. 그외 HotSpot JVM 모니터링 도구로는 jps나 jstatd가 있다. jstat은 GC수행정보 뿐 아니라 클래스로더 수행정보나 Just In Time 컴파일러 수행정보도 알 수 있다. jstat은 $JAVA_HOME/bin 디렉토리에 있다. 환경변수로 설정한 $JAVA_HOME 을 불러오는 방법 (운영체제, 프롬프트에 따라 명령어가 다르다 -_-) wi..
-
URL , HTTP컴퓨터 용어/웹 용어 2022. 1. 11. 01:21
URL 웹페이지 주소를 표현할때 쓰는 URL은 몇개의 요소로 구성되는데 다음과 같다. 프로토콜 웹 브라우저가 내용을 주고받을 때 사용할 규칙명 서버이름 웹페이지를 요청할 서버 이름 - 도메인 이름이나 IP주소를 입력할 수 있다. 경로 웹페이지 상세주소에 해당한다. 쿼리 문자열 서버로 보내는 데이터에 해당한다. 인터넷상에서 IP주소를 사용하면 IP도용과 더불어 IP추적과 같은 위험한 상황에 놓일 수 있다. 따라서 DNS (Domain name Server)를 이용하는데, www.naver.com 과 같이 도메인 명으로 ip를 변환 시켜주는 서버이다. 클라이언트는 이 도메인이름으로 dns에서 ip주소를 요청하고 이 ip주소를 이용해서 웹서버에 요청을 보낸다. 이 과정이 URL을 통한 통신 작업이다. HTTP..
-
@SpringBootApplicationSPRING 공부/어노테이션 2022. 1. 10. 01:35
회사에서 근무 할때나 팀원들과 프로젝트 할때 패키지 경로에 대한 생각을 해본 적이 없었다. 그래서 이번 토이 프로젝트에서 @SpringBootApplication어노테이션이 붙어있는 패키지와 다른 패키지안에 @Configuration이나 @EnableWebSocket등을 다 해줬는데도 설정을 읽어오지 못 했다. 몇시간, 이틀내내 찾아보다가 패키지를 @SpringBootApplication이 붙여져있는 클래스 패키지 하위로 넣었더니 잘 작동 되었다.... 이유인 즉슨 Component Scan이 안된것 이다. 이 인터페이스는 많은 역할 을 하고있다. @EnableAutoConfiguration : 스프링의 설정이 자동 완료된다. @ComponentScan : 컴포넌트 자동 검색 및 구성이 가능하다. @Sp..
-
ApplicationListener<Event>SPRING 공부/이벤트 2022. 1. 10. 01:06
Stomp에 대해 공부하다가 WebSocket Handler 에서는 afterConnectionEstablished 와 afterConnectionClosed 와 같이 접속시, 접속끊길시 websocket event 리스너에대한 처리과정에 대한 메소드가 안 보였다. 그래서 구글링한 결과 2가지 방법이 있었는데. 하나는 ApplicationListener 인터페이스를 구현하여 받는 방법과 WebSocketMessageBrokerConfigurer인터페이스의 configureWebSocketTransport메소드를 통해 송수신 관련 설정을 하는 것이다. 구현은 이와같이 하며 설명을 하자면 ApplicationListener는 onApplicationEvent메소드를 가진 인터페이스인데, 이를 구현하면 제너릭..
-
STOMP 이론토이프로젝트/웹소켓채팅 2022. 1. 9. 21:33
STOMP 란 ? Simple (or Streaming) Text Orientated Messaging Protocol의 약자로 WebSocket위에 존재하는 프로토콜이다. Websocket과 비교해서 SpringMVC가 HTTP에 프로그래밍 모델을 제공하는 것처럼 Application수준의 사용을 위한 프로그래밍 모델을 제공한다. 이게 무슨 말이냐면 @MessageMapping 어노테이션을 통해 특정 요청에 대한 처리를 가능하게 한다는 것이다. 이것을 Spring MVC에 비유하자면 @RequestMapping을 통해 접속 URL에 따라클라이언트 요청을 처리하게 되는데, STOMP도 이것을 가능하게 한다는 것이다. STOMP의 구조를 한번 알아보자 CLIENT1이 /chatRoom/1을 가지고 SUBS..