The memory size of the Eden area affects the interval that causes a copy garbage collection. If the memory size of the Eden area is large, the interval of occurrence of copy garbage collection becomes long. The time taken for the copy garbage collection is affected by the number of objects in use, but is not much affected by the memory size of the Eden area. For this reason, allocate enough memory size for the Eden area to prevent a frequent occurrence of the copy garbage collection. This is effective for improving performance.