This application relates to the field of computers and discloses an application runtime management method, apparatus, electronic device, and computer-readable storage medium, comprising: when a target application runs alone on a
server, gradually applying pressure to the
server's memory using chaosblade; recording the available memory of the
server corresponding to the pressure, and the
response time of the target application corresponding to the pressure; determining whether the
response time exceeds a preset
response time; if the
target response time exceeds the preset response time, determining the target available memory as the minimum memory required for the target application to run; the
target response time is the shortest time exceeding the preset response time among response times, and the target available memory is the available memory corresponding to the response time preceding the
target response time; allocating the minimum memory to the target application to ensure its normal operation. This application can determine the minimum memory required for the target application to run, ensuring its normal operation.