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.