Sorry, wrong subject....

-------------------------


Hi all,

During my work on the ElectroCodeoGram (www.electrocodeogram.org), which
is using the HackyStat sensorshell.jar as a Component I'm running into
some trouble.

My code uses the SensorShell.doCommand() method to check if event data
is a valid in respect to the known SensorDataTypes (SDT). So far this
works well for me. If the event is a valid SDT event, doCommand()
returns true and otherwise it returns false.

But if am using doCommand() over and over again the JVM crashes with a
java.lang.OutOfMemeoryError after some time.

I never connect the SensorShell to a HackyStat server, so I guess that
every event that is passed into the SensorShell via doCommand() is
creating Objects with references that are never released. So the Java
heap-size growths until the OutOfMemeoryError is thrown.

I already tried to invoke the OfflineManager.clear() command with no
effect.

Is there any way of releasing the memory occupied by the SensorShell
without having to write into the SensorShell's code?

Cheers,

Frank

Reply via email to