Skip to main content



      Home
Home » Archived » Visual Editor (VE) » Out of memory Errors with new VE
Out of memory Errors with new VE [message #128247] Mon, 10 July 2006 22:24 Go to next message
Eclipse UserFriend
Hi,

I am getting out of memory errors since I installed Visual Editor
available with Calisto. The memory consumption starts the moment I open up
a Visual Class file. There are times when the status bar hangs at the
message 'Starting up Remote VM' and after a while Eclipse throws a dialog
box complaining about the Out of Memory error. At other times, the out of
memory is thrown after I have worked with some Visual Classes for a while.

Looking at the memory consumption in Task Manager, the memory starts
increasing when a new visual class is opened and does not seem to go down.

My startup params are
eclipse -clean -vmargs -Xmx512M

My OS is Win 2003 Server sp1
JDK 1.5.0_06

Anybody seen similar issues?

Thanks
Aashish
Re: Out of memory Errors with new VE [message #128299 is a reply to message #128247] Tue, 11 July 2006 09:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Does it happen if you increased to -Xmx1000M? Is it the main eclipse IDE
vm that is getting the error or is it the remote vm that is getting the
error?

Aashish wrote:
> Hi,
>
> I am getting out of memory errors since I installed Visual Editor
> available with Calisto. The memory consumption starts the moment I open
> up a Visual Class file. There are times when the status bar hangs at the
> message 'Starting up Remote VM' and after a while Eclipse throws a
> dialog box complaining about the Out of Memory error. At other times,
> the out of memory is thrown after I have worked with some Visual Classes
> for a while.
> Looking at the memory consumption in Task Manager, the memory starts
> increasing when a new visual class is opened and does not seem to go down.
> My startup params are
> eclipse -clean -vmargs -Xmx512M
> My OS is Win 2003 Server sp1
> JDK 1.5.0_06
>
> Anybody seen similar issues?
>
> Thanks
> Aashish
>
>

--
Thanks,
Rich Kulp
Re: Out of memory Errors with new VE [message #128362 is a reply to message #128299] Tue, 11 July 2006 13:06 Go to previous messageGo to next message
Eclipse UserFriend
Hi Rich,

It is the main IDE VM.
I can see the remote VM process in Task Manager with approximately 16MB,
which sounds normal to me.

However, the IDE VM has more than doubled (~180 to ~380) with just two
visual classes open.

I have not tried with 1000M. I'll try that but is that really necessary.
That sounds like a large number for a IDE process.

What are normal memory numbers for Visual Editor development?

Thanks
Regards,
Aashish
Re: Out of memory Errors with new VE [message #128374 is a reply to message #128362] Tue, 11 July 2006 13:21 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

On our tests if we just have Eclipse, GEF, EMF, and VE installed we
usually don't exceed 100M. It may be that there is something else in
your system which brings it up near the max before VE even starts.

Unless maybe your VE classes are huge? If you created just a simple
little class without much in it does it still double in size to 360M?

--
Thanks,
Rich Kulp
Re: Out of memory Errors with new VE [message #128398 is a reply to message #128374] Tue, 11 July 2006 13:52 Go to previous messageGo to next message
Eclipse UserFriend
Hi Rich,

I have Eclipse 3.2 with Web Tools(not yet using it), EMF, GEF, VE, and
dependencies installed.

Non-Eclipse provided plugins -
JADClipse (been using this for more than a year now),
Subclipse (subversion - using this since 3.1 with no problems)
Findbugs (been using for more than a year)
Omondo (installed this fresh with 3.2)

Sequence of events since last post -

Eclipse crashed after some time (~ one hour) of usage - became
unresponsive and disappeared.

Set max heap size to 1024M

Restarted Eclipse and closed all editors - memory was 190MB - normal in my
case.

Open a Visual Class - The 'Starting a remote VM message' went on for ~45
secs. the memory jumped to 286 at the end of it.

Opening additional visual classes increases it by a couple of megs (seems
normal).

The Visual Classes consist of approx 7 widgets on them ( text boxes,
combo, group, button, table, radio).

So far so good.

Thanks
Aashish
Re: Out of memory Errors with new VE [message #128423 is a reply to message #128398] Tue, 11 July 2006 15:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Just out of curiosity, can you try a brand new workspace? It may be that
there is something in your project's classpath that is big.

As for my tests, I have a Windows XP SP1, Eclipse 3.2, VE 1.2, EMF 2.2,
GEF 3.2.

When I first open the workspace, Windows TaskManager says 59Meg. I then
open one VE (just a JFrame subclass, nothing in it), and it jumps to
94Meg. Then I open another simple JFrame subclass and it jumps to 99Meg.

--
Thanks,
Rich Kulp
Re: Out of memory Errors with new VE [message #128476 is a reply to message #128423] Tue, 11 July 2006 20:04 Go to previous messageGo to next message
Eclipse UserFriend
Hi Rich,

Thanks. I'll try a new workspace.

In the meantime the IDE crashed again with an OutOfMemory error during the
message 'Starting Remote VM'. I had to kill the process as UI became
unresponsive after showing me the error dialog. Memory at the time of the
kill was 601MB.

Here are the abbreviated log entries -

!ENTRY org.eclipse.ve.java.core 4 16 2006-07-11 16:54:39.641
!MESSAGE An internal error occurred during: "Create Remote VM for Visual
Editor for Java".
!STACK 1
org.eclipse.core.runtime.CoreException: An internal error occurred during:
"Create Remote VM for Visual Editor for Java".
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorVMController$PerProject.getSpare(JavaVisualEditorVMContr oller.java:298)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorVMController.getRegistry(JavaVisualEditorVMController.ja va:579)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup$CreateRegistry.run(JavaVisualEditorPart.java: 1640)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
org.eclipse.core.runtime.CoreException[2]: java.lang.OutOfMemoryError:
PermGen space
!SUBENTRY 1 org.eclipse.core.jobs 4 2 2006-07-11 16:54:39.641
!MESSAGE An internal error occurred during: "Create Remote VM for Visual
Editor for Java".
!STACK 0
java.lang.OutOfMemoryError: PermGen space
Re: Out of memory Errors with new VE [message #128489 is a reply to message #128476] Tue, 11 July 2006 20:13 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chas.douglass.NOSPAMgmail.com

aashishpatil@hotmail.com (Aashish ) wrote in
news:2a29a7cdbfbc6e0433f2dacc7d32cc2b$1@www.eclipse.org:

> Hi Rich,
>
> Thanks. I'll try a new workspace.
>
> In the meantime the IDE crashed again with an OutOfMemory error during
> the message 'Starting Remote VM'. I had to kill the process as UI
> became unresponsive after showing me the error dialog. Memory at the
> time of the kill was 601MB.
>
> Here are the abbreviated log entries -
>
> !ENTRY org.eclipse.ve.java.core 4 16 2006-07-11 16:54:39.641
> !MESSAGE An internal error occurred during: "Create Remote VM for
> Visual Editor for Java".
> !STACK 1
> org.eclipse.core.runtime.CoreException: An internal error occurred
> during: "Create Remote VM for Visual Editor for Java".
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorVMContr
> oller$PerProject.getSpare(JavaVisualEditorVMController.java: 298)
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorVMContr
> oller.getRegistry(JavaVisualEditorVMController.java:579)
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Se
> tup$CreateRegistry.run(JavaVisualEditorPart.java:1640)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
> org.eclipse.core.runtime.CoreException[2]: java.lang.OutOfMemoryError:
> PermGen space
> !SUBENTRY 1 org.eclipse.core.jobs 4 2 2006-07-11 16:54:39.641
> !MESSAGE An internal error occurred during: "Create Remote VM for
> Visual Editor for Java".
> !STACK 0
> java.lang.OutOfMemoryError: PermGen space
>
>

I also started having this error with 3.2 plus MyEclipse plus VE. It's
NOT regular heap space, it's "perm gen" which is apparently statically
allocated.

If you are using Sun Java, add -XX:MaxPermSize=128M to your eclipse.ini.
I had increased my -Xmx space up to 1500M and it still wasn't working.
Since I discovered this I now run great setting -Xmx to 650M.

Chas Douglass
Re: Out of memory Errors with new VE [message #128561 is a reply to message #128489] Wed, 12 July 2006 09:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Right, that PermGen error is the clue. That has been brought up
internally in my company often recently. Chas is giving the right answer
for that problem.

Chas Douglass wrote:
>>java.lang.OutOfMemoryError: PermGen space
>>
>>
>
>
> I also started having this error with 3.2 plus MyEclipse plus VE. It's
> NOT regular heap space, it's "perm gen" which is apparently statically
> allocated.
>
> If you are using Sun Java, add -XX:MaxPermSize=128M to your eclipse.ini.
> I had increased my -Xmx space up to 1500M and it still wasn't working.
> Since I discovered this I now run great setting -Xmx to 650M.
>
> Chas Douglass

--
Thanks,
Rich Kulp
Re: Out of memory Errors with new VE [message #128636 is a reply to message #128561] Wed, 12 July 2006 14:38 Go to previous message
Eclipse UserFriend
Hi Chas,

Thanks!

It seems to be working. I have not seen the memory consumption increase
drastically.

Regards,
Aashish
Re: Out of memory Errors with new VE [message #613505 is a reply to message #128247] Tue, 11 July 2006 09:42 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Does it happen if you increased to -Xmx1000M? Is it the main eclipse IDE
vm that is getting the error or is it the remote vm that is getting the
error?

Aashish wrote:
> Hi,
>
> I am getting out of memory errors since I installed Visual Editor
> available with Calisto. The memory consumption starts the moment I open
> up a Visual Class file. There are times when the status bar hangs at the
> message 'Starting up Remote VM' and after a while Eclipse throws a
> dialog box complaining about the Out of Memory error. At other times,
> the out of memory is thrown after I have worked with some Visual Classes
> for a while.
> Looking at the memory consumption in Task Manager, the memory starts
> increasing when a new visual class is opened and does not seem to go down.
> My startup params are
> eclipse -clean -vmargs -Xmx512M
> My OS is Win 2003 Server sp1
> JDK 1.5.0_06
>
> Anybody seen similar issues?
>
> Thanks
> Aashish
>
>

--
Thanks,
Rich Kulp
Re: Out of memory Errors with new VE [message #613510 is a reply to message #128299] Tue, 11 July 2006 13:06 Go to previous message
Eclipse UserFriend
Hi Rich,

It is the main IDE VM.
I can see the remote VM process in Task Manager with approximately 16MB,
which sounds normal to me.

However, the IDE VM has more than doubled (~180 to ~380) with just two
visual classes open.

I have not tried with 1000M. I'll try that but is that really necessary.
That sounds like a large number for a IDE process.

What are normal memory numbers for Visual Editor development?

Thanks
Regards,
Aashish
Re: Out of memory Errors with new VE [message #613511 is a reply to message #128362] Tue, 11 July 2006 13:21 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

On our tests if we just have Eclipse, GEF, EMF, and VE installed we
usually don't exceed 100M. It may be that there is something else in
your system which brings it up near the max before VE even starts.

Unless maybe your VE classes are huge? If you created just a simple
little class without much in it does it still double in size to 360M?

--
Thanks,
Rich Kulp
Re: Out of memory Errors with new VE [message #613513 is a reply to message #128374] Tue, 11 July 2006 13:52 Go to previous message
Eclipse UserFriend
Hi Rich,

I have Eclipse 3.2 with Web Tools(not yet using it), EMF, GEF, VE, and
dependencies installed.

Non-Eclipse provided plugins -
JADClipse (been using this for more than a year now),
Subclipse (subversion - using this since 3.1 with no problems)
Findbugs (been using for more than a year)
Omondo (installed this fresh with 3.2)

Sequence of events since last post -

Eclipse crashed after some time (~ one hour) of usage - became
unresponsive and disappeared.

Set max heap size to 1024M

Restarted Eclipse and closed all editors - memory was 190MB - normal in my
case.

Open a Visual Class - The 'Starting a remote VM message' went on for ~45
secs. the memory jumped to 286 at the end of it.

Opening additional visual classes increases it by a couple of megs (seems
normal).

The Visual Classes consist of approx 7 widgets on them ( text boxes,
combo, group, button, table, radio).

So far so good.

Thanks
Aashish
Re: Out of memory Errors with new VE [message #613515 is a reply to message #128398] Tue, 11 July 2006 15:34 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Just out of curiosity, can you try a brand new workspace? It may be that
there is something in your project's classpath that is big.

As for my tests, I have a Windows XP SP1, Eclipse 3.2, VE 1.2, EMF 2.2,
GEF 3.2.

When I first open the workspace, Windows TaskManager says 59Meg. I then
open one VE (just a JFrame subclass, nothing in it), and it jumps to
94Meg. Then I open another simple JFrame subclass and it jumps to 99Meg.

--
Thanks,
Rich Kulp
Re: Out of memory Errors with new VE [message #613519 is a reply to message #128423] Tue, 11 July 2006 20:04 Go to previous message
Eclipse UserFriend
Hi Rich,

Thanks. I'll try a new workspace.

In the meantime the IDE crashed again with an OutOfMemory error during the
message 'Starting Remote VM'. I had to kill the process as UI became
unresponsive after showing me the error dialog. Memory at the time of the
kill was 601MB.

Here are the abbreviated log entries -

!ENTRY org.eclipse.ve.java.core 4 16 2006-07-11 16:54:39.641
!MESSAGE An internal error occurred during: "Create Remote VM for Visual
Editor for Java".
!STACK 1
org.eclipse.core.runtime.CoreException: An internal error occurred during:
"Create Remote VM for Visual Editor for Java".
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorVMController$PerProject.getSpare(JavaVisualEditorVMContr oller.java:298)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorVMController.getRegistry(JavaVisualEditorVMController.ja va:579)
at
org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Setup$CreateRegistry.run(JavaVisualEditorPart.java: 1640)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
org.eclipse.core.runtime.CoreException[2]: java.lang.OutOfMemoryError:
PermGen space
!SUBENTRY 1 org.eclipse.core.jobs 4 2 2006-07-11 16:54:39.641
!MESSAGE An internal error occurred during: "Create Remote VM for Visual
Editor for Java".
!STACK 0
java.lang.OutOfMemoryError: PermGen space
Re: Out of memory Errors with new VE [message #613520 is a reply to message #128476] Tue, 11 July 2006 20:13 Go to previous message
Eclipse UserFriend
aashishpatil@hotmail.com (Aashish ) wrote in
news:2a29a7cdbfbc6e0433f2dacc7d32cc2b$1@www.eclipse.org:

> Hi Rich,
>
> Thanks. I'll try a new workspace.
>
> In the meantime the IDE crashed again with an OutOfMemory error during
> the message 'Starting Remote VM'. I had to kill the process as UI
> became unresponsive after showing me the error dialog. Memory at the
> time of the kill was 601MB.
>
> Here are the abbreviated log entries -
>
> !ENTRY org.eclipse.ve.java.core 4 16 2006-07-11 16:54:39.641
> !MESSAGE An internal error occurred during: "Create Remote VM for
> Visual Editor for Java".
> !STACK 1
> org.eclipse.core.runtime.CoreException: An internal error occurred
> during: "Create Remote VM for Visual Editor for Java".
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorVMContr
> oller$PerProject.getSpare(JavaVisualEditorVMController.java: 298)
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorVMContr
> oller.getRegistry(JavaVisualEditorVMController.java:579)
> at
> org.eclipse.ve.internal.java.codegen.editorpart.JavaVisualEd itorPart$Se
> tup$CreateRegistry.run(JavaVisualEditorPart.java:1640)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
> org.eclipse.core.runtime.CoreException[2]: java.lang.OutOfMemoryError:
> PermGen space
> !SUBENTRY 1 org.eclipse.core.jobs 4 2 2006-07-11 16:54:39.641
> !MESSAGE An internal error occurred during: "Create Remote VM for
> Visual Editor for Java".
> !STACK 0
> java.lang.OutOfMemoryError: PermGen space
>
>

I also started having this error with 3.2 plus MyEclipse plus VE. It's
NOT regular heap space, it's "perm gen" which is apparently statically
allocated.

If you are using Sun Java, add -XX:MaxPermSize=128M to your eclipse.ini.
I had increased my -Xmx space up to 1500M and it still wasn't working.
Since I discovered this I now run great setting -Xmx to 650M.

Chas Douglass
Re: Out of memory Errors with new VE [message #613526 is a reply to message #128489] Wed, 12 July 2006 09:54 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

Right, that PermGen error is the clue. That has been brought up
internally in my company often recently. Chas is giving the right answer
for that problem.

Chas Douglass wrote:
>>java.lang.OutOfMemoryError: PermGen space
>>
>>
>
>
> I also started having this error with 3.2 plus MyEclipse plus VE. It's
> NOT regular heap space, it's "perm gen" which is apparently statically
> allocated.
>
> If you are using Sun Java, add -XX:MaxPermSize=128M to your eclipse.ini.
> I had increased my -Xmx space up to 1500M and it still wasn't working.
> Since I discovered this I now run great setting -Xmx to 650M.
>
> Chas Douglass

--
Thanks,
Rich Kulp
Re: Out of memory Errors with new VE [message #613532 is a reply to message #128561] Wed, 12 July 2006 14:38 Go to previous message
Eclipse UserFriend
Hi Chas,

Thanks!

It seems to be working. I have not seen the memory consumption increase
drastically.

Regards,
Aashish
Previous Topic:VE for RCP
Next Topic:Can VE be used in Plugin-Project
Goto Forum:
  


Current Time: Sat Jun 14 22:33:17 EDT 2025

Powered by FUDForum. Page generated in 0.27851 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top