Hi Vinod, You do not have to change anything on OS level. With SNMP you cannot send packets that exceed 64K. But I do not think that this is the problem here. I guess that you modify the PDU contents while it is being encoded. Have you checked that already?
Best regards, Frank Am 18.11.2011 05:53, schrieb vinod: > Hi, > > I am facing the Buffer OverFlow Exception when trying to do send a snmp > packet. The Stack Trace is given below. > > java.nio.BufferOverflowException > at java.nio.Buffer.nextPutIndex(Buffer.java:513) > at java.nio.HeapByteBuffer.put(HeapByteBuffer.java:163) > at org.snmp4j.asn1.BEROutputStream.write(BEROutputStream.java:64) > at org.snmp4j.asn1.BER.encodeHeader(BER.java:119) > at org.snmp4j.smi.Null.encodeBER(Null.java:99) > at > org.snmp4j.smi.VariableBinding.encodeBER(VariableBinding.java:181) > at org.snmp4j.PDU.encodeBER(PDU.java:528) > at org.snmp4j.mp.MPv1.prepareOutgoingMessage(MPv1.java:132) > at > org.snmp4j.MessageDispatcherImpl.sendPdu(MessageDispatcherImpl.java:444) > > I had increased all the memory limits in linux and still facing this > problem very often. Kindly guide me in solving the problem. > > Thanks, > Vinod Kumar Boppanna > > _______________________________________________ > SNMP4J mailing list > SNMP4J@agentpp.org > http://lists.agentpp.org/mailman/listinfo/snmp4j -- --- AGENT++ Maximilian-Kolbe-Str. 10 73257 Koengen, Germany https://agentpp.com Phone: +49 7024 8688230 Fax: +49 7024 8688231 _______________________________________________ SNMP4J mailing list SNMP4J@agentpp.org http://lists.agentpp.org/mailman/listinfo/snmp4j