facebook

JSP Editor pegs CPU at 100%

💡
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. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 15 posts - 1 through 15 (of 29 total)
  • Author
    Posts
  • #248257 Reply

    anchormen
    Member

    I’m using Eclipse 3.1.0 and MyEclipse 4.1.1

    When i’m editting a jsp file (classic editor or JSP designer) everything i do: type a character, use code-completion, open or save a file, anything at all, my pc hangs at 100% cpu load for about 5 seconds. This is really annoying, worse, un-useable. I upgraded from MyEclipse 3.8.2 two weeks ago, and this morning from 4.0.3 to 4.1.1. In 3.8.2 i had no trouble at all, but both 4.x versions have the same problem.

    Should i reinstall? Or is this a know issue?

    #248289

    Riyad Kalla
    Member

    Can you paste the result of MyEclipse > about > Configuration Summary?

    Also, no, this isn’t a known issue as it’s completely intrusive on your work and we would have users rioting.

    #248418

    anchormen
    Member

    @support-rkalla wrote:

    Can you paste the result of MyEclipse > about > Configuration Summary?

    Also, no, this isn’t a known issue as it’s completely intrusive on your work and we would have users rioting.

    Thought so.

    I tried defragging my system, rebooting, “-clean”, but still very annoying 100% cpu load spikes with everything i do in “JSP Classic Editor” or “JSP Designer”.

    My configuration summary:

    
    
    *** Date: Mon Mar 13 11:32:54 CET 2006
    
    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.4.2_03
    
    *** MyEclipse details:
    MyEclipse Enterprise Workbench
    
    Version: 4.1.1 GA
    Build id: 20060228-4.1.1-GA
    
    *** Eclipse details:
    Eclipse SDK
    
    Version: 3.1.0
    Build id: I20050627-1435
    
    Eclipse Platform
    
    Version: 3.1.0
    Build id: I20050627-1435
    
    Eclipse RCP
    
    Version: 3.1.0
    Build id: I20050627-1435
    
    Eclipse Java Development Tools
    
    Version: 3.1.0
    Build id: I20050627-1435
    
    Eclipse Plug-in Development Environment
    
    Version: 3.1.0
    Build id: I20050627-1435
    
    Eclipse Project SDK
    
    Version: 3.1.0
    Build id: I20050627-1435
    
    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\Data\Eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    5c0_58
    -vm
    C:\WINDOWS\system32\javaw.exe
    #248427

    Riyad Kalla
    Member

    Try editing your command line or eclipse.ini file and adjusting your startup parameters to be something like this:
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-10087.html

    #248434

    anchormen
    Member

    @support-rkalla wrote:

    Try editing your command line or eclipse.ini file and adjusting your startup parameters to be something like this:
    http://www.myeclipseide.com/PNphpBB2+file-viewtopic-t-10087.html

    No effect. I changed my “eclipse.ini”, restarted, opened a .jsp file and added a html remark: 100% load, even without saving the file.

    Memory usage isn’t that high anyways. After an hour or two working it’s about 125Mb.

    Maybe i have some setting wrong? I already disabled all MyEclipse Validation options for the project. Btw, i just found out it’s project specific. I tried editting a couple of .jsp files in 3 other projects: no trouble at all. Only mu current project i having this problem.

    #248442

    Riyad Kalla
    Member

    Is your troubled project in soruce control? Try and create a new workspace, then check the project back out into the new workspace and edit it, does it work or still peg CPU?

    #248449

    anchormen
    Member

    @support-rkalla wrote:

    Is your troubled project in soruce control? Try and create a new workspace, then check the project back out into the new workspace and edit it, does it work or still peg CPU?

    Exported to a new project, checked out the current and the new project to a new workspace. In all 3 cases the same result.

    Must be something in this project. Maybe some specific jar or other library? It is a webservice client project, using Axis. No database, Hibernate, EJB’s, just Spring, Axis and Maverick.

    #248455

    Riyad Kalla
    Member

    How many JARs? DO you have any huge JARs in your build path? How many files in this project? How large is the JSP you are editing? How taglib heavy is the page?

    #248500

    anchormen
    Member

    @support-rkalla wrote:

    How many JARs? DO you have any huge JARs in your build path? How many files in this project? How large is the JSP you are editing? How taglib heavy is the page?

    I traced the problem to a single JAR. We use XMLBeans to translate some half-baked company xml data to Java objects. This JAR is 4Mb. Removing it from the build path eliminates the problem. Adding it to another project introduces the problem for that project.

    Removing it from the project is not an option, i need the company xml translation classes. So i need a solution for working with some large JAR in the MyEclipse JSP Editor, or a better way to generate and translate some xml document to java 😉

    #248512

    Riyad Kalla
    Member

    Can you upgrade the XMLBeans library to the latest version or down grade it one version to simply see if it’s something with the actual JAR you have? (Heck, even try redownloading it and see what happens). If that doesn’t help, please tell me exactly what version you have, so I can go get it, and how to see the issues you are having (create a simple JSP and just start typing in it? Try and use autocomplete? Try and use the designer? etc.)

    #248520

    anchormen
    Member

    @support-rkalla wrote:

    Can you upgrade the XMLBeans library to the latest version or down grade it one version to simply see if it’s something with the actual JAR you have? (Heck, even try redownloading it and see what happens). If that doesn’t help, please tell me exactly what version you have, so I can go get it, and how to see the issues you are having (create a simple JSP and just start typing in it? Try and use autocomplete? Try and use the designer? etc.)

    The XMLbeans JAR is not causing the problem. The generated JAR for our company data xml is causing it. XMLBeans can generate Java classes representing xml data. This JAR is 4Mb and contains 5000 classes. When i add or remove this jar the probleem appears and disappears.

    The “normal” java editor doesn’t have any problem in this project, only the MyEclipse JSP editors. I could send you the generated jar file for testing.

    #248521

    Riyad Kalla
    Member

    The XMLbeans JAR is not causing the problem. The generated JAR for our company data xml is causing it. XMLBeans can generate Java classes representing xml data. This JAR is 4Mb and contains 5000 classes. When i add or remove this jar the probleem appears and disappears.

    The “normal” java editor doesn’t have any problem in this project, only the MyEclipse JSP editors. I could send you the generated jar file for testing.

    Ahh, sure send it along. Also please answer my questions about specifically what the “problem” is:

    please tell me exactly what version you have, so I can go get it, and how to see the issues you are having (create a simple JSP and just start typing in it? Try and use autocomplete? Try and use the designer? etc.)

    Sometimes folks will think it’s abundently clear, so I’ll load up their project, edit just fine and say it works and then find out the problem was pertaining to autocompletely taglibs, even though it was never mentioned. So just give me steps to cause the editor to suck and I’ll see what I can find.

    #248524

    anchormen
    Member

    @support-rkalla wrote:

    The XMLbeans JAR is not causing the problem. The generated JAR for our company data xml is causing it. XMLBeans can generate Java classes representing xml data. This JAR is 4Mb and contains 5000 classes. When i add or remove this jar the probleem appears and disappears.

    The “normal” java editor doesn’t have any problem in this project, only the MyEclipse JSP editors. I could send you the generated jar file for testing.

    Ahh, sure send it along. Also please answer my questions about specifically what the “problem” is:

    please tell me exactly what version you have, so I can go get it, and how to see the issues you are having (create a simple JSP and just start typing in it? Try and use autocomplete? Try and use the designer? etc.)

    Sometimes folks will think it’s abundently clear, so I’ll load up their project, edit just fine and say it works and then find out the problem was pertaining to autocompletely taglibs, even though it was never mentioned. So just give me steps to cause the editor to suck and I’ll see what I can find.

    I tried sending the file, but maxsize is 2Mb and the file is 4Mb 🙂

    I narrowed it down. It seems files where scriptlets are used are affected.

    
    <html>
    <body>
    Hell...
    </body>
    </html>
    

    No trouble.

    But

    
    <% String x; %>
    <html>
    <body>
    Hell...
    </body>
    </html>
    

    equals 100% cpu load …..

    #248543

    Riyad Kalla
    Member

    Ok I got your JAR, created a new web project, created a new JSP using the default Template (note that it includes the basePath String in the scriplet at the top) and edited it, works fine. Then I dropped your JAR into the lib folder, MyEclipse auto-mounted it and I reopened the MyJsp.jsp file and went to editing it, everything worked fine. Typing in plain text, creating tags, creating more scriplets to print out the value of basePath, writing some quick substring code.

    Here is my setup:

    *** Date: Tue Mar 14 08:45:43 MST 2006

    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_06

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 4.1.1 GA
    Build id: 20060228-4.1.1-GA

    *** Eclipse details:
    Eclipse SDK

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Platform

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse RCP

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Java Development Tools

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Plug-in Development Environment

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Project SDK

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\Documents and Settings\Riyad\Desktop\New Folder (2)\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    1fc_38
    -vm
    C:\WINDOWS\system32\javaw.exe

    And I’m using the default eclipse.ini file with this one, so no special perm size settings. Do you see differences in our setup that might explain this? I absolutely agree with your email a 4mb JAR shouldn’t effect the editor at all, you only run into performance problems with the autocomplete parser when you have 75mb+ worth of JARs on the build path, otherwise it should be fine.

    #248544

    anchormen
    Member

    @support-rkalla wrote:

    Ok I got your JAR, created a new web project, created a new JSP using the default Template (note that it includes the basePath String in the scriplet at the top) and edited it, works fine. Then I dropped your JAR into the lib folder, MyEclipse auto-mounted it and I reopened the MyJsp.jsp file and went to editing it, everything worked fine. Typing in plain text, creating tags, creating more scriplets to print out the value of basePath, writing some quick substring code.

    Here is my setup:

    *** Date: Tue Mar 14 08:45:43 MST 2006

    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.5.0_06

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 4.1.1 GA
    Build id: 20060228-4.1.1-GA

    *** Eclipse details:
    Eclipse SDK

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Platform

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse RCP

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Java Development Tools

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Plug-in Development Environment

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse Project SDK

    Version: 3.1.2
    Build id: M20060118-1600

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\Documents and Settings\Riyad\Desktop\New Folder (2)\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    1fc_38
    -vm
    C:\WINDOWS\system32\javaw.exe

    And I’m using the default eclipse.ini file with this one, so no special perm size settings. Do you see differences in our setup that might explain this? I absolutely agree with your email a 4mb JAR shouldn’t effect the editor at all, you only run into performance problems with the autocomplete parser when you have 75mb+ worth of JARs on the build path, otherwise it should be fine.

    Mmmm, i see 2 noticeable differences: Java version and Eclipse version. I’ll try upgrading my Eclipse version very soon. First gotta get this deadline monkey off my back.

    Also i’ll check out some of my teammembers, maybe it’s my pc? I’ve had a pc with a faulty harddrive cause some strange problems in the past.

Viewing 15 posts - 1 through 15 (of 29 total)
Reply To: JSP Editor pegs CPU at 100%

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