Pre Compilation of JSP Pages to Improve Performance [ID 218281.1]

Embed Size (px)

Citation preview

  • 8/2/2019 Pre Compilation of JSP Pages to Improve Performance [ID 218281.1]

    1/2

    Precompilation of JSP pages to improve performance [ID 218281.1]

    Modified08-OCT-2008 Type TROUBLESHOOTING Status PUBLISHED

    *************************************************************This article is being delivered in Draft form and may containerrors. Please use the MetaLink "Feedback" button to adviseOracle of any issues related to this article.*************************************************************

    PURPOSE-------The purpose of this note if to improve the response time for JSP pages whenaccessed the first time by users.

    SCOPE / APPLICATION

    -------------------

    Intended for people maintaining Oracle Applications

    PRECOMPILATION OF JSP PAGES-----------------------------Calling a JSP page for the first time requires compile action before theresult is send back to the browser.The compilation is done once and the results of the compilation is storedin the $COMMON_TOP/html/_pages directory which is used for future accessesto the the JSP page.

    Typical situations when cached JSP pages are not available:- Environment is newly installed- Patches providing new JSP pages require cached information in _pages tobe deleted

    Although the compilation is done automatically it often leads to slowresponse times for the users. The rootcause for this is that compilation isa memory an CPU intensive action which can take several minutes when manyJSP pages are requested in a short period.

    The solution for this is to precompile the JSP pages. Precompilation meansthat the JSP are compiled offline in batch at an appropriate moment.

    Patch 2886919 "Precompiler for JSP Pages" delivers the functionality toperform precompilation on JSP Pages. (Note: patch is included in 11.5.9 andhigher)

    The precompilation is done with a perl script which identifies the JSP'swho need recompilation and compiles them in parallel.

    Examples of usage:

    Compile all the delta jsp pages

    # perl -x ojspCompile.pl --compile

    Force compile all the jsp pages

    # perl -x ojspCompile.pl --compile --flush

  • 8/2/2019 Pre Compilation of JSP Pages to Improve Performance [ID 218281.1]

    2/2

    Compile jsp pages with parallelism of 5

    # perl -x ojspCompile.pl --compile -p 5

    Compile all jsp pages with file names starting with jtf

    # perl -x ojspCompile.pl --compile -s "jtf%"

    Provides all possible arguments that can be set for the program

    # perl -x ojspCompile.pl

    Major advantages are:- Only JSP pages which need recompilation are compiled, saving time overcompilation of all JSP pages.- Users do not suffer from decreased performance as a result of JSP beingcompiled.

    Related

    Products

    Oracle E-Business Suite > Applications Technology > Applications Framework >

    Oracle CRM Technical Foundation

    Oracle E-Business Suite > Applications Technology > Applications Framework >

    Oracle CRM Technical Foundation

    Back to top

    Rate this document

    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=TROUBLESHOOTING&id=218281.1#tophttps://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=TROUBLESHOOTING&id=218281.1#tophttp://displayfeedbackbox%28%29/http://displayfeedbackbox%28%29/https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=TROUBLESHOOTING&id=218281.1http://displayfeedbackbox%28%29/https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=TROUBLESHOOTING&id=218281.1#top