Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349554 - Eclipse with many features installed opens too many files at once and crashes on Linux
Summary: Eclipse with many features installed opens too many files at once and crashes...
Status: CLOSED DUPLICATE of bug 349105
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Runtime (show other bugs)
Version: 4.1   Edit
Hardware: PC Linux
: P3 critical (vote)
Target Milestone: ---   Edit
Assignee: platform-runtime-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-16 08:35 EDT by Oded Arbel CLA
Modified: 2011-06-16 09:06 EDT (History)
1 user (show)

See Also:


Attachments
The log file of the crash (2.62 KB, text/plain)
2011-06-16 08:36 EDT, Oded Arbel CLA
no flags Details
Eclipse configuration summary (613.81 KB, text/plain)
2011-06-16 09:00 EDT, Oded Arbel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Oded Arbel CLA 2011-06-16 08:35:09 EDT
Build Identifier: I20110603-0909

I've downloaded the Indigo RC4 platform build (with no extra stuff) from the download page.

After installing additional software from the Eclipse Indigo repositories (I don't what specifically caused the problem as I installed a bunch of stuff at once), Eclipse won't start and report that an error has occurred.

When running from the command line, I can see it throws an exception:
SESSION 2011-06-16 15:28:26.132 -----------------------------------------------
eclipse.buildId=I20110603-0909
java.version=1.6.0_22
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
Command-line arguments:  -os linux -ws gtk -arch x86_64

!ENTRY org.xbill.dns 4 0 2011-06-16 15:28:32.264
!MESSAGE FrameworkEvent ERROR
!STACK 0
java.util.zip.ZipException: Exception in opening zip file: /home/odeda/.local/eclipse/plugins/org.xbill.dns_2.0.8.v201010140805.jar
        at org.eclipse.osgi.framework.util.SecureAction.getZipFile(SecureAction.java:287)
...
Caused by: java.util.zip.ZipException: error in opening zip file
        at java.util.zip.ZipFile.open(Native Method)
        at java.util.zip.ZipFile.<init>(ZipFile.java:131)
...

Reproducible: Always

Steps to Reproduce:
1. Download and start Eclipse Indigo RC4 platform
2. Install a lot of additional features from Indigo repositories
3. Restart Eclipse
Comment 1 Oded Arbel CLA 2011-06-16 08:36:38 EDT
Created attachment 198088 [details]
The log file of the crash

This is the log file eclipse generates when crashing
Comment 2 Oded Arbel CLA 2011-06-16 08:43:31 EDT
It looks like the problem is that eclipse cannot read some jar file that was installed in the plugins directory. I've looked at the file and it opens fine with "jar" and a few other tools I have. I've also tried to download a new copy of the file (matched the same name and version), and it still happens.
Comment 3 Oded Arbel CLA 2011-06-16 08:58:04 EDT
I found that the problem is the maximum allowed files open. By default on most Linux distributions it is set to 1024 files per process, and apparently in Eclipse Indigo - after installing multiple features, Eclipse easily supersedes that when starting.

As a workaround I've set the maximum open files limit to 4096, and now Eclipse loads fine.
Comment 4 Oded Arbel CLA 2011-06-16 09:00:38 EDT
Created attachment 198092 [details]
Eclipse configuration summary

Attached is the output of Help->About->Installation Details->Configuration that details everything I have installed
Comment 5 Thomas Watson CLA 2011-06-16 09:06:09 EDT
This is a bug we found after RC4.  We determined the bug was severe enough that we respun the final build for indigo.  Please try the latest at http://download.eclipse.org/eclipse/downloads/drops/I20110613-1736/index.php (this will eventually become RC5).

*** This bug has been marked as a duplicate of bug 349105 ***