OutOfMemoryError while running/debugging

Hi everybody,
I'm developing a plugin for IntelliJ 9.x Community Edition on MacOS X 10.6.4
I wrote a simple action and added it to the toolbar as described in the basic tutorial but when I run or debug my plugin project it load the new IntelliJ app but soon I get an OutOfMemoryError in the consol and it freeze so I have to quit it from the task manager. I already tried to pass to the JVM a parameter like -Xmx512M, but got the same result.
Is there anybody else who had this issues and does somebody know how to solve it?
Thank you.

6 comments
Comment actions Permalink

Hi Davide,

You should profile the application in order to check memory distribution and eliminate the leak. Here are the instructions on how to do that.

Denis

0
Comment actions Permalink

I took a look at the advice given by the IntelliJ Team, but none of them seems to match my current situation. The more promising was the last one about tuning the heap of the JVM.
Anyway that rang a bell into my mind, since I remembered that I'm using a 64-bit JVM and the problem could lie in this.
I'm making further research and sent already a snapshot to the developer.
Thanks for your help.

0
Comment actions Permalink

I have a similar problem. I add my action to the toolbar and to the popup menu in project view. When I run IDEA it opens on small project, but when I open larger project it freezes in the end of indexing before reaching the end. It does not depend on the specific project. In my case big project is more than 80 classes. When I build plugin zip, copy it "by hands" to IDEA plugins dir and restart IDE - all works fine, all projects are opened well.

0
Comment actions Permalink

I have a similar situation.
I run/debug my plugin module and the new IntelliJ instance got stuck as soon as I stat typing in a empty class that I just create.
While if I pack the plugin and install it then it's working, the big deal for me is that I can't debug it since the IDE freeze before I could launch it.
It's driving me crazy.

0
Comment actions Permalink

Hello Davide,

I have a similar situation.

I run/debug my plugin module and the new IntelliJ instance got stuck
as soon as I stat typing in a empty class that I just create.

While if I pack the plugin and install it then it's working, the big
deal for me is that I can't debug it since the IDE freeze before I
could launch it.

It's driving me crazy.


Please make sure you specify the -XX:MaxPermSize value in the VM options
of the plugin run configuration, with sufficient size (150M should be enough).

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


0
Comment actions Permalink

Thanks a lot Dmitry,
Now it's working perfectly

0

Please sign in to leave a comment.