[SNMP4J] SNMP4J Digest, Vol 86, Issue 11

Frank Fock fock at agentpp.com
Sat Mar 15 17:21:17 CET 2014


Hi Vikram,

You should implement a caching and not update the table that frequently.
The agent cannot respond to requests while the updating thread is in the
synchronized {...}  block.

If you have purchased SNMP4J-AgentX you could also use the
BufferedMOTableModel which is available in the latest SNMP4J-AgentX snapshot
release (version 2.2 will be released within the next 14 days).

Best regards,
Frank


Am 15.03.2014 16:55, schrieb VIKRAM MODUGU:
> Hi Frank,
>
> When we have put heavy load on on snmp agent, it seems the agent is becoming unresponsive for some time tentatively.
> There is other scenario, where are getting the time out from the snmp agent.
>
> Can you pls give me the scenarios where all the possibilities of getting snmp time out message when we do the snmp walk?
>
> did you find fault in our implementation of updating the table model.
>
>
> Thanks,
> Vikram.
> ________________________________________
> From: snmp4j-bounces at agentpp.org [snmp4j-bounces at agentpp.org] on behalf of snmp4j-request at agentpp.org [snmp4j-request at agentpp.org]
> Sent: Saturday, March 15, 2014 4:30 PM
> To: snmp4j at agentpp.org
> Subject: SNMP4J Digest, Vol 86, Issue 11
>
> Send SNMP4J mailing list submissions to
>          snmp4j at agentpp.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
>          https://s16675406.onlinehome-server.info/mailman/listinfo/snmp4j
> or, via email, send a message with subject or body 'help' to
>          snmp4j-request at agentpp.org
>
> You can reach the person managing the list at
>          snmp4j-owner at agentpp.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of SNMP4J digest..."
>
>
> Today's Topics:
>
>     1. Issue with bulk data loading into MOMutableTableModel
>        (VIKRAM MODUGU)
>     2. Re: Issue with bulk data loading into MOMutableTableModel
>        (VIKRAM MODUGU)
>     3. Re: Issue with bulk data loading into MOMutableTableModel
>        (Frank Fock)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 14 Mar 2014 11:47:10 +0000
> From: VIKRAM MODUGU <VIKRAM.MODUGU at adtran.com>
> To: "snmp4j at agentpp.org" <snmp4j at agentpp.org>
> Subject: [SNMP4J] Issue with bulk data loading into
>          MOMutableTableModel
> Message-ID:
>          <D378A260F65530448F6D5F4B5CEA7C7E28600793 at ex-mb1.corp.adtran.com>
> Content-Type: text/plain; charset="us-ascii"
>
> HI,
>
>
> We have seen the snmp4j agent is crashing when heavy load is being put on the snmp4j agent.
>
> We have a scenario of having 50k records in a particular  mib table, here we are giving how we are loading the content into the motable model.
>
>
>
>                  MOMutableTableModel model = (MOMutableTableModel) table.getModel();
>
>                                                  synchronized (model) {
>
>                                                                  model.clear();
>
>                                                                  Map<Integer, String> domainMap = postgresServ.getAllAvailableDomains();
>
>                                                                  logger.info("Acquired the lock on associated clients table model.");
>
>                                                                  List<AssociatedClient> assocClientList = redisServ
>
>                                                                                                  .getAssociatedClientsInfo();
>
>
>
>                                                                  int recCount = 1;
>
>                                                                  for (AssociatedClient client : assocClientList) {
>
>                                                                  model.addRow(new DefaultMOMutableRow2PC(),Variable[]);
>
> }
>
> }
>
> This table content is very dynamic in nature, they change very frequently. Can you pls clarify us if there is something wrong we are doing?
>
> We are using snmp4j agent version 2.1.0 and snmp4j api version 2.0.2.
>
>
>
> Thanks,
> Vikram Modugu.
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 14 Mar 2014 12:07:39 +0000
> From: VIKRAM MODUGU <VIKRAM.MODUGU at adtran.com>
> To: "snmp4j at agentpp.org" <snmp4j at agentpp.org>
> Subject: Re: [SNMP4J] Issue with bulk data loading into
>          MOMutableTableModel
> Message-ID:
>          <D378A260F65530448F6D5F4B5CEA7C7E286007A8 at ex-mb1.corp.adtran.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Hello Helpdesk,
>
> With this load the snmp agent is crashing repeatedly.
>
> Thanks,
> Vikram Modugu.
>
> From: VIKRAM MODUGU
> Sent: 14 March 2014 17:17
> To: 'snmp4j at agentpp.org'
> Subject: Issue with bulk data loading into MOMutableTableModel
>
> HI,
>
>
> We have seen the snmp4j agent is crashing when heavy load is being put on the snmp4j agent.
>
> We have a scenario of having 50k records in a particular  mib table, here we are giving how we are loading the content into the motable model.
>
>
>
>                  MOMutableTableModel model = (MOMutableTableModel) table.getModel();
>
>                                                  synchronized (model) {
>
>                                                                  model.clear();
>
>                                                                  Map<Integer, String> domainMap = postgresServ.getAllAvailableDomains();
>
>                                                                  logger.info("Acquired the lock on associated clients table model.");
>
>                                                                  List<AssociatedClient> assocClientList = redisServ
>
>                                                                                                  .getAssociatedClientsInfo();
>
>
>
>                                                                  int recCount = 1;
>
>                                                                  for (AssociatedClient client : assocClientList) {
>
>                                                                  model.addRow(new DefaultMOMutableRow2PC(),Variable[]);
>
> }
>
> }
>
> This table content is very dynamic in nature, they change very frequently. Can you pls clarify us if there is something wrong we are doing?
>
> We are using snmp4j agent version 2.1.0 and snmp4j api version 2.0.2.
>
>
>
> Thanks,
> Vikram Modugu.
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Fri, 14 Mar 2014 16:52:54 +0100
> From: Frank Fock <fock at agentpp.com>
> To: snmp4j at agentpp.org
> Subject: Re: [SNMP4J] Issue with bulk data loading into
>          MOMutableTableModel
> Message-ID: <532325D6.6040404 at agentpp.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hi,
>
> What do you mean with "crashing" exactly?
> Is an exception being thrown?
> Does the agent hang (i.e. not responding anymore)?
>
> Best regards,
> Frank
>
> Am 14.03.2014 13:07, schrieb VIKRAM MODUGU:
>> Hello Helpdesk,
>>
>> With this load the snmp agent is crashing repeatedly.
>>
>> Thanks,
>> Vikram Modugu.
>>
>> From: VIKRAM MODUGU
>> Sent: 14 March 2014 17:17
>> To: 'snmp4j at agentpp.org'
>> Subject: Issue with bulk data loading into MOMutableTableModel
>>
>> HI,
>>
>>
>> We have seen the snmp4j agent is crashing when heavy load is being put on the snmp4j agent.
>>
>> We have a scenario of having 50k records in a particular  mib table, here we are giving how we are loading the content into the motable model.
>>
>>
>>
>>                   MOMutableTableModel model = (MOMutableTableModel) table.getModel();
>>
>>                                                   synchronized (model) {
>>
>>                                                                   model.clear();
>>
>>                                                                   Map<Integer, String> domainMap = postgresServ.getAllAvailableDomains();
>>
>>                                                                   logger.info("Acquired the lock on associated clients table model.");
>>
>>                                                                   List<AssociatedClient> assocClientList = redisServ
>>
>>                                                                                                   .getAssociatedClientsInfo();
>>
>>
>>
>>                                                                   int recCount = 1;
>>
>>                                                                   for (AssociatedClient client : assocClientList) {
>>
>>                                                                   model.addRow(new DefaultMOMutableRow2PC(),Variable[]);
>>
>> }
>>
>> }
>>
>> This table content is very dynamic in nature, they change very frequently. Can you pls clarify us if there is something wrong we are doing?
>>
>> We are using snmp4j agent version 2.1.0 and snmp4j api version 2.0.2.
>>
>>
>>
>> Thanks,
>> Vikram Modugu.
>>
>>
>> _______________________________________________
>> SNMP4J mailing list
>> SNMP4J at agentpp.org
>> https://s16675406.onlinehome-server.info/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 at agentpp.org
> https://s16675406.onlinehome-server.info/mailman/listinfo/snmp4j
>
>
> End of SNMP4J Digest, Vol 86, Issue 11
> **************************************
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> https://s16675406.onlinehome-server.info/mailman/listinfo/snmp4j

-- 
---
AGENT++
Maximilian-Kolbe-Str. 10
73257 Koengen, Germany
https://agentpp.com
Phone: +49 7024 8688230
Fax:   +49 7024 8688231




More information about the SNMP4J mailing list