CJSDN开发者社区 CJSDN开发者社区
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» CJSDN开发者社区 » Java IDE » Eclipse  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
flat modethreaded modego to previous topicgo to next topicgo to back
作者 KeepResident Eclipse plugin
davidself

猫哥

CJSDN高级会员


发贴: 1501
积分: 333
于 2004-08-26 22:26 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
在javaworld tw看到这个,试了试还不错哦,eclipse响应有提高。

http://suif.stanford.edu/pub/keepresident/

The performance of Eclipse (and other large Java applications) has long suffered due to the Windows virtual memory manager. Windows has a tendency to preemptively swap Java processes out of physical memory, even when there is still plenty of physical memory available. This interacts very poorly with Java processes, which do not have good locality and touch a lot of memory. The problem is exacerbated when Java performs garbage collection, which causes the Java process to touch lots of memory that has been paged out to disk. Ever had Eclipse randomly hang for 15-20 seconds? This is most likely the culprit.

I wrote a simple plugin for Eclipse that uses two functions in the Windows API - SetProcessWorkingSetSize() and VirtualLock() - to encourage Windows to keep more of the Eclipse Java process in physical RAM. This plugin adds a preference page where you can adjust the minimum and maximum working set size (i.e. the amount of memory Windows is supposed to keep in physical memory when the process is in use). However, Windows will happily begin swapping out Eclipse below the working set size if the Eclipse window is minimized. By enabling the VirtualLock checkbox, the plugin will force Windows to allocate physical memory, so even when Eclipse is minimized it won't be swapped out. This is very effective in eliminating that sluggishness in Eclipse after not using it for a while.

(Yes, this is an evil nasty hack. But it's an evil nasty hack that works really well.)



--108的上铺--
davidself@twitter

Mastering Spring MVC 3
作者 Re:KeepResident Eclipse plugin [Re:davidself]
think





发贴: 240
积分: 91
于 2004-08-27 08:48 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
虚拟内存交换确实有点讨厌。

另外这个插件好像基于Eclipse3.0,wsad下用不了


think edited on 2004-08-27 09:00


最新的帖子居然是去年的
作者 Re:KeepResident Eclipse plugin [Re:davidself]
zerol

Soul of New Machine



发贴: 593
积分: 61
于 2004-08-27 14:38 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
davidself wrote:
eclipse响应有提高。


请问哪些响应有所提高?



★☆ The Truth Lies Somewhere In The Middle ☆★ 

Mastering Spring MVC 3
作者 Re:KeepResident Eclipse plugin [Re:davidself]
sanigo

给我三刀吧

版主


发贴: 508
积分: 395
于 2004-08-27 14:57 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
内存大,把虚拟内存设为0,比较爽


明天的明天的明天的明天

Mastering Spring MVC 3
作者 Re:KeepResident Eclipse plugin [Re:zerol]
think





发贴: 240
积分: 91
于 2004-08-27 16:10 user profilesend a private message to usersearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
那个virtualLock就是达到这个效果的。



最新的帖子居然是去年的

flat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2010 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号
客服电话 18950077788    客服信箱 support@cjsdn.net    客服QQ 714913