Patent ID: 8578379

Claim:
A method of memory overload management for a Web application server system, wherein the Web application server system comprises multiple Java machines (JVMs) for processing sessions, the method comprising: determining one or more replica shards for which replacement shall be performed; determining one or more target JVMs for storing a corresponding replica shard set including at least one replica shard from the one or more replica shards; calculating JVMs average session lifetime avgSessLifeTime k : avgSessLifeTime k =outs tan dingSess k /(0.5*admiRate k +0.5*admiRate k-1 ,) wherein outs tan dingSess k is the number of currently pending sessions, admiRate k is the current session admission rate, and admiRate k -l is the session admission rate during the period between two most recent times of global garbage collection (GC); and for each target JVM, performing the following: judging whether the free memory of the target JVM is adequate for storing the corresponding replica shard set; if the judging result is negative, performing the following: causing the target JVM to suspend the creation of session until the free memory of the target JVM becomes adequate for storing the corresponding replica shard set; storing the corresponding replica shard set to the target JVM; and causing the target JVM to resume the creation of session.