facebook

JSP compilation very very slow

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #253845 Reply

    Roel De Nijs
    Member

    if i do a clean and build project, the compilation of jsps is extremely slow. since i re-installed (clean eclipse and clean myeclipse) it’s so slow that i can drink several coffees before it finishes. First thought was our company virusscan policy because each file that’s written to the disk is scanned by the virusscanner. but i asked our system admins to disable virusscanner, but it still compiles that slow. is there a way to make it go faster

    the error log is empty

    startup = C:\eclipse\eclipse.exe -vm C:\jdk1.5.0_06\bin\javaw.exe -vmargs -Duser.language=en -Xms128m -Xmx256m -XX:PermSize=128m -XX:MaxPermSize=128m -Dosgi.splashLocation=”C:\Program Files\MyEclipse\eclipse\MyEclipseSplash.bmp”

    configuration details:

    
    *** Date: Fri Jun 23 14:44:40 CEST 2006
    
    *** Platform Details:
    
    *** System properties:
    awt.toolkit=sun.awt.windows.WToolkit
    eclipse.application=org.eclipse.ui.ide.workbench
    eclipse.buildId=M20060118-1600
    eclipse.commands=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    a4_64
    -vm
    C:\jdk1.5.0_06\bin\javaw.exe
    
    <SNIP>
    #253902 Reply

    Riyad Kalla
    Member

    How long is JSP compilation taking *per* file? This is usually 1-3 seconds and is normal. Compiling large projects does take a long time. We have done a lot of work in MyEclipse 5.0 to speed this up however.

    #253930 Reply

    Roel De Nijs
    Member

    it’s taking 4-5 minutes for the whole bunch (± 100 jsp-pages), so indeed 1-3 seconds per page. but i had the feeling that in earlier version it was faster

    #253939 Reply

    Riyad Kalla
    Member

    Unfortunately no, JSP compilation is a very lengthy/expensive process. First the pages need to be run through a translator (JSP compiler) that generate a servlet class, and then run through the javac compiler to check for compilation errors. As I mentioned in MyEclipse 5.0 this should be improved though. Sorry for the inconvenience in the interm.

    #253949 Reply

    Riyad Kalla
    Member

    I just wanted to follow up and let you know that JSP compilation in MyEclipse 5.0 will be *much* faster. We are in the midst of testing and out of curiosity I cleaned my test project which normally takes about 1 minute to build, and it built in 8 seconds. Of course your milage will vary, but suffice it to say it will be much better.

    #253963 Reply

    Roel De Nijs
    Member

    Thanks for the info and the follow-up

    From 1 minute to 8 seconds, that’s quite a performance boost (if WADA gets informed about this one, MyEclipse 5.0 will be tested on the use of EPO and other drugs 😀 )

    #253979 Reply

    Riyad Kalla
    Member

    The core reason for the huge increase is that the validation is run in parallel and one one at a time on each file in serial. You can check your progress view and see a ton of EL-validation, JSP-validation and other validators spin up, all working in parallel. It’s pretty slick, no more long waits.

    #254511 Reply

    Roel De Nijs
    Member

    I downloaded today Eclipse 3.2 and the MyEclipse 5.0M2 release and tried out the JSP compilation immediately and i have to say: performance and speed has improved a lot. and if i check the progress-view i saw the parallel processing of the JSP

    i would say: 2 thumbs up and keep up the good work

    #254516 Reply

    Riyad Kalla
    Member

    Glad to hear it’s working much better now.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: JSP compilation very very slow

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