Fedora Linux Support Community & Resources Center
Old 24th July 2009, 08:40 AM
colinp Offline
Registered User
Join Date: Jul 2009
Posts: 3
Thumbs up SOLVED: Eclipse can't start in Fedora 11

Problem: clean install of Fedora - eclipse won't start - dialogue box says
error in logfile in workspace/.metadata/.log but file doesn't exist to get
more information

>cd /usr/lib/eclipse/plugins/
>java -jar org.eclipse.equinox.launcher_1.0.101.R34x_v2008112 5.jar

starts eclipse directly in command line so can see errors on startup as
nothing written to log file

ZoneInfo: /usr/share/javazi/ZoneInfoMappings (Too many open files)
ZoneInfo: /usr/share/javazi/ZoneInfoMappings (Too many open files)
!SESSION 2009-07-24 06:56:30.890 -----------------------------------------------
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US

!ENTRY org.eclipse.jdt.apt.ui.nl_iw 4 0 2009-07-24 06:56:32.599
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)
at java.util.zip.ZipFile.<init>(ZipFile.java:148)
at org.eclipse.osgi.framework.util.SecureAction.getZi pFile(SecureAction.java:251)
at org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleF ile.basicOpen(ZipBundleFile.java:81)

etc. etc.

Too many open files reported. Problem opening a zip file (presumably because
open file limit reached). Also possibly explains why log not written as
couldn't get a file handle to report error once limit was reached.

Test: see how many files can open, increase limit, restart

max files given by command:
>ulimit -n

create a group 'eclipse' and add lines into /etc/security/limits.conf to set a higher number
of open files limit (nofiles lines) for group. Need to preceed group name
with an '@' sign.

# /etc/security/limits.conf
#Each line describes a limit for a user in the form:
#<domain> <type> <item> <value>
#<domain> can be:
# - an user name
# - a group name, with @group syntax
# - the wildcard *, for default entry
# - the wildcard %, can be also used with %group syntax,
# for maxlogin limit
#<type> can have the two values:
# - "soft" for enforcing the soft limits
# - "hard" for enforcing hard limits
#<item> can be one of the following:
# - core - limits the core file size (KB)
# - data - max data size (KB)
# - fsize - maximum filesize (KB)
# - memlock - max locked-in-memory address space (KB)
# - nofile - max number of open files
# - rss - max resident set size (KB)
# - stack - max stack size (KB)
# - cpu - max CPU time (MIN)
# - nproc - max number of processes
# - as - address space limit (KB)
# - maxlogins - max number of logins for this user
# - maxsyslogins - max number of logins on the system
# - priority - the priority to run user process with
# - locks - max number of file locks the user can hold
# - sigpending - max number of pending signals
# - msgqueue - max memory used by POSIX message queues (bytes)
# - nice - max nice priority allowed to raise to values: [-20, 19]
# - rtprio - max realtime priority
#<domain> <type> <item> <value>

#* soft core 0
#* hard rss 10000
#@student hard nproc 20
#@faculty soft nproc 20
#@faculty hard nproc 50
#ftp hard nproc 0
#@student - maxlogins 4

@eclipse soft nofile 10000
@eclipse hard nofile 10000

# End of file

Add user in group 'eclipse'. Log out user (as settings created on login), login again, and restart eclipse

Result: eclipse starts up fine
Reply With Quote
Old 24th July 2009, 11:38 AM
colinp Offline
Registered User
Join Date: Jul 2009
Posts: 3

sorry - you only need one of the lines in limits.conf - either hard or soft limit.
Reply With Quote
Old 16th October 2009, 06:14 AM
hlprasu Offline
Registered User
Join Date: Oct 2009
Posts: 1
The probably correct solution

The previous solution suggested in probably not the solution for the problem. The problem of too many open files occurs (in usual cases, I mean) because of the osgi file open limit which is internal to eclipse and not a system level file open limit. See http://tech-torch.blogspot.com/2009/...ing-entry.html for the solution. For convenience, I have copied the solution below.



to .eclipse/org.eclipse.platform_*/configuration/config.ini

Note: In the file path "*" represent whatever version number of the eclipse you have in your system.
Reply With Quote
Old 27th October 2009, 05:13 PM
colinp Offline
Registered User
Join Date: Jul 2009
Posts: 3
Well, I didn't change that and it worked, so I don't see why you think this is not the fix!
Reply With Quote
Old 3rd May 2010, 02:01 AM
sandi_ro Offline
Registered User
Join Date: Aug 2009
Posts: 1
Re: SOLVED: Eclipse can't start in Fedora 11

second solution did not work for me, first with hard limit does work ok.
Reply With Quote

eclipse , error , fedora 11 , solution

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora Eclipse will not start dmyersturnbull Using Fedora 6 24th June 2009 05:26 PM
Fedora 8 -- Fail to start x-window on boot [SOLVED] tx836519 Hardware & Laptops 8 22nd October 2008 03:25 AM
Eclipse does not start kupo Using Fedora 3 1st May 2008 03:45 PM
Eclipse won't start daveReed Using Fedora 1 22nd September 2006 05:45 AM
When will this Eclipse bug be solved ? Coenos Using Fedora 0 30th July 2006 09:03 AM

Current GMT-time: 10:25 (Saturday, 21-10-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat