扫一扫
分享文章到微信
扫一扫
关注官方公众号
至顶头条
eclipse报错,内存溢出问题
最近使用eclipse常常出现内存溢出的报错,必须要重启电脑才行。
请各位大侠帮帮忙啊,小女子现在这里谢过了。
eclipse报错如下:
Internal Error
An out of memory error has occurred.Consult the "Running Eclipse" section of the read me file for information on preventing this kind of error in future.
You are recommended to exit the workbench.
Subsequent errors may happen and may terminate the workbench without warning.
See the .log file for more details.
另外还有一些报错:
unable to create new native thread.
Unhandled event loop exception.
java.lang.OutOfMemoryError.
.log中的信息如下
!SESSION 2009-07-29 16:17:41.171 -----------------------------------------------
eclipse.buildId=M20080911-1700
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN
Command-line arguments: -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.core.resources 2 10035 2009-07-29 16:17:46.437
!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
!ENTRY org.eclipse.osgi 2 1 2009-07-29 16:20:32.343
!MESSAGE NLS missing message: DebugConnectionThread_oldDebuggerVersion in: org.eclipse.php.internal.debug.core.PHPDebugCoreMessages
!ENTRY org.eclipse.osgi 2 1 2009-07-29 16:20:32.343
!MESSAGE NLS missing message: DebugServerTestEvent_success in: org.eclipse.php.internal.debug.core.PHPDebugCoreMessages
!ENTRY org.eclipse.osgi 2 1 2009-07-29 16:20:32.343
!MESSAGE NLS missing message: DebugServerTestEvent_timeOutMessage in: org.eclipse.php.internal.debug.core.PHPDebugCoreMessages
!ENTRY org.eclipse.debug.core 4 125 2009-07-29 16:20:35.078
!MESSAGE Error logged from Debug Core:
!STACK 0
java.io.IOException: Cannot run program "D:\xampp\php\ext\php_xdebug.dll": CreateProcess error=193, %1 ²»ÊÇÓÐЧµÄ Win32 ӦÓó
at java.lang.ProcessBuilder.start(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at java.lang.Runtime.exec(Unknown Source)
at org.eclipse.php.internal.debug.core.preferences.PHPexeItem.exec(PHPexeItem.java:377)
at org.eclipse.php.internal.debug.core.preferences.PHPexeItem.detectFromPHPExe(PHPexeItem.java:321)
at org.eclipse.php.internal.debug.core.preferences.PHPexeItem. <init>(PHPexeItem.java:66)
at org.eclipse.php.internal.debug.core.preferences.PHPexes.load(PHPexes.java:301)
at org.eclipse.php.internal.debug.core.preferences.PHPexes. <init>(PHPexes.java:73)
at org.eclipse.php.internal.debug.core.preferences.PHPexes.getInstance(PHPexes.java:65)
at org.eclipse.php.internal.debug.ui.preferences.PHPDebugPreferencesBlock.initializeValues(PHPDebugPreferencesBlock.java:90)
at org.eclipse.php.internal.debug.ui.preferences.PHPDebugPropertyPreferencePage.createCommonContents(PHPDebugPropertyPreferencePage.java:75)
at org.eclipse.php.internal.debug.ui.preferences.PHPDebugPropertyPreferencePage.createProjectContents(PHPDebugPropertyPreferencePage.java:82)
at org.eclipse.php.internal.ui.preferences.AbstractPHPPropertyPreferencePage.createContents(AbstractPHPPropertyPreferencePage.java:163)
at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:235)
at org.eclipse.php.internal.ui.preferences.AbstractPHPPropertyPreferencePage.createControl(AbstractPHPPropertyPreferencePage.java:195)
at org.eclipse.jface.preference.PreferenceDialog.createPageControl(PreferenceDialog.java:1468)
at org.eclipse.jface.preference.PreferenceDialog$14.run(PreferenceDialog.java:1225)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1219)
at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:570)
at org.eclipse.jface.preference.PreferenceDialog$10.run(PreferenceDialog.java:702)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.jface.preference.PreferenceDialog$9.selectionChanged(PreferenceDialog.java:698)
at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:842)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:880)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:840)
at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1153)
at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1178)
at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:250)
at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:244)
at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:418)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:133)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3800)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3425)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:583)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:500)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198)
at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
Caused by: java.io.IOException: CreateProcess error=193, %1 ²»ÊÇÓÐЧµÄ Win32 ӦÓó
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl. <init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 72 more
!ENTRY org.eclipse.osgi 2 1 2009-07-29 16:20:38.500
!MESSAGE NLS missing message: NewPHPProjectPreferencePage_jrelibrary_label in: org.eclipse.php.internal.ui.preferences.PreferencesMessages
!ENTRY org.eclipse.osgi 2 1 2009-07-29 16:20:38.500
!MESSAGE NLS missing message: NewPHPProjectPreferencePage_jre_variable_description in: org.eclipse.php.internal.ui.preferences.PreferencesMessages
!ENTRY org.eclipse.osgi 2 1 2009-07-29 16:20:38.500
!MESSAGE NLS missing message: NewPHPProjectPreferencePage_jre_container_description in: org.eclipse.php.internal.ui.preferences.PreferencesMessages
!ENTRY org.eclipse.osgi 2 1 2009-07-29 16:20:38.500
!MESSAGE NLS missing message: NewPHPProjectPreferencePage_error_decode in: org.eclipse.php.internal.ui.preferences.PreferencesMessages
!ENTRY org.eclipse.wst.common.project.facet.core 4 0 2009-07-29 16:21:11.546
!MESSAGE Project facet jst.web has not been defined. It is used in plugin org.eclipse.wst.jsdt.web.core.
!ENTRY org.eclipse.wst.common.project.facet.core 4 0 2009-07-29 16:21:11.562
!MESSAGE Project facet jst.web has not been defined. It is used in plugin org.eclipse.wst.jsdt.web.core.
步骤:
1、检查php.ini文件的 [Xdebug] 部分配置:
首先检查php_xdebug.dll 文件的位置是否正确,正确的话, 把这里修改 :D:\xampp\php\ext\php_xdebug.dll 所有的 \ 换成 /
2、eclipse.ini 文件,修改内存设置的部分:
-Xms40m
-Xmx512m
启动ecplise时,单击ecplise标图 右键-》属性-》快捷方式-》目标 里面加-clean -vmargs -Xms512m -Xmx800m -XX:PermSize=256m 例如F:\ecplise-YouYun\eclipse3.2\eclipse2.0 -clean -vmargs -Xms512m -Xmx800m -XX:PermSize=256m 。启动eclipse就可以了 |
如果您非常迫切的想了解IT领域最新产品与技术信息,那么订阅至顶网技术邮件将是您的最佳途径之一。