How much heap space can IDEA get?

Why can't I specify a large -Xmx option in idea.exe.vmoptions ? The most memory I can allocate is 690MB, otherwise it crashes and launches a message box saying "The JVM could not be started. The main method may have thrown an exception"

I'm using IDEA 7.0.2 #7590 on an dual core amd athlon and win xp 64bit

0
Avatar
Permanently deleted user
0
Avatar
Permanently deleted user

Mmm.. no, nothing useful:) my problems have nothing to do with that. Maybe it's just a java64 issue.

0

It's a JVM limitation specific to your environment. On some systems it's not possible to use more than 600-1024 MB for the JVM heap.

Workaround is to run IDEA under 64-bit JVM. You can do it by setting IDEA_JDK environment variable pointing to the 64-bit JDK 1.6.0 installation. See Help | About to check that your are running under correct JVM.

In most cases 512 MB heap should be enough for IDEA. Larger heap is usually an overkill except if you have a very large project or several projects open at a time.

0
Avatar
Permanently deleted user

I installed a 1.6.0_04 64-bit JDK, and IDEA says that IDEA_JDK doesn't point to a working JDK/JRE

0

What's the value of IDEA_JDK?

0

What's the value of IDEA_JDK?

0
Avatar
Permanently deleted user

on my configuration IDEA_JDK=d:\jdk1.6.0_04

0

Try reinstalling this JDK. What's the output of d:\jdk1.6.0_04\bin\java.exe --version?
Does it have tools.jar in the lib directory?

0

Try reinstalling this JDK. What's the output of d:\jdk1.6.0_04\bin\java.exe --version?
Does it have tools.jar in the lib directory?

0
Avatar
Permanently deleted user

I just did a fresh install of this JDK, after you suggested that I should run IDEA with a 64bit JVM. Why would I reinstall it?

java. exe says this:
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b19, mixed mode)

And it has lib/tools.jar, since it's a brand new (successful) installation of the JDK

0

What happens if you run it with idea.bat (see attached if you don't have it). Place it in IDEA_HOME\bin and run.



Attachment(s):
idea.zip
0
Avatar
Permanently deleted user

With idea.bat it works:) And without any IDEA_JDK variable set or any 64bit jvm.. with -Xmx1024m

0
Avatar
Permanently deleted user

Sorry, my mistake.. it works, but with the 64bit JVM I just installed, specified by IDEA_JDK. But how is this possible? Why only from the batch file?

0

idea.exe created with exe4j is probably confused with multiple JDKs available. Try removing the jre subdirectory from IDEA_HOME.

0

请先登录再写评论。