1. A computer program product for managing tasks in a memory of a computer system having a storage, the computer program product comprising a computer readable storage medium having computer readable program code embodied therein that executes to perform operations, the operations comprising: maintaining information on computational resources consumed by tasks running in the computer system allocated memory space in the memory, wherein the tasks are identified in a system task table; for each of a plurality of the tasks identified in the system task table, using the information on the computational resources consumed by the tasks to determine inactive tasks of the tasks; modifying the allocation of the memory space allocated to at least one of the determined inactive tasks by modifying the memory space indicted as allocated to the determined inactive task in the system task table, wherein the system task table indicates the memory allocated to the determined inactive task after the modifying of the allocation of the memory space; receiving a call to a called task comprising one of the tasks indicated in the system task table; and in response to determining that the system task table does not indicate that memory space is allocated to the called task, performing: allocating memory space in the memory to the called task; and loading the content in the storage for the called task into the memory space allocated to the called task.