andyzhai

posts(9) comments(2) trackbacks(0)
  • BlogJava
  • 联系
  • RSS 2.0 Feed 聚合
  • 管理

常用链接

  • 我的随笔
  • 我的评论
  • 我的参与
  • 最新评论

留言簿

  • 给我留言
  • 查看公开留言
  • 查看私人留言

随笔档案

  • 2006年3月 (1)
  • 2006年2月 (3)
  • 2005年8月 (5)

搜索

  •  

最新评论

  • 1. re: Memory Leak of Java Editors in Eclipse
  • Yes, should take snapshot after opening editor.I have to modify it
  • --Andy
  • 2. re: Memory Leak of Java Editors in Eclipse
  • Did you know Eclipse load images into ImageRegistry in lazy mode??
  • --Dennis

阅读排行榜

评论排行榜

View Post

Memory Leak of Java Editors in Eclipse

I found that the Java Editor in Eclipse didn't return the resource of some Images after display dispose by using Sleak Tool (it can be downloaded from
 http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/platform-swt-home/dev.html#tools.) This may lead to memory leaks in JVM Heap dump.
Steps:
1. Download and install the Sleak. ( It's helpful to download performance tool to run Garbage Collector in order to get more precise result )
2. Click the "Snap" before opening an .java file ( If Run "Garbage Collector" in performance menu before this operation, we can assure we are get rid of unused (untouched) objects in java heap)
3. Open and exit .java file. Click "Diff" ( Again, Run GC before this operation )

(Note:  Don't click Snap twice, clicking Diff means taking snap for current environment and then compare)   

Sometimes, one incremental image occured. Sometimes, more seriously, 11 incremental images still live in memory. Most of them are the Icon Images of Buttons in "Outline" view.  

posted on 2005-08-09 05:51 Andy 阅读(645) 评论(2)  编辑  收藏

View Comments

# re: Memory Leak of Java Editors in Eclipse  回复  更多评论   
Did you know Eclipse load images into ImageRegistry in lazy mode??
2005-08-09 11:03 | Dennis
# re: Memory Leak of Java Editors in Eclipse  回复  更多评论   
Yes, should take snapshot after opening editor.I have to modify it
2005-08-10 04:26 | Andy
新用户注册  刷新评论列表  

只有注册用户登录后才能发表评论。


网站导航:
博客园   IT新闻   Chat2DB   C++博客   博问   管理
 
 
Powered by:
BlogJava
Copyright © Andy