Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » Autocompletion and Typing Sluggish - PDT2.0.0GA
Autocompletion and Typing Sluggish - PDT2.0.0GA [message #88621] Wed, 07 January 2009 14:53 Go to next message
Tim College is currently offline Tim CollegeFriend
Messages: 12
Registered: July 2009
Junior Member
I'm running Ubuntu on a dual-core laptop with 3GB of RAM.

When typing, Eclipse/PDT often hangs on attempts to show me auto-complete
options. It becomes unresponsive for a few seconds, then "works" again.

Also (related?) some times typing gets so slow that I'll be almost a line
or two ahead of the screen, and I need to stop and wait for Eclipse to
catch up.

I never had these sorts of issues with Europa/PDT1.

I edited my eclipse.ini file to increase memory - here's what I did:

-startup
plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819. jar
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
1024m
-vmargs
-Xms256m
-Xmx1024m

That actually helped, but has not solved the issue. When it's happening,
Eclipse is usually using ~300MB, so I'm not sure that increasing it
further will help (but I'm going to try ;) )

The project that I'm working with is not small - probably close to 4000
php files.

Anyone have any ideas?

Thanks
Tim
Re: Autocompletion and Typing Sluggish - PDT2.0.0GA [message #88684 is a reply to message #88621] Wed, 07 January 2009 16:42 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nickboldt+eclipse+newsgroup.gmail.com

Try upping your permgen:

http://wiki.eclipse.org/IRC_FAQ#I.27m_having_memory.2C_heap. 2C_or_permgen_problems.2C_what_can_I_do.3F

Tim College wrote:
> I'm running Ubuntu on a dual-core laptop with 3GB of RAM.
>
> When typing, Eclipse/PDT often hangs on attempts to show me
> auto-complete options. It becomes unresponsive for a few seconds, then
> "works" again.
>
> Also (related?) some times typing gets so slow that I'll be almost a
> line or two ahead of the screen, and I need to stop and wait for Eclipse
> to catch up.
>
> I never had these sorts of issues with Europa/PDT1.
>
> I edited my eclipse.ini file to increase memory - here's what I did:
>
> -startup
> plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819. jar
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 1024m
> -vmargs
> -Xms256m
> -Xmx1024m
>
> That actually helped, but has not solved the issue. When it's
> happening, Eclipse is usually using ~300MB, so I'm not sure that
> increasing it further will help (but I'm going to try ;) )
>
> The project that I'm working with is not small - probably close to 4000
> php files.
>
> Anyone have any ideas?
>
> Thanks
> Tim
>

--
Nick Boldt :: http://wiki.eclipse.org/User:Nickb
Re: Autocompletion and Typing Sluggish - PDT2.0.0GA [message #88713 is a reply to message #88621] Wed, 07 January 2009 17:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michael.zend.com

Are your project files placed on some network drive, or are they placed
locally?
I'm asking, since we have some network performance issues:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=259788


"Tim College" <tim@komta.com> wrote in message
news:588ec54df0bfb0bf0c37137d7a9f9435$1@www.eclipse.org...
> I'm running Ubuntu on a dual-core laptop with 3GB of RAM.
>
> When typing, Eclipse/PDT often hangs on attempts to show me auto-complete
> options. It becomes unresponsive for a few seconds, then "works" again.
>
> Also (related?) some times typing gets so slow that I'll be almost a line
> or two ahead of the screen, and I need to stop and wait for Eclipse to
> catch up.
>
> I never had these sorts of issues with Europa/PDT1.
>
> I edited my eclipse.ini file to increase memory - here's what I did:
>
> -startup
> plugins/org.eclipse.equinox.launcher_1.0.101.R34x_v20080819. jar
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 1024m
> -vmargs
> -Xms256m
> -Xmx1024m
>
> That actually helped, but has not solved the issue. When it's happening,
> Eclipse is usually using ~300MB, so I'm not sure that increasing it
> further will help (but I'm going to try ;) )
>
> The project that I'm working with is not small - probably close to 4000
> php files.
>
> Anyone have any ideas?
>
> Thanks
> Tim
>
Re: Autocompletion and Typing Sluggish - PDT2.0.0GA [message #88728 is a reply to message #88713] Wed, 07 January 2009 18:44 Go to previous messageGo to next message
Tim College is currently offline Tim CollegeFriend
Messages: 12
Registered: July 2009
Junior Member
The files are stored locally.

I've already increased the maxPermSize to 1500MB, and Eclipse/PDT is not
using anywhere near that, unless I'm completely missing some other secret
process :)

Thanks for the suggestions

Tim
Re: Autocompletion and Typing Sluggish - PDT2.0.0GA [message #88771 is a reply to message #88728] Wed, 07 January 2009 19:24 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

How large are your files? Do they have many functions/methods in them.
One thing you can try is to turn code folding off. This will keep the
editor from trying to recalculate the code folding points in the file.

I doubt tha tthe maxPermSize greater than 256Mb is going to make any
difference in this.

Dave

Tim College wrote:
> The files are stored locally.
>
> I've already increased the maxPermSize to 1500MB, and Eclipse/PDT is not
> using anywhere near that, unless I'm completely missing some other
> secret process :)
>
> Thanks for the suggestions
>
> Tim
>
Re: Autocompletion and Typing Sluggish - PDT2.0.0GA [message #88810 is a reply to message #88771] Thu, 08 January 2009 04:06 Go to previous messageGo to next message
Tim College is currently offline Tim CollegeFriend
Messages: 12
Registered: July 2009
Junior Member
Hey Dave -

Thanks dude. That seems to have done more than the memory allocation ever
did. Still not perfect, but a WHOLE lot better.

So what's the deal with this? PDT 1 never had this issue - though I
realize that the new one is probably a bit more intensive.

Tim
Re: Autocompletion and Typing Sluggish - PDT2.0.0GA [message #88825 is a reply to message #88810] Thu, 08 January 2009 08:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: michael.zend.com

Are there exceptions in the error log?

"Tim College" <tim@komta.com> wrote in message
news:640d2630d473a7e3264982112578d773$1@www.eclipse.org...
> Hey Dave -
> Thanks dude. That seems to have done more than the memory allocation ever
> did. Still not perfect, but a WHOLE lot better.
>
> So what's the deal with this? PDT 1 never had this issue - though I
> realize that the new one is probably a bit more intensive.
>
> Tim
>
Re: Autocompletion and Typing Sluggish - PDT2.0.0GA [message #88918 is a reply to message #88825] Thu, 08 January 2009 19:40 Go to previous messageGo to next message
Tim College is currently offline Tim CollegeFriend
Messages: 12
Registered: July 2009
Junior Member
Yup - there's a crapload, though I don't know what's related.

One suspicious one that comes up a lot is:

!ENTRY org.eclipse.ui 4 0 2009-01-08 09:44:58.055
!MESSAGE Unhandled event loop exception
!STACK 0
org.eclipse.swt.SWTException: Failed to execute runnable
(java.lang.NullPointerException)
at org.eclipse.swt.SWT.error(SWT.java:3777)
at org.eclipse.swt.SWT.error(SWT.java:3695)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:136)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.jav a:3378)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java :3036)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.jav a:2382)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:21 98)
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(Work bench.java:488)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.j ava:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start (IDEApplication.java:113)
at
org.eclipse.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.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(EclipseS tarter.java:386)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
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.lang.NullPointerException
at
org.eclipse.php.internal.ui.outline.PHPOutlineContentProvide r$ElementChangedListener$1.run(PHPOutlineContentProvider.jav a:187)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:3 5)
at
org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchr onizer.java:133)
... 22 more

I see that as suspicious because of the "caused by" having
org.eclipse.php.internal as the first entry in the stack. No idea if it's
actually relevant.

There are a lot like this too:

!ENTRY org.eclipse.wst.sse.ui 4 4 2009-01-07 15:55:21.765
!MESSAGE org.eclipse.dltk.internal.core.SourceType cannot be cast to
org.eclipse.dltk.core.IMethod
!STACK 0
java.lang.ClassCastException: org.eclipse.dltk.internal.core.SourceType
cannot be cast to org.eclipse.dltk.core.IMethod
at
org.eclipse.php.internal.core.ast.nodes.DefaultBindingResolv er.resolveMethod(DefaultBindingResolver.java:218)
at
org.eclipse.php.internal.core.ast.nodes.MethodDeclaration.re solveMethodBinding(MethodDeclaration.java:179)
at
org.eclipse.php.internal.ui.editor.OverrideIndicatorManager$ 1.visit(OverrideIndicatorManager.java:191)
at
org.eclipse.php.internal.core.ast.nodes.MethodDeclaration.ac cept0(MethodDeclaration.java:74)
at
org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNo de.java:266)
at
org.eclipse.php.internal.core.ast.nodes.Block.childrenAccept (Block.java:95)
at org.eclipse.php.internal.core.ast.nodes.Block.accept0(Block. java:88)
at
org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNo de.java:266)
at
org.eclipse.php.internal.core.ast.nodes.ClassDeclaration.chi ldrenAccept(ClassDeclaration.java:121)
at
org.eclipse.php.internal.core.ast.nodes.ClassDeclaration.acc ept0(ClassDeclaration.java:107)
at
org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNo de.java:266)
at
org.eclipse.php.internal.core.ast.nodes.Program.childrenAcce pt(Program.java:185)
at
org.eclipse.php.internal.core.ast.nodes.Program.accept0(Prog ram.java:178)
at
org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNo de.java:266)
at
org.eclipse.php.internal.ui.editor.OverrideIndicatorManager. updateAnnotations(OverrideIndicatorManager.java:186)
at
org.eclipse.php.internal.ui.editor.OverrideIndicatorManager. reconciled(OverrideIndicatorManager.java:283)
at
org.eclipse.php.internal.ui.editor.PHPStructuredEditor.recon ciled(PHPStructuredEditor.java:2415)
at
org.eclipse.php.internal.ui.editor.validation.PhpReconciling Strategy.validate(PhpReconcilingStrategy.java:214)
at
org.eclipse.php.internal.ui.editor.validation.PhpReconciling Strategy.validate(PhpReconcilingStrategy.java:179)
at
org.eclipse.wst.sse.ui.internal.reconcile.validator.Reconcil eStepForValidator.validate(ReconcileStepForValidator.java:29 2)
at
org.eclipse.wst.sse.ui.internal.reconcile.validator.Reconcil eStepForValidator.reconcileModel(ReconcileStepForValidator.j ava:258)
at
org.eclipse.jface.text.reconciler.AbstractReconcileStep.reco ncile(AbstractReconcileStep.java:96)
at
org.eclipse.wst.sse.ui.internal.reconcile.validator.Validato rStrategy.reconcile(ValidatorStrategy.java:229)
at
org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProc essor.process(DocumentRegionProcessor.java:175)
at
org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionPr ocessor.process(StructuredRegionProcessor.java:252)
at
org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcess or.run(DirtyRegionProcessor.java:638)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

I'll try to check the error log for a time period when I notice it being a
pain in the ass, next time it happens
Re: Autocompletion and Typing Sluggish - PDT2.0.0GA [message #88946 is a reply to message #88825] Thu, 08 January 2009 20:12 Go to previous messageGo to next message
Tim College is currently offline Tim CollegeFriend
Messages: 12
Registered: July 2009
Junior Member
Ok, just happened - I was autocompleting a comment DocBlock when it froze
slightly, and this error was in the log.

!ENTRY org.eclipse.wst.sse.ui 4 4 2009-01-08 15:00:46.198
!MESSAGE org.eclipse.dltk.internal.core.SourceType cannot be cast to
org.eclipse.dltk.core.IMethod
!STACK 0
java.lang.ClassCastException: org.eclipse.dltk.internal.core.SourceType
cannot be cast to org.eclipse.dltk.core.IMethod
at
org.eclipse.php.internal.core.ast.nodes.DefaultBindingResolv er.resolveMethod(DefaultBindingResolver.java:218)
at
org.eclipse.php.internal.core.ast.nodes.MethodDeclaration.re solveMethodBinding(MethodDeclaration.java:179)
at
org.eclipse.php.internal.ui.editor.OverrideIndicatorManager$ 1.visit(OverrideIndicatorManager.java:191)
at
org.eclipse.php.internal.core.ast.nodes.MethodDeclaration.ac cept0(MethodDeclaration.java:74)
at
org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNo de.java:266)
at
org.eclipse.php.internal.core.ast.nodes.Block.childrenAccept (Block.java:95)
at org.eclipse.php.internal.core.ast.nodes.Block.accept0(Block. java:88)
at
org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNo de.java:266)
at
org.eclipse.php.internal.core.ast.nodes.ClassDeclaration.chi ldrenAccept(ClassDeclaration.java:121)
at
org.eclipse.php.internal.core.ast.nodes.ClassDeclaration.acc ept0(ClassDeclaration.java:107)
at
org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNo de.java:266)
at
org.eclipse.php.internal.core.ast.nodes.Program.childrenAcce pt(Program.java:185)
at
org.eclipse.php.internal.core.ast.nodes.Program.accept0(Prog ram.java:178)
at
org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNo de.java:266)
at
org.eclipse.php.internal.ui.editor.OverrideIndicatorManager. updateAnnotations(OverrideIndicatorManager.java:186)
at
org.eclipse.php.internal.ui.editor.OverrideIndicatorManager. reconciled(OverrideIndicatorManager.java:283)
at
org.eclipse.php.internal.ui.editor.PHPStructuredEditor.recon ciled(PHPStructuredEditor.java:2415)
at
org.eclipse.php.internal.ui.editor.validation.PhpReconciling Strategy.validate(PhpReconcilingStrategy.java:214)
at
org.eclipse.php.internal.ui.editor.validation.PhpReconciling Strategy.validate(PhpReconcilingStrategy.java:179)
at
org.eclipse.wst.sse.ui.internal.reconcile.validator.Reconcil eStepForValidator.validate(ReconcileStepForValidator.java:29 2)
at
org.eclipse.wst.sse.ui.internal.reconcile.validator.Reconcil eStepForValidator.reconcileModel(ReconcileStepForValidator.j ava:258)
at
org.eclipse.jface.text.reconciler.AbstractReconcileStep.reco ncile(AbstractReconcileStep.java:96)
at
org.eclipse.wst.sse.ui.internal.reconcile.validator.Validato rStrategy.reconcile(ValidatorStrategy.java:229)
at
org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProc essor.process(DocumentRegionProcessor.java:175)
at
org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionPr ocessor.process(StructuredRegionProcessor.java:252)
at
org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcess or.run(DirtyRegionProcessor.java:638)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Re: Autocompletion and Typing Sluggish - PDT2.0.0GA [message #89512 is a reply to message #88946] Sun, 11 January 2009 05:10 Go to previous message
Eclipse UserFriend
Originally posted by: michael.zend.com

This bug (https://bugs.eclipse.org/bugs/show_bug.cgi?id=251677) is fixed in
CVS.

"Tim College" <tim@komta.com> wrote in message
news:bc332a1af2729a082831832dde63614f$1@www.eclipse.org...
> Ok, just happened - I was autocompleting a comment DocBlock when it froze
> slightly, and this error was in the log.
>
> !ENTRY org.eclipse.wst.sse.ui 4 4 2009-01-08 15:00:46.198
> !MESSAGE org.eclipse.dltk.internal.core.SourceType cannot be cast to
> org.eclipse.dltk.core.IMethod
> !STACK 0
> java.lang.ClassCastException: org.eclipse.dltk.internal.core.SourceType
> cannot be cast to org.eclipse.dltk.core.IMethod
> at
> org.eclipse.php.internal.core.ast.nodes.DefaultBindingResolv er.resolveMethod(DefaultBindingResolver.java:218)
> at
> org.eclipse.php.internal.core.ast.nodes.MethodDeclaration.re solveMethodBinding(MethodDeclaration.java:179)
> at
> org.eclipse.php.internal.ui.editor.OverrideIndicatorManager$ 1.visit(OverrideIndicatorManager.java:191)
> at
> org.eclipse.php.internal.core.ast.nodes.MethodDeclaration.ac cept0(MethodDeclaration.java:74)
> at
> org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNo de.java:266)
> at
> org.eclipse.php.internal.core.ast.nodes.Block.childrenAccept (Block.java:95)
> at org.eclipse.php.internal.core.ast.nodes.Block.accept0(Block. java:88)
> at
> org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNo de.java:266)
> at
> org.eclipse.php.internal.core.ast.nodes.ClassDeclaration.chi ldrenAccept(ClassDeclaration.java:121)
> at
> org.eclipse.php.internal.core.ast.nodes.ClassDeclaration.acc ept0(ClassDeclaration.java:107)
> at
> org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNo de.java:266)
> at
> org.eclipse.php.internal.core.ast.nodes.Program.childrenAcce pt(Program.java:185)
> at
> org.eclipse.php.internal.core.ast.nodes.Program.accept0(Prog ram.java:178)
> at
> org.eclipse.php.internal.core.ast.nodes.ASTNode.accept(ASTNo de.java:266)
> at
> org.eclipse.php.internal.ui.editor.OverrideIndicatorManager. updateAnnotations(OverrideIndicatorManager.java:186)
> at
> org.eclipse.php.internal.ui.editor.OverrideIndicatorManager. reconciled(OverrideIndicatorManager.java:283)
> at
> org.eclipse.php.internal.ui.editor.PHPStructuredEditor.recon ciled(PHPStructuredEditor.java:2415)
> at
> org.eclipse.php.internal.ui.editor.validation.PhpReconciling Strategy.validate(PhpReconcilingStrategy.java:214)
> at
> org.eclipse.php.internal.ui.editor.validation.PhpReconciling Strategy.validate(PhpReconcilingStrategy.java:179)
> at
> org.eclipse.wst.sse.ui.internal.reconcile.validator.Reconcil eStepForValidator.validate(ReconcileStepForValidator.java:29 2)
> at
> org.eclipse.wst.sse.ui.internal.reconcile.validator.Reconcil eStepForValidator.reconcileModel(ReconcileStepForValidator.j ava:258)
> at
> org.eclipse.jface.text.reconciler.AbstractReconcileStep.reco ncile(AbstractReconcileStep.java:96)
> at
> org.eclipse.wst.sse.ui.internal.reconcile.validator.Validato rStrategy.reconcile(ValidatorStrategy.java:229)
> at
> org.eclipse.wst.sse.ui.internal.reconcile.DocumentRegionProc essor.process(DocumentRegionProcessor.java:175)
> at
> org.eclipse.wst.sse.ui.internal.reconcile.StructuredRegionPr ocessor.process(StructuredRegionProcessor.java:252)
> at
> org.eclipse.wst.sse.ui.internal.reconcile.DirtyRegionProcess or.run(DirtyRegionProcessor.java:638)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
>
Previous Topic:No synchronization menu with aptana
Next Topic:Re: html in php
Goto Forum:
  


Current Time: Tue Mar 19 03:01:36 GMT 2024

Powered by FUDForum. Page generated in 0.02538 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top