Memory Leak in CyclicBehaviour/Receiver Behaviour JADE 2.5??


Subject: Memory Leak in CyclicBehaviour/Receiver Behaviour JADE 2.5??
From: James Aldridge (james.aldridge@fdlearning.com)
Date: Wed Jul 31 2002 - 17:30:40 MET DST


(Apologies if posted more than once - email problems)

Our system is based on a number of agents each with a CyclicBehaviour that
polls for incoming ACL messages. These Cyclic Behaviours (initiated at
agent startup) use a ReceiverBehaviour and MessageTemplates to determine the
incoming message, and call another behaviour(s) based on the template.

I have been testing the system recently, and noticed that as the system is
idling (i.e. no inter-agent messages are being sent, the agents are just
cycling / polling for incoming messages) the memory usage on the machine is
gradually rising.

This is of concern to me because, as far as I can see from my code, there is
no obvious point at which memory leaks may be occuring.

Has anyone else experienced memory leaks using the JADE platform, and in
particular CyclicBehaviour / ReceiverBehaviour?

I have attached a code snippet from one of my agents showing the Cyclic
behaviour (note that this is an inner class of an agent called KPPMonitor).
I am using JADE 2.5, JRE 1.3.1 on Windows NT. Am I doing something stupid
somewhere?

Please note that processor usage is not affected (this remains pretty low
and constant during the cycling).

Any help or guidance would be very much appreciated.

Regards,

James.

James Aldridge
Developer - European Projects
Knowledge On Demand (KOD)
FD Learning Ltd.

james.aldridge@fdlearning.com

The information transmitted in this electronic mail message may contain
confidential and or privileged materials. For full details and restrictions
see http://disclaimer.fdlearning.com




This archive was generated by hypermail 2a22 : Wed Jul 31 2002 - 17:31:18 MET DST