eclipse啟動時 failed to create the java virtual machine 解決辦法

來源:互聯網
上載者:User

轉載請標明:大飛_Rflyee:http://blog.csdn.net/Rflyee/article/details/8958165

重新安裝jdk之後,遇到這樣的問題“failed to create the java virtual machine”。google了一下,找到了合適的解決辦法及解釋:

解決步驟:

1、開啟eclipse解壓目錄下的設定檔eclipse.ini;

2、找到

     --launcher.XXMaxPermSize

     256M

   並改為

     --launcher.XXMaxPermSize

     128M

注意:該值對應的有兩處,即需要修改兩處。

3、儲存,啟動eclipse;

問題解釋:

eclipse設定檔中將啟動並執行方法區(Perm Gen)最大值設定為256M甚至更大,其實128M足矣;eclipse運行時檢查記憶體情況以保證其能正常運行,但是本機記憶體不足,故警告不能正常運行。此時將MaxPermSize設定為128M即可。也就是相當於降低了運行門檻。


根據網友的反映,關於eclipse.ini的配置資訊,

大家可以參考http://blog.csdn.net/rflyee/article/details/21005667

或者官方文檔:http://wiki.eclipse.org/Eclipse.ini#-vm_value%3a_Windows_Example

轉載請標明:大飛_Rflyee:http://blog.csdn.net/Rflyee/article/details/8958165


聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.