Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 353052

Summary: Eclipse hangs on load, and on opening a file
Product: [Eclipse Project] Platform Reporter: dastmaz
Component: IDEAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED INVALID QA Contact:
Severity: critical    
Priority: P3 CC: daniel_megert, remy.suen
Version: 4.1Keywords: needinfo
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:
Attachments:
Description Flags
Dump none

Description dastmaz CLA 2011-07-25 19:32:00 EDT
Build Identifier: 20110615-0604

Eclipse is hanging upon startup. When I was lucky enough to have the IDE actually open, it would hang when trying to open a file of any extension. I've been trying for about an hour, running it with -clean and disabling any plugins I have. The error text that is being thrown is attached.

Reproducible: Always

Steps to Reproduce:
1. Open eclipse.
2. Open file.
Comment 1 dastmaz CLA 2011-07-25 19:33:19 EDT
Created attachment 200315 [details]
Dump
Comment 2 Remy Suen CLA 2011-07-25 20:35:51 EDT
Please attach a stack dump.
http://wiki.eclipse.org/index.php/How_to_report_a_deadlock
Comment 3 Oleg Besedin CLA 2011-07-26 09:27:35 EDT
Note this line in the error message:
   -vm C:\Windows\system32\javaw.exe

This is there the Eclipse gets JVM to use. The JVM has to be:

- Java 1.5 or better; preferably not an update 21 (see bug 319514);
- If 64-bit Eclipse is used, it needs 64 bit VM; if 32 bit Eclipse is used, it needs 32 bit VM
- Consider increasing PermGen: add the following line after "-vmargs" to your eclipse.ini:
-XX:MaxPermSize=256m
- consider increasing max Heap size

Does that help?
Comment 4 Oleg Besedin CLA 2011-07-26 10:30:32 EDT
(In reply to comment #3)
> Note this line in the error message:
>    -vm C:\Windows\system32\javaw.exe
> 
> This is there the Eclipse gets JVM to use.

Which can be changed by using "-vm" runtime argument with the Eclipse executable or in its ".ini" file.
Comment 5 Oleg Besedin CLA 2011-08-03 10:24:56 EDT
See comment 2 and comment 3.