Patent ID: 8332845

Claim:
An application server system comprising a processor, a virtual machine for executing an application that includes intermediate code, and an application server for controlling start of the virtual machine, wherein the application server includes a virtual machine controller that specifies a way in which the virtual machine acquires execution frequency information indicating execution frequency of a procedure of the application obtained by counting execution frequency of the procedure from a database or another virtual machine, a predetermined value to be compared with the execution frequency, and a condition such that a procedure of which execution frequency is higher than the predetermined value should be compiled from intermediate code to native code based on the execution frequency information, and that specifies, when the application server has acquired a request of execution of the application, a first timing right after starting of the virtual machine as a compile timing to compile the procedure, and specifies, when the application server has not acquired the request of execution of the application, a second timing upon invocation of the procedure as the compile timing to compile the procedure, and the virtual machine includes an execution frequency information input unit that acquires the execution frequency information according to the specification of the application server after the virtual machine is started up by the application server; a compile target selector that selects a procedure of which execution frequency included in the execution frequency information acquired is higher than the predetermined value; a compile unit that compiles the procedure selected to the native code at either the first timing or the second timing specified as the compile timing by the virtual machine controller; and an execution controller that executes the application on receiving instruction to execute the application from a user and 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.