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: [email protected] [[email protected]] on behalf of 
[email protected] [[email protected]]
Sent: Saturday, March 15, 2014 4:30 PM
To: [email protected]
Subject: SNMP4J Digest, Vol 86, Issue 11

Send SNMP4J mailing list submissions to
         [email protected]

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
         [email protected]

You can reach the person managing the list at
         [email protected]

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 <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [SNMP4J] Issue with bulk data loading into
         MOMutableTableModel
Message-ID:
         <[email protected]>
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 <[email protected]>
To: "[email protected]" <[email protected]>
Subject: Re: [SNMP4J] Issue with bulk data loading into
         MOMutableTableModel
Message-ID:
         <[email protected]>
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: '[email protected]'
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 <[email protected]>
To: [email protected]
Subject: Re: [SNMP4J] Issue with bulk data loading into
         MOMutableTableModel
Message-ID: <[email protected]>
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: '[email protected]'
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
[email protected]
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
[email protected]
https://s16675406.onlinehome-server.info/mailman/listinfo/snmp4j


End of SNMP4J Digest, Vol 86, Issue 11
**************************************
_______________________________________________
SNMP4J mailing list
[email protected]
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
[email protected]
https://s16675406.onlinehome-server.info/mailman/listinfo/snmp4j

Reply via email to