Hi Frank ,
We observe a issue when we send continuous get /getbulk request from client to agent few of the requests even though it is sent from agent and received in the client system it doesn’t seems to be processed from snmp4j . Due to which it waits for timeout which is set(we have it as 1 min) and then does a retry as set in the retry and in retry it gets immediately processed .
Due to this issue we are facing lot of delay in managing/supervising the agent .
The delay is reduced if we reduce the timout which is set that would cause issue when there is actual delay in network .
In the below snapshot you can observe the same data(considering the request response size ) which is received is again requested after 1 min and is processed in the next response .
We have verified agent logs and related logs in client side and see this keeps occurring frequently
snmp4j logs during this time frame:
Adding operation 4 for: SocketEntry[peerAddress=135.250.142.51/10161,socket=Socket[addr=135.250.142.51/135.250.142.51,port=10161,localport=57606],lastUse=Fri Jan 09 16:49:40 IST 1970,inNetBuffer=java.nio.HeapByteBuffer[pos=811 lim=32768 cap=32768],inAppBuffer=java.nio.HeapByteBuffer[pos=0 lim=32768 cap=32768],outNetBuffer=java.nio.HeapByteBuffer[pos=0 lim=32768 cap=32768],socketTimeout=null]
Sending message with length 97 to 135.250.142.51/10161: 30:5f:02:01:03:30:10:02:03:00:d9:bf:02:03:00:80:00:04:01:04:02:01:04:04:00:30:46:04:0c:00:00:1d:3b:00:00:00:a1:87:fa:8e:33:04:00:a3:34:02:04:2e:d4:52:58:02:01:00:02:01:00:30:26:30:24:06:1f:2b:06:01:04:01:ba:3b:02:01:01:02:2d:01:01:04:0f:31:33:35:2e:32:34:39:2e:31:36:37:2e:32:32:38:02:01:02
Writing TLS outNetBuffer(PAYLOAD): java.nio.HeapByteBuffer[pos=0 lim=118 cap=32768]
Wrote TLS 118 bytes from outNetBuffer(PAYLOAD)
Payload sent completely
…
Adding operation 4 for: SocketEntry[peerAddress=135.250.142.51/10161,socket=Socket[addr=135.250.142.51/135.250.142.51,port=10161,localport=57606],lastUse=Fri Jan 09 16:50:40 IST 1970,inNetBuffer=java.nio.HeapByteBuffer[pos=539 lim=32768 cap=32768],inAppBuffer=java.nio.HeapByteBuffer[pos=0 lim=32768 cap=32768],outNetBuffer=java.nio.HeapByteBuffer[pos=0 lim=32768 cap=32768],socketTimeout=null]
Key is writable
Sending message with length 97 to 135.250.142.51/10161: 30:5f:02:01:03:30:10:02:03:00:d9:c1:02:03:00:80:00:04:01:04:02:01:04:04:00:30:46:04:0c:00:00:1d:3b:00:00:00:a1:87:fa:8e:33:04:00:a3:34:02:04:2e:d4:52:58:02:01:00:02:01:00:30:26:30:24:06:1f:2b:06:01:04:01:ba:3b:02:01:01:02:2d:01:01:04:0f:31:33:35:2e:32:34:39:2e:31:36:37:2e:32:32:38:02:01:02
Writing TLS outNetBuffer(PAYLOAD): java.nio.HeapByteBuffer[pos=0 lim=118 cap=32768]
Wrote TLS 118 bytes from outNetBuffer(PAYLOAD)
Payload sent completely
Can you please help us with issue as this is having lot of impact w.r.t time taken in managing the agent.
Please let us know if you need further details.