[JEUS] Connection reset by peer 오류 해결
[현상]
* 속성조회 시 축척이 1000미만인 경우에는 문제 없었으나 2000부터는 아래와 같은 오류 발생.
ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error
[원인]
"ClientAbortException: java.net.SocketException"으로 구글링 결과 아래 내용 발견
Usually, this kind of behaviour occurs when one of the following happens
1.When user make a request, and suddenly browser get closed by user accidentally or due to browser crash
2.When user make a request, and browser closes the http connection automatically due to exceeded content length size
3.When user make a request, and presses the stop button
1.번은 아니라고 하니 2.번일 가능성이 큼.
[해결방안]
1. response.setHeader("Content-Lenght",2048);
2. 제우스 설정파일 수정
WEBMain.xml
<webtob-listener>
...
<output-buffer-size>2048</output-buffer-size> //단위는 byte
...
</webtob-listener>
output-buffer-size 값 조정
("0"으로 설정하면 모든 데이터를 힙메모리에 저장해둔 다음 처리 한다고함)