Out of Memory errors

Having trouble installing Oxygen? Got a bug to report? Post it all here.
Kathy Kult

Out of Memory errors

Post by Kathy Kult »

I am currently evaluating the oXygen XML editor v5.0 (using the 30-day evaluation), and I am getting quite a few "Out of Memory" errors. I am using Windows XP with 1GB RAM, and using the Eclipse 3.0.1 environment with Java 2 Runtime Environment SE v1.4.2_06 installed.

All I am doing is opening a 7MB XML file. It seems as though there is a memory leak somewhere... my system's CPU performance maxes out at 100% when I try to open the file.

Here is what the .log says:
!SESSION Dec 22, 2004 08:21:10.231 ---------------------------------------------
eclipse.buildId=M200409161125
java.version=1.4.2_06
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

!ENTRY org.eclipse.ui 4 4 Dec 22, 2004 08:21:10.231
!MESSAGE Unhandled event loop exception

!ENTRY org.eclipse.ui 4 0 Dec 22, 2004 08:21:10.241
!MESSAGE java.lang.OutOfMemoryError
!STACK 0
java.lang.OutOfMemoryError

I also was getting OutOfMemory errors when transforming a document into PDF. I increased the FOP memory to 1000MB, which seemed to help for that, but I'm still getting this error above.

Did I not set something up properly? I'm new to the Eclipse environment as well as the oXygen plug-in and JRE, so anything's possible. Any help you can provide me though, is much appreciated!

Thanks,
Kathy Kult
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

The default max heap memory is for most JVMs 64MB. So even if you have 1GB of memory Eclipse will get 64MB for all its plugins including oXygen. You can set the maximum memory using some command line parameters when you start Eclipse. For instance I set it up to use 256MB with the following command line:

C:\eclipse\eclipse.exe -vmargs -Xmx256m

Best Regards,
George
KatK
Posts: 4
Joined: Wed Dec 22, 2004 6:53 pm

Post by KatK »

Horray!!! That worked! George, you're a Genius!

Thanks for your help, and for answering so quickly! :D
Post Reply