Hi All,

  I have developed a Routing Server using Apache Mina 1.1.6.

  Multiple instance of the same server will be taking incoming persistent
connections. The server should drop incoming persistent connections if it is
overloaded. I am using the
  following condition to find out if a server is overloaded.

  My Load > Avg Load * threshold.

  Load = Cumulative bytes that needs to be processed across all the
sessions.

  Is there a way in Mina to get the total no of bytes that are held in its
internal queues i.e. that needs to be processed across all the sessions?

  What do you think about using Runtime.freeMemory to measure the load?

  Is there any other better way to measure the load of a server?

  Thanks in Advance.

Regards,
Jana

-- 
www.vshareride.com
www.pragmaticinvesting.com
www.younag.com

Reply via email to