1. A method for managing class memory in which memory segments are allocated for a classloader to store information for classes loaded by the classloader, comprising: in response to a first request received from the classloader, allocating a first memory segment having a first size; in response to a second request received from the classloader, allocating a second memory segment having a.second size greater than the first size; and, in response to a third request received from the classloader, allocating a third memory segment having a third size greater than the second size.