Eliminate performance bottlenecks through JSP pre-Compilation

Source: Internet
Author: User

Welcome to the "Management Corner" version. The latest monthly column focuses on the management, configuration, processing and Development of WebLogic servers.

The purpose of this column is to introduce non-J2EE development issues that can be widely used in WebLogic Sever. Developers and managers will also find this column very valuable because these articles are applicable to both development and final product applications. In addition, it largely utilizes experience from this field and engineering laboratories and provides detailed answers to actual problems.

Necessity of JSP pre-Compilation

This article focuses on removing potential system performance bottlenecks by solving the most common problem ?? The system overhead of JSP compilation during server running time is plagued by almost all J2EE development plans. Although JSP is an ideal choice for presenting Dynamic HTML views within J2EE applications, it affects performance to some extent, which is more annoying than errors, the first reason is that the program is very slow.

According to J2EE specifications, JSP is mainly an HTML file, which contains Java code used to interact with other system components and dynamic display information. The specification stipulates that all J2EE compiling application servers should support JSP. The customer requests a specific JSP, which will:

● Convert JSP from HTML format to servlet-type Java class (Java source format) and use the abbreviated JSP symbol to replace Fully Compliant Java syntax

● Compile the new Java source file into a. class bytecode format.

● Execute appropriate interface methods on newly compiled classes and return responses to client requests.

Although from the perspective of development, it is the best way to manage dynamic HTML in the presentation layer, but it affects the running time environment of the server and requires JSP to be parsed and converted into Java code, it is compiled before it processes a specific client request. The obvious impact on end users is that a response will be delayed to know that the given JSP file is compiled. Considering that a specific user request may use two or more JSP files, the time required for compiling State is increased many times.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.