Amos N.
Amos N.

Reputation: 627

Memory leak in Flex application

I'm facing with a memory leak in my Flex application. The Flex application is part of a big web application (with all kinds of technologies inside).

The memory leak occurs when the Flex app invokes a refresh polling from the server every 5 sec.

The facts are:

My conclusions till now are:

My requests:

Thanks

Upvotes: 2

Views: 1252

Answers (2)

srinathhs
srinathhs

Reputation: 2038

We also have the same problem. The JVM goes out of memory every 24 - 50hrs. I have documented a working fix for the problem on the JVM side.

Fixing blazeds memory leak

Upvotes: 2

Mike Petty
Mike Petty

Reputation: 949

Like all objects, at some point pointers need to be declared null to make it eligible for GC. With the AMFChannel object, your best method to this is to setup listeners for both the channelDisconnect and the channelFault events. Provided you have a class member reference to the instance, from either of these event handlers, you declare it null.

To determine if you should call disconnect from the client side, you can look at the properties of: shouldBeConnected and connected.

Upvotes: 0

Related Questions