因為聽說CDT和某個版本java的沖突問題,換了現在的java 6 u10 beta版. 安裝過程中發現新增加了一個quick starter服務。

狗了一下,發現這是u10里面的幾個新特征,旨在增加windows桌面應用的啟動速度,改善用戶體驗。
When JQS is fully enabled, there will be a new Windows Service running called "Java Quick Starter". In TaskManager, the new JQS service is running as "jqs.exe". JQS improves initial startup time for applets and applications by reducing the disk I/O required. This is achieved by periodically prefetching some of the most heavily used Java Runtime Environment files into memory (occupying no more than 20Mb of RAM). Later, when Java is launched, much less disk I/O is required which makes startup much snappier and noticeably faster.

亦即在windows啟動時即啟動一個服務,將jre需要的重要文件預先裝載入內存,這樣java應用啟動的時候可以節約這個時間。內存消耗不大,20m以內。這個特性可以在控制面板的java console中的高級選項里進行開關。

雖然windows本身也能提供這種預讀技術,但是sun自認為他們能做的比ms更好,對此也做了解答。

按文檔所言做了下對比測試,沒找到applet,對應用的測試則感覺此項服務開關時差距并不明顯,啟動速度都比之前版本有提高,可能u10版本整有比較大改善吧。

其實java 6本身已經提供的類似cache機制已經能比較快的啟動應用了,可以發現,應用在第二次啟動的時候,會明顯快過第一次。
比如eclipse, 第一次啟動40秒,第二次10秒,另外一個小工具也是5秒到1秒。

sun為此專門設定了一個論壇,討論此項技術,從論壇上看,大部分人對此項技術的效果持肯定態度,主要是集中在瀏覽器中的applet體驗這塊,不過,現在還有applet么?。


這個設計還是偷梁換柱而已,想起以前sun公司的一個工程師培訓時說的話,系統的性能關鍵是你給用戶的感覺,呵呵。u10的另外一個特性核心安裝也是這個概念, 把jre切分成若干塊,先安裝核心部分,再延遲安裝其他部分。

目前這項技術還只能在win2k和xp上使用,未來會逐步推廣。在我的老本上,jqs會占用4-5秒的啟動時間,期間有假死跡象。
根據c&c的原則,未來我們可能也會看到ms采用類似技術處理.net。

用戶以后看來還是養成不關機的習慣比較好。

ps 現在也可以在linux下進行安裝,參考下文
 Jacek

This is *not* true. I have installed update N on two Ubuntu installations and it runs without problems.

It appears that the packaging did not include an _installer_ for Linux. What you get is a directory (for me, the JDK directory), which you then need to link in to your browser. See http://forums.java.net/jive/thread.jspa?threadID=31412&tstart=0

It's not much effort for a developer and I expect a proper installer is forthcoming.

I've already spent quite a few hours testing applets using Firefox on Ubuntu Feisty. No problems, great performance. I think they can still improve but this is a big step forward.

This is a _packaging_ issue. Please try and run some manual tests yourself before posting a news item like this on JL. It will likely spread to blogs and other news sites and take days to quiet down.

The focus now, I think, should be on testing the new release and providing feedback. There is a list of forums to post to on the download page