Application server system and computer product
First Claim
1. An application server system for causing a computer to execute a virtual machine program for executing an application that consists of intermediate code, and to execute an application server program for controlling start of the virtual machine program, wherein the application server program includes a virtual machine controller that specifies a condition such that execution frequency information obtained by counting execution frequency of a procedure in the application should be acquired from an external unit, and also specifies another condition such that a procedure of which execution frequency is higher than a predetermined value should be compiled from intermediate code to native code based on the execution frequency information, and that starts the virtual machine program, and the virtual machine program includes an execution frequency information input unit that acquires the execution frequency information from an external unit according to the specification of the application server program;
- a compile target selector that selects a procedure of which execution frequency is higher than a predetermined value, from the execution frequency information acquired;
a compile unit that compiles the procedure selected to the native code; and
an execution controller that executes the native code instead of the intermediate code when a procedure, in which the native code compiled is present, is invoked in the application during execution.
1 Assignment
0 Petitions
Accused Products
Abstract
A recovery virtual machine acquires execution frequency information from a file, and converts a procedure, of which execution frequency is high in the execution frequency information acquired, to native code, and the time for starting the conversion is thereby reduced. Furthermore, by performing conversion at a timing at which a target procedure is invoked, load occurring due to the conversion is distributed, to prevent occurrence of failure in execution of an application caused by the load occurring due to the conversion.
-
Citations
10 Claims
-
1. An application server system for causing a computer to execute a virtual machine program for executing an application that consists of intermediate code, and to execute an application server program for controlling start of the virtual machine program, wherein
the application server program includes a virtual machine controller that specifies a condition such that execution frequency information obtained by counting execution frequency of a procedure in the application should be acquired from an external unit, and also specifies another condition such that a procedure of which execution frequency is higher than a predetermined value should be compiled from intermediate code to native code based on the execution frequency information, and that starts the virtual machine program, and the virtual machine program includes an execution frequency information input unit that acquires the execution frequency information from an external unit according to the specification of the application server program; -
a compile target selector that selects a procedure of which execution frequency is higher than a predetermined value, from the execution frequency information acquired;
a compile unit that compiles the procedure selected to the native code; and
an execution controller that executes the native code instead of the intermediate code when a procedure, in which the native code compiled is present, is invoked in the application during execution. - View Dependent Claims (2, 3, 4)
-
-
5. A computer-readable recording medium that stores therein a virtual machine program that causes a computer to function as:
-
a counter that counts a frequency of invoking a procedure in application during execution of the application consisting of intermediate code, and stores the frequency as execution frequency information in a storage unit;
a compile unit that converts a procedure, of which execution frequency is high in the execution frequency information, from the intermediate code to the native code;
an execution controller that executes the native code instead of the intermediate code when a procedure, in which the native code compiled is present,,is invoked in the application during execution; and
an execution frequency information input unit that acquires the execution frequency information from an external unit. - View Dependent Claims (6, 7, 8, 9, 10)
-
Specification