다음과 같은 오류 발생 - Java 6 + tomcat 7 + thread 25 (=> 800 req / 1 thread) -> 20000 건 처리 시간 63초
계속 실행하니 다음과 같은 오류가 발생.
INFO: I/O exception (java.net.BindException) caught when processing request to {}->http://127.0.0.1:9443: Address already in use: connect
Jun 3, 2020 10:16:01 AM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {}->http://127.0.0.1:9443
Jun 3, 2020 10:16:01 AM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {}->http://127.0.0.1:9443
Jun 3, 2020 10:16:01 AM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {}->http://127.0.0.1:9443
Jun 3, 2020 10:16:01 AM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.BindException) caught when processing request to {}->http://127.0.0.1:9443: Address already in use: connect
Jun 3, 2020 10:16:01 AM org.apache.http.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.BindException) caught when processing request to {}->http://127.0.0.1:9443: Address already in use: connect
Jun 3, 2020 10:16:01 AM org.apache.http.impl.execchain.RetryExec execute
INFO: Retrying request to {}->http://127.0.0.1:9443
private static final AtomicLong LAST_TIME_MS = new AtomicLong();
private static long uniqueCurrentTimeMS() {
long now = System.currentTimeMillis();
while (true) {
long lastTime = LAST_TIME_MS.get();
if (lastTime >= now)
now = lastTime + 1;
if (LAST_TIME_MS.compareAndSet(lastTime, now))
return now;
}
}