项目采用的是Consumer的方式。今天在做性能优化时,用Profile发现PollCommandMessageResponder 这个类的数量一直增加,从未减少过。时间长了占用内存很大。 网上搜索结果参看这两个网页: http://forums.adobe.com/thread/706037 https://bugs.adobe.com/jira/browse/SDK-27883?page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel 第二个页面是adobe的bug系统,下面评论有: Mete Atamel added a comment - 09/29/10 10:12 AM Fixed with change 17922 in SDK/hero_private branch. 看起来是解决了,但是版本可能是SDK Hero,也就是4.5。 不确定。 目前似乎没有好的办法。