<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kevin&#039;s Blog &#187; Development Tools</title>
	<atom:link href="http://blog.lckymn.com/category/it/software-development/development-tools/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lckymn.com</link>
	<description>IT, Java, Ubuntu, Linux</description>
	<lastBuildDate>Thu, 12 Jan 2012 05:48:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Code Bubbles &#8211; Cool Java IDE</title>
		<link>http://blog.lckymn.com/2010/03/11/code-bubbles-cool-java-ide/</link>
		<comments>http://blog.lckymn.com/2010/03/11/code-bubbles-cool-java-ide/#comments</comments>
		<pubDate>Thu, 11 Mar 2010 08:26:04 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[Development Tools]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Code Bubbles]]></category>
		<category><![CDATA[IDE]]></category>

		<guid isPermaLink="false">http://blog.lckymn.com/?p=490</guid>
		<description><![CDATA[<div id="attachment_493" class="wp-caption alignnone" style="width: 970px"><a href="http://blog.lckymn.com/wp-content/uploads/2010/03/CodeBubbles.jpg"><img src="http://blog.lckymn.com/wp-content/uploads/2010/03/CodeBubbles.jpg" alt="Code Bubbles - Cool Java IDE" title="Code Bubbles - Cool Java IDE" width="960" height="720" class="size-full wp-image-493" /></a><p class="wp-caption-text">Code Bubbles - Cool Java IDE</p></div> <p>Seeing is believing so just visit <a href="http://www.cs.brown.edu/people/acb/codebubbles_site.htm" target="_blank">http://www.cs.brown.edu/people/acb/codebubbles_site.htm</a> and watch the video. What an awesome IDE!!!</p> ]]></description>
			<content:encoded><![CDATA[<div id="attachment_493" class="wp-caption alignnone" style="width: 970px"><a href="http://blog.lckymn.com/wp-content/uploads/2010/03/CodeBubbles.jpg"><img src="http://blog.lckymn.com/wp-content/uploads/2010/03/CodeBubbles.jpg" alt="Code Bubbles - Cool Java IDE" title="Code Bubbles - Cool Java IDE" width="960" height="720" class="size-full wp-image-493" /></a><p class="wp-caption-text">Code Bubbles - Cool Java IDE</p></div>
<p>Seeing is believing so just visit <a href="http://www.cs.brown.edu/people/acb/codebubbles_site.htm" target="_blank">http://www.cs.brown.edu/people/acb/codebubbles_site.htm</a> and watch the video.<br />
What an awesome IDE!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lckymn.com/2010/03/11/code-bubbles-cool-java-ide/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Eclipse &#8211; &#8220;Too many open files&#8221; Problem</title>
		<link>http://blog.lckymn.com/2009/08/11/eclipse-too-many-open-files-problem/</link>
		<comments>http://blog.lckymn.com/2009/08/11/eclipse-too-many-open-files-problem/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 07:39:39 +0000</pubDate>
		<dc:creator>Kevin</dc:creator>
				<category><![CDATA[Development Tools]]></category>
		<category><![CDATA[IT]]></category>
		<category><![CDATA[Software Development]]></category>
		<category><![CDATA[Ubuntu Linux]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Eclipse Ganymede]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[Ganymede]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Problem]]></category>
		<category><![CDATA[Too many open files]]></category>

		<guid isPermaLink="false">http://blog.lckymn.com/?p=365</guid>
		<description><![CDATA[<p>If your OS is Linux and you are using Eclipse, you might possibly see the following error messages or similar after installing lots of plug-ins in Eclipse. In my case, it usually happened after installing <a href="http://www.eclipse.org/tptp/" target="_blank">TPTP</a> (I&#8217;m using Ubuntu Linux 9.04 Jaunty Jackalope Desktop 64bit by the way).</p> Plug-in org.eclipse.jst.server.tomcat.core was unable to load class org.eclipse.jst.server.tomcat.core.internal.TomcatLaunchConfigurationDelegate. /eclipse_installed_path/eclipse/configuration/org.eclipse.osgi/.lazy.15 (Too many open files) <p>or</p> Problems occurred while trying to save the state of the workbench. Could not read master table. <p style="border: 3px solid rgb(243, 197, 52); padding: 5px; background-color: rgb(254, 254, 184); width: 600px; text-align: center;">[...Continue reading <a href="http://blog.lckymn.com/2009/08/11/eclipse-too-many-open-files-problem/">Eclipse &#8211; &#8220;Too many open files&#8221; Problem</a>...]</p>]]></description>
			<content:encoded><![CDATA[<p>If your OS is Linux and you are using Eclipse, you might possibly see the following error messages or similar after installing lots of plug-ins in Eclipse. In my case, it usually happened after installing <a href="http://www.eclipse.org/tptp/" target="_blank">TPTP</a> (I&#8217;m using Ubuntu Linux 9.04 Jaunty Jackalope Desktop 64bit by the way).</p>
<pre class="brush: plain; gutter: false; title: ; notranslate">
Plug-in org.eclipse.jst.server.tomcat.core was unable to load class org.eclipse.jst.server.tomcat.core.internal.TomcatLaunchConfigurationDelegate.
 /eclipse_installed_path/eclipse/configuration/org.eclipse.osgi/.lazy.15 (Too many open files)
</pre>
<p>or</p>
<pre class="brush: plain; gutter: false; title: ; notranslate">
Problems occurred while trying to save the state of the workbench.
 Could not read master table.
 /your_workspace/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources (Too many open files)
</pre>
<p>or</p>
<pre class="brush: plain; gutter: false; title: ; notranslate">
java.util.zip.ZipException: error in opening zip file
</pre>
<p>This is because there are too many files opened and these are more files than the number of open files allowed . So Eclipse cannot open more files and displays the errors above.</p>
<p>Let&#8217;s see the number of open files.</p>
<pre class="brush: bash; gutter: false; title: ; notranslate">
$ lsof | wc -l
</pre>
<p>e.g.)</p>
<pre class="brush: bash; gutter: false; title: ; notranslate">
$ lsof | wc -l
8965
</pre>
<p>In my case, it was 8965.</p>
<p>What about the number of files Eclipse opens. To see it, use </p>
<pre class="brush: bash; gutter: false; title: ; notranslate">
$ lsof | grep eclipse | wc -l
</pre>
<p>In my case, </p>
<pre class="brush: bash; gutter: false; title: ; notranslate">
$ lsof | grep eclipse | wc -l
2094
</pre>
<p>2094 files are opened.</p>
<p>Now check the limitation of open files</p>
<pre class="brush: bash; gutter: false; highlight: [9]; title: ; notranslate">
$ ulimit -a
core file size          (blocks, -c) #
data seg size           (kbytes, -d) #
scheduling priority             (-e) #
file size               (blocks, -f) #
pending signals                 (-i) #
max locked memory       (kbytes, -l) #
max memory size         (kbytes, -m) #
open files                      (-n) 1024
pipe size            (512 bytes, -p) #
POSIX message queues     (bytes, -q) #
real-time priority              (-r) #
stack size              (kbytes, -s) #
cpu time               (seconds, -t) #
max user processes              (-u) #
virtual memory          (kbytes, -v) #
file locks                      (-x) #
</pre>
<p>or just use</p>
<pre class="brush: bash; gutter: false; title: ; notranslate">
$ ulimit -n
1024
</pre>
<p>To change it, open the file /etc/security/limits.conf and put a greater number than 1024 depending on the number of open files you checked with <code>lsof | wc -l</code> just before.<br />
For example,<br />
Open the file</p>
<pre class="brush: plain; gutter: false; highlight: [3,4]; title: ; notranslate">
$ gksudo gedit /etc/security/limits.conf
add these lines
*                soft    nofile          9216
*                hard    nofile          9216
</pre>
<p>I just chose some big number that is 9216 (9 * 1024) as it&#8217;s greater than 8965 </p>
<p>Log out and in then check with ulimit. It should show like this.</p>
<pre class="brush: bash; gutter: false; title: ; notranslate">
$ ulimit -n
9216
</pre>
<p>You may try this</p>
<pre class="brush: bash; gutter: false; title: ; notranslate">
$ ulimit -n 9216
</pre>
<p>yet I don&#8217;t believe it changes the limit for open files permanently. So you&#8217;d better modify <code>/etc/security/limits.conf</code> file.</p>
<p>If it is still not changed. Restart the computer and check again. If it still doesn&#8217;t show the changed value, open /etc/pam.d/common-session file and add <code>session required pam_limits.so</code>.</p>
<p>Open the file to edit</p>
<pre class="brush: bash; gutter: false; title: ; notranslate">
$ gksudo gedit /etc/pam.d/common-session
</pre>
<p>Add the following line</p>
<pre class="brush: bash; gutter: false; title: ; notranslate">
session required pam_limits.so
</pre>
<p>Log out and in. Now it should work!</p>
<pre class="brush: bash; gutter: false; title: ; notranslate">
$ ulimit -n
9216
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.lckymn.com/2009/08/11/eclipse-too-many-open-files-problem/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

