To provide a memory allocation method and the like capable of improving convenience and service for a user by not always handling occurrence of shortage of a memory as an error when use of an application is required by the user.
In this method for allocating the memory to the application, in receipt of a memory acquisition request, if a required size cannot be obtained even by execution of memory release processing, it is determined whether shortage of the memory is temporary or not on the basis of memory release information about memory release processing in the past and a required size. If it is determined that the shortage of the memory is temporary, error processing is not immediately carried out basically, and memory release processing is carried out again after the lapse of a predicted waiting time found on the basis of the memory release information and the required size to try to obtain the memory.