testOnBorrow : The indication of whether objects will be validated before being borrowed from the pool. If the object fails to validate, it will be dropped from the pool, and we will attempt to borrow another. http://commons.apache.org/proper/commons-dbcp/configuration.html
JSTL 문법의 for문 사용법 status는 for문의 상태를 알 수 있게 체크하여 준다#{status.current} 현재의 for문에 해당하는 번호#{status.index} 초기값 0#{status.count} 초기값 1#{status.first} 현재 루프가 처음인지 확인#{status.last} 현재 루프가 마지막인지 확인#{status.begin} for문의 시작 값#{status.end} for문의 끝 값#{status.step} for문의 증가값
. $TOMCAT_HOME/bin/catalina.sh 에서 CATALINA_OPTS를 수정. 1. OOM(OutOfMemory) 처리(힙덤프 생성 및 톰캣 핸들링)-XX:-HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=./java_pid.hprof-XX:OnOutOfMemoryError=$CATALINA_HOME/bin/restart.sh (혹은 stop.sh). 2. GC Thread 옵션- GC에 대한 Thread 수를 정해야 하는데, 이 Thread수는 전체 CPU Core수 보다 적어야 하고, 2~4개 정도가 적당하다.-XX:ParallelGCThreads=2 -XX:-UseConcMarkSweepGC. 3. GC 로그 옵션GC 로그는 되도록 자세하게 추출할 필요..
. MultipartFile 인터페이스로 작업을 하는 중에 InputStream을 String으로 변환하는 코드를 작성해야하는 일이 생겼는데 처음에는 아래와 같이 코드를 짰다.BufferedReader reader = new BufferedReader(new InputStreamReader(file.getInputStream()));StringBuilder builder = new StringBuilder();while (reader.ready() == true) {builder.append(reader.readLine().trim());}String str = builder.toString();. 그런데 org.apache.commons.io.IOUtils 클래스를 이용하면String str = IOU..
- Total
- Today
- Yesterday
- JQuery
- 알고리즘
- 오라클
- 소켓
- 게임
- HTML
- CSS
- 안드로이드
- 이론
- SVN
- SQL
- 충북대
- 배열
- 졸업작품
- ERP
- 잡담
- 자바스크립트
- 아두이노
- 데이터베이스
- 메모장
- 정보
- 프로젝트
- 자바
- 청주
- 정렬
- jsp
- 도전과제
- 파이썬
- 클래스
- db
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |