facebook

JSP completion pegs CPU for serveral seconds

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Installation, Configuration & Updates
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #232104 Reply

    jarroyo
    Member

    I have recently switched from netbeans to eclipse, so I am still getting used to the changes, but one thing this is freaking me out is the auto completion within jsps. I am afraid to type . and pause because everytime I do it pegs my cpu for several seconds before it returns a list of possibilities. It only seems to happen in jsps. I have no problems in java files.

    Any ideas?

    #232112

    Riyad Kalla
    Member

    Can you please post all the information we request in the [URL=http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-393.html]Posting Guidelines[/URL] thread at the top of this forum? That will give us some context so that we can determine if this is an installation issue, a configuration problem, or a bug. Thanks.

    #232120

    jarroyo
    Member

    What operating system and version are you running?
    Linux kernel 2.6.10-5-686

    What Eclipse version and build id are you using? (Help > About Eclipse Platform)
    Version: 3.1.0
    Build id: I20050624-1300

    – Was Eclipse freshly installed for MyEclipse?
    yes

    – If not, was it upgraded to its current version using the update manager?
    n/a

    – Are any other external plugins installed?
    none

    – How many plugins in the <eclipse>/plugins directory are like org.eclipse.pde.*
    7

    What MyEclipse version are you using? (Help > About Eclipse Platform > Features)
    Version: 3.9.211
    Build id: 20050627-4.0-Milestone-2

    What JDK version are you using to run Eclipse? (java -version)
    java version “1.5.0_02”
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
    Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)

    What JDK version are you using to launch your application server?
    same

    What steps did you take that resulted in the issue?
    see previous post

    What application server are you using?
    tomcat 5.5

    Are there any exceptions in the Eclipse log file? (<workspace>/.metadata/.log)
    yes, many.

    This is the one that occurs most often:
    !ENTRY com.ibm.sse.javascript.common.ui 4 4 2005-06-22 13:47:15.68
    !MESSAGE Exception in notifyChanged() of LineStyleProviderForJava
    !STACK 0
    java.lang.StringIndexOutOfBoundsException: String index out of range: -44
    at java.lang.String.substring(String.java:1768)
    at com.ibm.sse.javascript.common.ui.style.LineStyleProviderForJavaScript.nodeChanged(LineStyleProviderForJavaScript.java:240)
    at com.ibm.sse.javascript.common.ui.style.LineStyleProviderForJavaScript.documentChanged(LineStyleProviderForJavaScript.java:215)
    at com.ibm.sse.model.internal.text.BasicStructuredDocument._fireDocumentChanged(BasicStructuredDocument.java:264)
    at com.ibm.sse.model.internal.text.BasicStructuredDocument.fireStructuredDocumentEvent(BasicStructuredDocument.java:948)
    at com.ibm.sse.model.internal.text.BasicStructuredDocument.replaceText(BasicStructuredDocument.java:1694)
    at com.ibm.sse.editor.StructuredDocumentToTextAdapter.replaceTextRange(StructuredDocumentToTextAdapter.java:952)
    at org.eclipse.swt.custom.StyledText.modifyContent(StyledText.java:5800)
    at org.eclipse.swt.custom.StyledText.sendKeyEvent(StyledText.java:6638)
    at org.eclipse.swt.custom.StyledText.doDelete(StyledText.java:2682)
    at org.eclipse.swt.custom.StyledText.cut(StyledText.java:2426)
    at org.eclipse.jface.text.TextViewer.doOperation(TextViewer.java:3494)
    at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:788)
    at com.ibm.sse.editor.StructuredTextViewer.doOperation(StructuredTextViewer.java:427)
    at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:122)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:120)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
    at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:182)
    at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:108)
    at org.eclipse.core.commands.Command.execute(Command.java:311)
    at org.eclipse.core.commands.ParameterizedCommand.execute(ParameterizedCommand.java:396)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:452)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:722)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:766)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:543)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:486)
    at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:110)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:82)
    at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1154)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1011)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1036)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
    at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1048)
    at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:612)
    at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:1961)
    at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:555)
    at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1348)
    at org.eclipse.swt.widgets.Display.windowProc(Display.java:3331)
    at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
    at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:4740)
    at org.eclipse.swt.widgets.Display.eventProc(Display.java:969)
    at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
    at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1139)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2473)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1601)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1565)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:315)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:230)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:371)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:160)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:330)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:274)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at org.eclipse.core.launcher.Main.main(Main.java:952)

    #232136

    Riyad Kalla
    Member

    What command line arguments are you using to start Eclipse? Eclipse 3.1 + MyEclipse we recommend setting atleast a 256m heap:
    eclipse.exe -vmargs -Xmx256m

    #232143

    jarroyo
    Member

    I didn’t have any arguments, but I added -vmargs -Xmx256m and it had no effect.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: JSP completion pegs CPU for serveral seconds

You must be logged in to post in the forum log in