Skip to main content


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 19:57 Go to next message
Menachem Bazian is currently offline Menachem BazianFriend
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] Wed, 06 February 2013 02:51 Go to previous message
Toshihiro Izumi is currently offline Toshihiro IzumiFriend
Messages: 360
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: Sat Apr 20 03:20:42 GMT 2024

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

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

Back to the top