Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Java Heap Error(Getting Java Heap Error after loading project)
Java Heap Error [message #1006784] Fri, 01 February 2013 14:57 Go to next message
Menachem Bazian is currently offline Menachem Bazian
Messages: 1
Registered: February 2013
Junior Member
Hi,

I need to do some mods of SugarCRM. I created a php project in EclipsePDT and it loaded. After some time, I got a java heap error and Eclipse shut down.

The error seems to be happening as it is building the workspace for the SugarCRM project (which has thousands of files).

Any ideas on what I can do? I researched the error and it seems to be a memory error. However, if I try to bump the memory beyond 640M, I get an error "could not create java vm". Here's my ini:

-vm
C:\Program Files (x86)\Java\jre7\bin
-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.100.v20110502
--launcher.XXMaxPermSize
640M
--launcher.defaultAction
openFile
-showlocation
-name
Eclipse for PHP Developers
-vmargs
-Xms128M
-Xmx640M

I am running Windows 7/64 with 8GB of RAM (4.6 used).

Eclipse runs fine on smaller projects.

Any assistance would be great appreciated.
Re: Java Heap Error [message #1007469 is a reply to message #1006784] Tue, 05 February 2013 21:51 Go to previous message
Toshihiro Izumi is currently offline Toshihiro Izumi
Messages: 344
Registered: July 2009
Location: Japan
Senior Member
>C:\Program Files (x86)\Java\jre7\bin
It seems that you're using 32bit JRE which have client mode vm only.

Only for increasing heap size, try
1. Install JDK 7u13(x86)
2. Edit eclipse.ini (maybe eclipse-php.ini in your case)
|-vm
|C:\Program Files (x86)\Java\jdk1.7.0_13\bin\javaw.exe
|-vmargs
|-server
Previous Topic:Cannot debug in a remote server
Next Topic:Current debug line not highlighted
Goto Forum:
  


Current Time: Tue Jul 29 13:08:38 EDT 2014

Powered by FUDForum. Page generated in 0.02006 seconds