Take the 2-minute tour ×

I'm developing an intellij plugin and when i'm trying to run the plugin (or debug it) i keep getting the following error:

Could not create the Java virtual machine. Invalid initial heap size: -Xms128m

The JVM parameters in the Run\Debug configurations are (by default):

-Xms128m -Xmx512m -XX:MaxPermSize=250m -XX:ReservedCodeCacheSize=64m -XX:+UseCodeCacheFlushing -ea -Dsun.io.useCanonCaches=false

So eventually I can't debug or run my code.

share|improve this question
Have you tried setting -Xms to a higher value? –  weltraumpirat Dec 26 '12 at 18:44
@weltraumpirat yes, tried to increas\decrease the value –  axelrod Dec 26 '12 at 18:45
Usually this is because you've made a typo in the options. Hard to tell from your pasted options. I'd try to remove all if them and entering/addung them one at the time again and make sure there's no spaces or things like that in the wrong places. –  Peter Liljenberg Dec 26 '12 at 19:33
add comment

1 Answer

I met the same problem today. I solved this problem by making the checked and select the IDEA Plugin Sdk。My Idea version is 11.1.5. you can try it..

share|improve this answer
add comment

Your Answer


