20061102 Thursday November 02, 2006

IDEA 6 on OS X and Out of Memory Errors Ever since I upgraded to IDEA 6.0.1 on OS X, I've been getting Out of Memory errors like no tomorrow. It seems like it's leaking memory when I'm not even using it. Today, I went to lunch shortly after opening IDEA to do some work. When I came back, I was created with the following dialog:

OOM Error Dialog

I've set my Info.plist to have -Xms256m -Xmx512m -XX:MaxPermSize=256m, but it doesn't seem to help. How has your IDEA 6 experience been on OS X? Are you running out of memory? I haven't had any issues on Windows - maybe it's a problem with the MacBook Pro?

I fully expect the IDE zealots to say "use NetBeans or use Eclipse". Eclipse doesn't support hierarchical projects, so that won't work. I'm willing to try NetBeans if I can run something like "mvn netbeans:netbeans" and if it supports hierarchical projects like IDEA does. Posted in Java at Nov 02 2006, 08:06:39 PM MST 15 Comments

Comments:

I think the real solution could be to wait a little longer (beyond 6.0.1) before upgrading to the 6.x branch. Did you notice how quickly the 6.0.1 release came out after 6.0?

Are there some 'killer' features in 6 that you must have?

Justin
- who has downgraded to 5.1.2 after a few too many issues with the 6 branch (on windows)

Posted by Justin on November 02, 2006 at 09:23 PM MST #

IDEA 6 really, really needs to bake more. It's pretty unstable, especially wrt its new SVN caching. I've found a narrow path where I can keep it running for relatively long periods of time, but many in my office have downgraded back to 5.1.2 until it stabilizes more.

Posted by shaug on November 02, 2006 at 10:31 PM MST #

6.0.1 released in 1 week after 6.0 with memory & debugger issues fixed. I upgraded 5.1.2 on my home computer & try to use -server key for VM. this is strange but 6.0 eats less memory than 5.1.2 & works fine for my project. but I should say that my project relatively small. One feature i don't like in new version. I don't see the ability to combine libraries for module. In 5.1.2 we have 2 lists with check boxes.One for project and one for global. But now I don't know how can i do it. p.s. thanks Matt for your work.Use Appfuse in our home grown application for contracts management and save much time. excuse me for bad english.

Posted by Anton Fedotov on November 02, 2006 at 10:57 PM MST #

Matt, there's no need for "mvn netbeans:netbeans" http://mevenide.codehaus.org/m2-site/index.html is the answer... Reads directly the poms, no extra files created + exceptionally high quality.

Posted by Andreas Andreou on November 03, 2006 at 12:24 AM MST #

Matt: Several people on my team at work (including me) have been running IDEA 6 since late in the EAP, and now 6.0 and 6.0.1. We're using a range of G5 macs and Core Duo macs, and I don't think any of us have seen the OOM errors you are seeing. Are you running this on JDK5, or Apple's preview JDK6? Shaug: The one killer feature for me in 6.0 is the Changes tab, or change list support. The fact that I can now logically group my changes as I make them and not have to remember what changes need to get checked in together is great. If you tend to have multiple changes in flight at any time it's a god send. The other great feature (if you're a mac user) is the out of the box availability of the quaqua look and feel.

Posted by Tim Fennell on November 03, 2006 at 07:18 AM MST #

I haven't tried idea on Mac, just installed on Linux. Netbeans is pretty good for a free IDE and has most of the features all bundled without requiring plugins. I must say, once you have used IDEA you are always longing for it and you keep coming back to it. Netbeans is a decent alternative in the free world.

Posted by Muthu Ramadoss on November 03, 2006 at 10:20 AM MST #

Tim - I'm running IDEA on JDK5.

Posted by Matt Raible on November 03, 2006 at 10:33 AM MST #

When I contacted jet brains about all the issues we were having with version 6, they sent me this link to a beta of 6.0.2. This has solved a number of issues for us around cpu and memory use. Might be worth a try. http://www.jetbrains.net/confluence/display/IDEADEV/Home

Posted by Jason on November 03, 2006 at 10:46 AM MST #

What do you mean by "hierarchical project" in Eclipse? Since Eclipse 3.2, Eclipse can handle "overlapping" project that are in sub-folders of an existing project/within the workspace, such as your typical Maven multi-project.

Posted by Stephen Duncan Jr on November 03, 2006 at 11:34 AM MST #

Stephen - if you can checkout AppFuse 2.0, run "mvn eclipse:eclipse", and open the project in Eclipse successfully - I'll believe you. ;-)

AFAIK, the only way to get nested projects supported is to rename your .project files and import nested projects.

Posted by Matt Raible on November 03, 2006 at 12:57 PM MST #

Jason - thanks for the tip about 6.0.2 Beta as well as the Maven 2 Plugin. I downloaded both - the M2 Plugin looks good, but doesn't seem as polished as the NetBeans plugin.

Posted by Matt Raible on November 03, 2006 at 01:14 PM MST #

What plugins do you have installed? I know that the "Problems" plugin would drive IDEA 6 out of memory in a few hours (both on OS X and XP)

Try removing your plugins, and see if the problem goes away. Once I removed the "Problems" plugin, I was able to leave IDEA running for days with two very large projects loaded.

Since a plugin runs in IDEA, if the plugin has a memory leak, it'll affect IDEA.

Other than this, IDEA 6 and OS X seem to coexist happily for me. And I work on big, big projects.

Good luck!

Douglas Bullard

Posted by Douglas Bullard on November 06, 2006 at 09:26 AM MST #

I've been running IDEA 6.0.1 on my MacBook Pro with 5 modules in a hierarchy consiting of about 120kloc and no issues so far. I did have OOM issues with 6.0.0 though.

Posted by Todd Huss on November 07, 2006 at 08:52 PM MST #

Ok, so I know eclipse has its issues, but I'm working with a maven2 project structure very similar to AppFuse2 (actually it's sort of based on it, so thanks Matt...) and what I've been doing for both AppFuse2 and my project is to check the whole thing out, then do mvn eclipse:eclipse on the individual modules as needed. This is on Eclipse 3.2.1. From what people are saying, it seems the NetBeans Maven plugin is nicer than the eclipse one, but the eclipse one works if you fix up your build path after running mvn eclipse:eclpse. It'd be nice if the plugin and mvn eclipse:eclipse cooperated.

It's a little painful at first, but it does work. You do need to increase your MaxPermSize in eclipse too of course. My current hope is that not too many people on our team will have the whole thing checked out once we get going- they'll be able to work on just the module or two that's related to their responsibilities.

I have it on my to-do list to take another look at NetBeans, but free time is as usual, hard to come by and I'm a little worried I'll loose some features (JBoss IDE, WTP, QuantumDB, and a couple others I've gotten used to..)

Posted by bjordan on November 13, 2006 at 05:22 PM MST #

We are using IntelliJ 5 right now but are evaluating 6 for a very large EE application. We are all running on windows xp and have been seeing the same issues you describe. I have increased the memory settings, removed all unused plugins, and changed the inspection levels under the errors section to remove anything I don't use or don't care about. This seems to have made a difference and I seeing performance in line with IntelliJ5. Hope this helps.

Posted by Jason McDonald on January 17, 2007 at 07:38 AM MST #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architect who enjoys developing applications with open source technologies. Contact me for rates.
« January 2009
SunMonTueWedThuFriSat
    
1
2
3
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
       
Today

Recent Entries

Tag Cloud