Memory Leak in BlazeDS


i have used blazeds in an  application push data in realtime. however, have been  experiencing heavy memory leak in application. application has  scheduler pushes data every 1 minute default  queue. without browsers opened, appication remain stable. and  closing browsers cleans flexclient object , other  associated objects browsers. leak occurs when open  , keep browsers long period, 2 3 days. memory usage  of application gradually increases , throws a  "java.lang.outofmemoryerror: java heap space" exception. on analyzing  heapdump, found there thousands of asyncmessage objects  in memory, not getting garbage-collected. channel definiton  congured in services-config.xml file

 

 

        <channel-definition id="my-polling-amf" class="mx.messaging.channels.amfchannel">
            <endpoint url="http://{server.name}:{server.port}/{context.root}/messagebroker/amfpolling" class="flex.messaging.endpoints.amfendpoint"/>
            <properties>
                <polling-enabled>true</polling-enabled>
                <polling-interval-seconds>4</polling-interval-seconds>
                <invalidate-session-on-disconnect>true</invalidate-session-on-disconn ect>
            </properties>
        </channel-definition>

does know cause of issue , how can overcome. please help.

we have same problem. jvm goes out of memory every 24 - 50hrs. have documented working fix problem on jvm side.

http://in-finite.me/fixing-blazeds-polling-amf-memory-leak/@



More discussions in Flex (Read Only)


adobe

Comments

Popular posts from this blog

How to decompile jsxbin to jsx

Gavik Photoslide GK2: Not able to upload photos - Joomla! Forum - community, help and support

Phoca Guestbook logger registret bruger af - Joomla! Forum - community, help and support