IntelliJ and 64bit support

Hello everyone,
I can't find any information on whether or not IntelliJ has a 64bit version. I run 9.0.3 and it runs as a 32bit process. Is there any way to run it as a 64bit process? Does it even matter?
Thanks.

13 comments
Comment actions Permalink

Hello Guy,

This depends on the OS you're using. On Windows with 9.0.x, you can run it
under the 64-bit JDK if you use idea.bat. IntelliJ IDEA 10 will likely include
an .exe launcher for the 64-bit version.

Different people have different opinions on whether it matters. We strive
to ensure that IntelliJ IDEA's memory requirements are low enough not to
need a 64-bit JDK.

I can't find any information on whether or not IntelliJ has a 64bit
version. I run 9.0.3 and it runs as a 32bit process. Is there any way
to run it as a 64bit process? Does it even matter?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

On Mon, 6 Dec 2010 12:14:21 +0000 (UTC), Dmitry Jemerov
<yole@jetbrains.com> wrote, quoted or indirectly quoted someone who
said :

>ntelliJ IDEA 10 will likely include
>an .exe launcher for the 64-bit version.

I am looking forward to a Jet implementation. It does not go to sleep
periodically for GC, at least not to the same extent as the Oracle
JVM.

The Jet people might even give you a compiler. It would be great
advertising for them.

--
Roedy Green Canadian Mind Products
http://mindprod.com

In programming, and documenting programs, keep vocabulary consistent and precisely defined! Variation in vocabulary to relieve the tedium is for novels.

0
Comment actions Permalink

>>  IntelliJ IDEA 10 will likely include an .exe launcher for the 64-bit version.

I see the Mac OS X launcher now supports 64-bit, but don't see an idea64.exe or equivalent in the IDEA 10.0.1 (IU-99.32) /bin dir on my Windows 7 64-bit.

My reasons for running 64-bit is memory. I'm working with a relatively large project and allocating more than 1GB to the JVM for running IDEA really seems to help. I've configured the idea.bat file as a workaround, but was hoping to find there was a 64-bit exe launcher available.

The problem with running the bat file is that a shell window remains open. I've inadvertantly closed it a couple of times, forgetting it was running IDEA. Of course, this kills my IDEA process. It's no biggie, but is a little inconvenient.

As always, thanks for a great product. I know it's tough competing with the "free" IDEs out there, but you all are doing a great job of it.

jack

0
Comment actions Permalink

I downloaded and installed IDEA 10.0.2 using the windows installer. Using the 32-bit IDEA launcher works fine.  However, double clicking on idea64.exe yielded this:

idea64Error.png


JAVA_HOME is set to a 64-bit JDK and the JRE on the path is 64-bit, as shown below:

JDK64.png

I thought adding an environment variable EXE4J_JAVA_HOME to point to the same JDK would fix it, but it didn't.  Not really sure what I did wrong or where to go from here ...

jack

0
Comment actions Permalink

Please provide the values of JDK_HOME and IDEA_JDK environment variables on your system.
Note that if you don't have JDK_HOME (not JAVA_HOME) or IDEA_JDK variable specified, IDEA will use bundled JDK from the /jre directory, which is 32-bit and will not work with idea64.exe.

So, in order to run under 64-bit JDK you must have one of the above environment variables defined and pointing to the 64-bit JDK installation directory.

0
Comment actions Permalink

>>So, in order to run under 64-bit JDK you must have one of the above  environment variables defined and pointing to the 64-bit JDK  installation directory.

Silly me. The error dialog said the JDK defined by EXE4J_JAVA_HOME was not 64-bit, so naturally I should have interpreted that to mean either JDK_HOME or IDEA_JDK needs to be set. :)

I'd like to suggest the installer be modified to ask if 64-bit JDK is to be used and allow its location to be specified during install. Then the installer can set whatever environment variables need to be set. (I think the OS X installer, or maybe its IDEA itself, does ask whether 32-bit or 64-bit JDK is to be used.)

Based on your info, I set both JDK_HOME and IDEA_JDK = C:\swdev\Tools\Java\64bit\jdk1.6.0_23.  I then ran idea64.exe.

It started without that error, but its "Loading project" startup process just churns on after the initial indexing process. A CPU meter widget shows some activity on multiple cores, so I let it run. Every couple of minutes, the window disappears, then reappears, but the progress bar doesn't move.

Interestingly, I noticed the status bar showed the Xmx memory allocated for the IDE as 5459M, even though the idea.exe.vmoptions contains the following:

-Xms128m
-Xmx2048m
-XX:MaxPermSize=512m
-ea

I'm not sure where the 5459M came from.  My workstation has 24GB of RAM, so even a 5GB allocation is ok, though probably excessive for my project needs.

Ten minutes in and IDEA still hasn't started completely ... I'm going to kill the process and go back to launching it with the batch file which works without any of these issues.

Sorry to be such a pain. Part of me hopes others will see the same behavior so we can know it's not just my configuration. Mostly, I hope others have better luck with idea64.exe.

jack

0
Comment actions Permalink

Interestingly, I noticed the status bar showed the Xmx memory allocated for the IDE as 5459M, even though the idea.exe.vmoptions contains the following:

-Xms128m
-Xmx2048m
-XX:MaxPermSize=512m
-ea



Make sure that you don't fall into the Windows 7 file virtualization trap (more on this here). Basically, the file that you see as idea.exe.vmoptions in the IDEA installation directory might not be the same file that IDEA actually uses. Windows virtualizes file access and stores those files in C:\Users\User_name\AppData\Local\VirtualStore but I believe that the application runner does not know about this (IDEA-27241). It would be nice if someone from JetBrains could comment whether they changed the launcher or not.

Hope that helps,
Dirk
0
Comment actions Permalink

I get exactly the same behaviour as Jack - I was running IntelliJ 10 Community Edition in 32 bit just fine.  I upgraded to Ultimate and attempted to run it in 64 bit mode (with idea64.exe) - it can start fine without a project, but if I try o open any of my previous projects it freezes halfway through indexing, and flickers as described above.

Eventually it just freezes altogether, and I end up having to kill it.

Launching the standard idea.exe allows me to open projects once again.  Oh well - no 64 bit IDE for me just yet.

Sean

0
Comment actions Permalink

Try full install instead of patch, verify that Windows didn't virtualize your idea64.exe.vmoptions file. Attach idea.log if the issue remains.

0
Comment actions Permalink

Hi Serge

This was a clean install, Windows wasnt virtualizing anything.  But, interestingly, there was no idea64.exe.vmoptions in my bin directory.  I created one (the same contents as  idea.exe.vmoption) and it all seems to work now.  

Before doing this though, in case it helps you resolve this for others, here is the contents of my idea.log (there was nothing in todays threaddumps-XXXX directory either):

2011-02-19 20:49:14,935 [      0]   INFO -        #com.intellij.idea.Main - ------------------------------------------------------ IDEA STARTED ------------------------------------------------------
2011-02-19 20:49:15,044 [    109]   INFO -        #com.intellij.idea.Main - Using "FocusKiller" library to prevent focus stealing.
2011-02-19 20:49:16,531 [   1596]   INFO - j.ide.plugins.PluginDescriptor - Cannot find plugin CFML Support resource-bundle: messages.CfmlBundlemessages.CfmlBundle
2011-02-19 20:49:16,860 [   1925]   INFO - llij.ide.plugins.PluginManager - Loaded plugins:IDEA CORE, JUnit (1.0), Properties Support, Ant Support (1.0), I18n for Java, UML Support (1.0), Database Support (1.0), Persistence Frameworks Support (1.0), IntelliLang (8.0), SQL support (1.0), Commander (1.0.0), Coverage, DSM Analysis (1.0.0), Emma, Git Integration (8.1), Task Management (1.0), HTML Tools (2.0), Inspection Gadgets (1.0), Intention Power Pack (1.0), J2ME (1.0), Refactor-X (2.01), Structural Search (9.0), GenerateToString (5.0), Type Migration
2011-02-19 20:49:16,860 [   1925]   INFO - llij.ide.plugins.PluginManager - Disabled plugins: SpellChecker (1.0), Copyright (8.1), CSS Support, JavaScript Support (1.0), XPathView + XSLT Support (3.1-Diana), Java Server Pages Integration (1.0), Java EE Integration (1.0), Groovy (9.0), Maven Integration, Android Support (10.0), Spring-AOP and AspectJ support (1.0), ASP (0.1), AspectJ Support (1.0), Bean Validation Support (1.0), JSF Support (1.1.1.), CDI Support (1.0), CFML Support (3.53), ClearCase Integration (2.0), TestNG-J (8.0), CVS Integration (0.1), Plugin DevKit (1.0), Struts 1.x (2.0), Spring Support (1.0), Spring OSGi (1.0), Eclipse Integration (3.0), Flex Support (1.0), FreeMarker support (1.0), Geronimo Integration (1.0), GitHub, Glassfish Integration (1.0), GWT Support (1.0), Google App Engine Integration (1.1.4), Grails/Griffon (9.0), GuiceyIDEA (8.0), hg4idea (10.0), Hibernate Support (1.0), IDEtalk (1.0), JavaScript Debugger (1.0), JBoss Integration (1.0), Inspection-JS (2.0), JavaScript Intention Power Pack (0.9.4), JSR45 Integration (1.0), LESS support, Maven Integration Extension, Osmorc (1.3.4), Perforce Integration (2.0), Remote Hosts Access (0.1), PHP (2), QuirksMode, RELAX-NG Support (1.6), Resin Integration (8.1), SASS support, Seam Support (1.0), Seam Pages Support (1.0), Seam Pageflow Support (1.0), Spring Security (1.0), Spring Web Flow (1.0), Spring Web Services (1.0), Velocity support (1.0), Struts 2 (1.0), Subversion Integration (1.0), Tapestry support (1.0), TFS Integration (1.08.1), Tomcat Integration (1.0), UI Designer, Visual SourceSafe Integration (2.0), W3C Validators (2.0), WebLogic Integration (1.0), WebServicesPlugin (0.9 build 5), WebSphere Integration (1.0), YAML, ZKM-Unscramble (1.0)
2011-02-19 20:49:17,385 [   2450]   INFO - tellij.util.io.storage.Storage - Records table for 'C:\Users\sean\.IntelliJIdea10\system\caches\attrib.dat.storageRecordIndex' haven't been closed correctly. Rebuild required.
2011-02-19 20:49:17,390 [   2455]   INFO - ellij.vfs.persistent.FSRecords - Filesystem storage is corrupted or does not exist. [Re]Building. Reason: FS repository version mismatch
2011-02-19 20:49:17,436 [   2501]   INFO - ellij.vfs.persistent.FSRecords - Marking VFS as corrupted
2011-02-19 20:49:17,472 [   2537]   INFO - api.vfs.impl.local.FileWatcher - Native file watcher is operational.
2011-02-19 20:49:17,676 [   2741]   INFO - .history.utils.LocalHistoryLog - FS has been rebuild, rebuilding local history...
2011-02-19 20:49:17,730 [   2795]   INFO - .intellij.ide.XmlRpcServerImpl - XmlRpc server listening at /127.0.0.1:63342
2011-02-19 20:49:17,741 [   2806]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $APP_CONFIG$/usages.statistics.xml file is null
2011-02-19 20:49:17,741 [   2806]   INFO - .impl.stores.XmlElementStorage - Document was not loaded for $APP_CONFIG$/usages.statistics.xml
2011-02-19 20:49:21,201 [   6266]   INFO - pl.stores.ApplicationStoreImpl - 77 application components initialized in 4194 ms
2011-02-19 20:49:21,289 [   6354]   INFO - ij.openapi.wm.impl.IdeRootPane - App initialization took 6571 ms
2011-02-19 20:49:21,443 [   6508]   INFO - om.intellij.util.ProfilingUtil - Profiling agent is not enabled. Add -agentlib:yjpagent to idea.vmoptions if necessary to profile IDEA.
2011-02-19 20:49:22,595 [   7660]   INFO - i.vcs.changes.ChangeListWorker - [addChangeToList] name: Default change: C:/Users/sean/IdeaProjects/DuplicateFinder/.idea/libraries/image_library.xml vcs: null
2011-02-19 20:49:22,598 [   7663]   INFO - i.vcs.changes.ChangeListWorker - [addChangeToList] name: Default change: C:/Users/sean/IdeaProjects/DuplicateFinder/src/com/seanlandsman/dupelicatefinder/DuplicateFinder.java vcs: null
2011-02-19 20:49:22,602 [   7667]   INFO - i.vcs.changes.ChangeListWorker - [addChangeToList] name: Default change: C:/Users/sean/IdeaProjects/DuplicateFinder/test/com/seanlandsman/dupelicatefinder/DuplicateFinderTest.java vcs: null
2011-02-19 20:49:22,654 [   7719]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $OPTIONS$/dataSources.xml file is null
2011-02-19 20:49:22,655 [   7720]   INFO - .impl.stores.XmlElementStorage - Document was not loaded for $OPTIONS$/dataSources.xml
2011-02-19 20:49:22,667 [   7732]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/dataSources.xml file is null
2011-02-19 20:49:22,668 [   7733]   INFO - .impl.stores.XmlElementStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/dataSources.xml
2011-02-19 20:49:22,689 [   7754]   INFO - ellij.project.impl.ProjectImpl - 106 project components initialized in 896 ms
2011-02-19 20:49:22,783 [   7848]   INFO - .module.impl.ModuleManagerImpl - 1 modules loaded in 94 ms
2011-02-19 20:49:25,941 [  11006]   INFO - .roots.impl.DirectoryIndexImpl - Directory index initialized in 2867 ms
2011-02-19 20:49:25,947 [  11012]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/sqldialects.xml file is null
2011-02-19 20:49:25,947 [  11012]   INFO - .impl.stores.XmlElementStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/sqldialects.xml
2011-02-19 20:49:25,960 [  11025]   INFO - pl.PushedFilePropertiesUpdater - File properties pushed in 17 ms
2011-02-19 20:49:27,574 [  12639]   INFO - ellij.project.impl.ProjectImpl - 71 project components initialized in 43 ms
2011-02-19 20:49:27,575 [  12640]   INFO - .module.impl.ModuleManagerImpl - 0 modules loaded in 0 ms
2011-02-19 20:49:28,642 [  13707]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 2674 ms
2011-02-19 20:49:28,643 [  13708]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 20812 files to update
2011-02-19 20:49:29,425 [  14490]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/sqlDataSources.xml file is null
2011-02-19 20:49:29,425 [  14490]   INFO - .impl.stores.XmlElementStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/sqlDataSources.xml
2011-02-19 20:49:30,901 [  15966]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/fileColors.xml file is null
2011-02-19 20:49:30,901 [  15966]   INFO - .impl.stores.XmlElementStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/fileColors.xml
2011-02-19 20:49:30,992 [  16057]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/projectCodeStyle.xml file is null
2011-02-19 20:49:30,992 [  16057]   INFO - .impl.stores.XmlElementStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/projectCodeStyle.xml
2011-02-19 20:49:30,997 [  16062]   INFO -   git4idea.commands.GitHandler - C:\development\Git\bin\git.exe rev-list --timestamp --max-count=1 HEAD --
2011-02-19 20:49:31,656 [  16721]   INFO -   git4idea.commands.GitHandler - C:\development\Git\bin\git.exe rev-list --timestamp --max-count=1 HEAD --
2011-02-19 20:49:31,767 [  16832]   INFO - nges.UpdatingChangeListBuilder - [processChangeInList-1] entering, cl name: null change: C:/Users/sean/IdeaProjects/DuplicateFinder/.idea/libraries/image_library.xml
2011-02-19 20:49:31,769 [  16834]   INFO - nges.UpdatingChangeListBuilder - [processChangeInList-1] to add to corresponding list
2011-02-19 20:49:31,769 [  16834]   INFO - i.vcs.changes.ChangeListWorker - [addChangeToCorrespondingList] for change C:/Users/sean/IdeaProjects/DuplicateFinder/.idea/libraries/image_library.xml type: MODIFICATION have before revision: true
2011-02-19 20:49:31,769 [  16834]   INFO - i.vcs.changes.ChangeListWorker - [addChangeToCorrespondingList] skip default list: Default type: MODIFICATION have before revision: true
2011-02-19 20:49:31,769 [  16834]   INFO - nges.UpdatingChangeListBuilder - [processChangeInList-1] entering, cl name: null change: C:/Users/sean/IdeaProjects/DuplicateFinder/src/com/seanlandsman/dupelicatefinder/DuplicateFinder.java
2011-02-19 20:49:31,769 [  16834]   INFO - nges.UpdatingChangeListBuilder - [processChangeInList-1] to add to corresponding list
2011-02-19 20:49:31,769 [  16834]   INFO - i.vcs.changes.ChangeListWorker - [addChangeToCorrespondingList] for change C:/Users/sean/IdeaProjects/DuplicateFinder/src/com/seanlandsman/dupelicatefinder/DuplicateFinder.java type: MODIFICATION have before revision: true
2011-02-19 20:49:31,769 [  16834]   INFO - i.vcs.changes.ChangeListWorker - [addChangeToCorrespondingList] skip default list: Default type: MODIFICATION have before revision: true
2011-02-19 20:49:31,770 [  16835]   INFO - nges.UpdatingChangeListBuilder - [processChangeInList-1] entering, cl name: null change: C:/Users/sean/IdeaProjects/DuplicateFinder/test/com/seanlandsman/dupelicatefinder/DuplicateFinderTest.java
2011-02-19 20:49:31,770 [  16835]   INFO - nges.UpdatingChangeListBuilder - [processChangeInList-1] to add to corresponding list
2011-02-19 20:49:31,770 [  16835]   INFO - i.vcs.changes.ChangeListWorker - [addChangeToCorrespondingList] for change C:/Users/sean/IdeaProjects/DuplicateFinder/test/com/seanlandsman/dupelicatefinder/DuplicateFinderTest.java type: MODIFICATION have before revision: true
2011-02-19 20:49:31,770 [  16835]   INFO - i.vcs.changes.ChangeListWorker - [addChangeToCorrespondingList] skip default list: Default type: MODIFICATION have before revision: true
2011-02-19 20:49:31,962 [  17027]   INFO - tor.impl.FileEditorManagerImpl - Project opening took 10191 ms
2011-02-19 20:49:32,482 [  17547]   INFO -   git4idea.commands.GitHandler - C:\development\Git\bin\git.exe rev-list --timestamp --max-count=1 HEAD --
2011-02-19 20:49:32,864 [  17929]   INFO -   git4idea.commands.GitHandler - C:\development\Git\bin\git.exe rev-list --timestamp --max-count=1 HEAD --

0
Comment actions Permalink

Why doesn't the installer automatically detect x86 or x64 and set the desktop icon accordingly? 

Every time I upgrade, I end up having to change the icon to point to the x64 version manually.  If I forget, then I waste more time by getting a message from IDEA that javaHome (?) cannot be found.  However, my JAVA_HOME is set to the correct x64 version of JAVA for my machine!

Please fix this annoying installation behavior for IDEA upgrades on x64 machines... double please!

0

Please sign in to leave a comment.