Measurement/analysis unit in a Java virtual machine has the function of
measuring data when an event of garbage collection occurs, and the
function of periodically measuring data. The measurement/analysis unit
analyzes the measured data and predicts a danger of a memory shortage,
and predicts a danger using an algorithm depending on the type of garbage
collection used by the Java virtual machine. An application server is
notified of a warning of the predicted danger of a memory shortage by an
analysis result notification means by an inter-process communication, or
the like. The measurement/analysis unit calculates a memory capacity
required to avoid the predicted danger of a memory shortage, and the
calculated memory capacity is transmitted to the application server by
the analysis result notification means by an inter-process communication,
or the like in the same way as the warning.