錯誤:
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.Conflicting collector combinations in option list; please refer to the release notes for the combinations allowed
解決思路:
出現上面的bug的問題可能存在很多,但是在學習使用各種參數的時候,也許會有人在選擇使用哪種垃圾收集器時候,一下子給出了多個參數導致的問題,解決方案就是 GC子系統最多隻能選擇一種垃圾收集策略。下面就是因爲我在這裏使用了兩種垃圾收集策略導致的,這是我在提出這個想法的時候去做的實驗。把其中一個去掉就好了。
完。