<?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>Tech Notes</title>
	<atom:link href="http://caohui.com/tech/feed" rel="self" type="application/rss+xml" />
	<link>http://caohui.com/tech</link>
	<description></description>
	<lastBuildDate>Fri, 30 Apr 2010 05:33:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Eclipse启动出现Exit code=-1错误的解决办法</title>
		<link>http://caohui.com/tech/archives/7.html</link>
		<comments>http://caohui.com/tech/archives/7.html#comments</comments>
		<pubDate>Fri, 30 Apr 2010 04:57:32 +0000</pubDate>
		<dc:creator>Harry</dc:creator>
				<category><![CDATA[常见问题]]></category>
		<category><![CDATA[eclipse]]></category>

		<guid isPermaLink="false">http://caohui.com/tech/?p=7</guid>
		<description><![CDATA[今天启动eclipse时突然报错，弹出如下图所示的窗口，显示&#8221;JVM terminated. Exit code=-1&#8243;

这一般是由于配置文件中内存的设置过大导致的，找到eclipse根目录下eclipse.ini文件，如下：
-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms128m
-Xmx512m

找到&#8221;-Xmx512m&#8221;(你的配置与上述配置可能并不相同)，适当改小数值，如&#8221;-Xmx256m&#8221;，保存后重启eclipse。
]]></description>
			<content:encoded><![CDATA[<p>今天启动eclipse时突然报错，弹出如下图所示的窗口，显示&#8221;JVM terminated. Exit code=-1&#8243;</p>
<p><a href="http://caohui.com/tech/wp-content/uploads/2010/04/eclipse-start-error.png"><img class="alignnone size-medium wp-image-10" title="eclipse-start-error" src="http://caohui.com/tech/wp-content/uploads/2010/04/eclipse-start-error-300x164.png" alt="" width="300" height="164" /></a></p>
<p>这一般是由于配置文件中内存的设置过大导致的，找到eclipse根目录下eclipse.ini文件，如下：</p>
<pre class="brush: plain;">-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms128m
-Xmx512m
</pre>
<p>找到&#8221;-Xmx512m&#8221;(你的配置与上述配置可能并不相同)，适当改小数值，如&#8221;-Xmx256m&#8221;，保存后重启eclipse。</p>
]]></content:encoded>
			<wfw:commentRss>http://caohui.com/tech/archives/7.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

