"ERROR [eive on 8887] uter.transport.udp.UDPReceiver: Dropping inbound packet with 1 queued for 1912 packet handlers: Handlers: 3 handler 0 state: 2 handler 1 state: 2 handler 2 state: 2"

state = 2 means all three handlers are blocking on udpReceiver.receive())
this can legitimately happen if the bandwidth limiter or router throttle chokes the receive for >= 1s.
This commit is contained in:
jrandom
2005-08-08 20:42:13 +00:00
committed by zzz
parent 6a19501214
commit 88b9f7a74c

View File

@ -113,7 +113,7 @@ public class UDPReceiver {
// rejected // rejected
_context.statManager().addRateData("udp.droppedInbound", queueSize, headPeriod); _context.statManager().addRateData("udp.droppedInbound", queueSize, headPeriod);
if (_log.shouldLog(Log.ERROR)) { if (_log.shouldLog(Log.WARN)) {
StringBuffer msg = new StringBuffer(); StringBuffer msg = new StringBuffer();
msg.append("Dropping inbound packet with "); msg.append("Dropping inbound packet with ");
msg.append(queueSize); msg.append(queueSize);
@ -121,7 +121,7 @@ public class UDPReceiver {
msg.append(headPeriod); msg.append(headPeriod);
if (_transport != null) if (_transport != null)
msg.append(" packet handlers: ").append(_transport.getPacketHandlerStatus()); msg.append(" packet handlers: ").append(_transport.getPacketHandlerStatus());
_log.error(msg.toString()); _log.warn(msg.toString());
} }
return queueSize; return queueSize;
} }
@ -146,7 +146,7 @@ public class UDPReceiver {
_inboundQueue.notifyAll(); _inboundQueue.notifyAll();
return rv; return rv;
} else { } else {
_inboundQueue.wait(); _inboundQueue.wait(500);
} }
} }
} catch (InterruptedException ie) {} } catch (InterruptedException ie) {}