2016-05-24 81 views
1

當我嘗試在win7中啓動jdk1.8.0_65-b17時,使用如下命令:javac Test.java,java直到99%需要更多的物理內存,但它無法啓動。無法啓動jdk 1.8.0_65-b17

以前有人遇到過這個問題嗎?

C:\Program Files\Java\jdk1.8.0_65\bin>java -version 
java version "1.8.0_65" 
Java(TM) SE Runtime Environment (build 1.8.0_65-b17) 
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode) 

順便說一句,這需要將近一分鐘打印此版本信息。

C:\Program Files\Java\jdk1.8.0_65\bin>java -Xshare:dump Allocated shared space: 37879808 bytes at 0x0000000800000000 Loading classes to share ... Loading classes to share: done. Rewriting and linking classes ... Rewriting and linking classes: done Number of classes 2482 instance classes = 2468 obj array classes = 6 type array classes = 8 Calculating fingerprints ... done. Removing unshareable information ... done. Shared Lookup Cache Table Buckets = 8216 bytes Shared Lookup Cache Table Body = 64792 bytes ro space: 6881424 [ 36.3% of total] out of 16777216 bytes [41.0% used] at 0x0000000800000000 rw space: 10456280 [ 55.2% of total] out of 16777216 bytes [62.3% used] at 0x0000000801000000 md space: 1562448 [ 8.3% of total] out of 4194304 bytes [37.3% used] at 0x0000000802000000 mc space: 34053 [ 0.2% of total] out of 131072 bytes [26.0% used] at 0x0000000802400000 total : 18934205 [100.0% of total] out of 37879808 bytes [50.0% used] An error has occurred while processing the shared archive file. Unable to create shared archive file C:\Program Files\Java\jdk1.8.0_65\jre\bin\server\classes.jsa. Error occurred during initialization of VM Unable to use shared archive. 同時,我也發現了很多的的 「TBM ***。TMP」 的文件大約40G的文件夾 「\ jdk1.8.0_65 \ JRE \ lib中\分機\」,在完全,有誰熟悉這件事嗎?​​

+0

'javac Test.java',我有正確的我的帖子。我有8G RAM,50%正常使用,不應該是少量的內存問題。 –

+0

您是否嘗試過任何診斷選項'-verbose'或'-Xdiag'? – Holger

+0

我剛剛做到了。嘗試'-Xdiag'沒有像以前那樣記錄。 –

回答

0

這不是一個答案,但很好,試圖解鎖你。

  • 你最近升級到jdk-8嗎?
  • 如果是,你可以卸載當前的jdk,重啓機器並安裝jdk-8?根據你的機器,選擇64位或32位的jdk-8。