이 글은 자바 최적화 (Optimizing Java,가장 빠른 성능을 구현하는 검증된 10가지 기법) 책을 학습한 내용을 토대로 작성되었습니다.
GC 로그는 논블로킹 방식으로 로그를 남기므로
로깅이 Application에 미치는 영향은 거의 0이므로 운영상 무조건 켜두어야 한다.
-Xloggc:gc.log
-XX:+PrintGCDetails
-XX:+PrintTenuringDistribution
-XX:+PrintGCTimeStamps
GC 이벤트 발생 시간을 출력한다.
단 VM 시작 이후 경과한 시간을 초 단위로 출력한다.
-XX:+PrintGCDateStamps
GC 이벤트 발생 시간을 출력한다.
단 벽시계 시간 기준으로 출력한다.
Evaluate the value of an arithmetic expression in Reverse Polish Notation.
Valid operators are +, -, *, /. Each operand may be an integer or another expression.
이 글은 자바 최적화 (Optimizing Java,가장 빠른 성능을 구현하는 검증된 10가지 기법) 책을 학습한 내용을 토대로 작성되었습니다.
Given a string s which represents an expression, evaluate this expression and return its value.
The integer division should truncate toward zero.
이 글은 자바 최적화 (Optimizing Java,가장 빠른 성능을 구현하는 검증된 10가지 기법) 책을 학습한 내용을 토대로 작성되었습니다.
성능 테스트의 다양한 패턴들에 대해 알아본다.
그리고 테스트는 가능하다면 모든 면에서 운영 환경과 똑같이 설정해야 한다.
종단 트랜잭션에 걸리는 시간은?
고객이 트랜잭션 또는 페이지 로딩을 얼마나 오래 기다려야 하는지를 측정하는 테스트이다.
지연 측정 시 반드시
처리율을 어느 정도 수준으로 유지했는지 함께 기술해야 한다.
Construct a deep copy of the list. The deep copy should consist of exactly n brand new nodes, where each new node has its value set to the value of its corresponding original node. Both the next and random pointer of the new nodes should point to new nodes in the copied list such that the pointers in the original list and copied list represent the same list state. None of the pointers in the new list should point to nodes in the original list.