The application relates to the computer technical field and discloses a memory dynamic adjustment method and
system, an electronic device and a storage medium, which comprise the following steps: collecting resource performance indexes of a
virtual machine and a host computer, forming historical standardized
time sequence data, performing normalization
processing to obtain standardized
time sequence data, filtering abnormal data points exceeding a preset
mutation threshold, if it is identified that the
virtual machine is in a non-steady-state operation, suspending a prediction process, inputting a double-scale
time sequence convolution network model, outputting a future short-
term memory usage rate sequence through a short-term prediction
branch, outputting a memory change trend
label through a long-term trend
branch, calculating a memory pressure entropy value based on the future short-
term memory usage rate sequence, presetting a multistage constraint rule, generating a memory adjustment instruction, correspondingly triggering a hot plug operation according to the memory adjustment instruction, and executing a
rollback mechanism when an adjustment exception is detected. The application can meet the actual needs of efficient, intelligent and self-adaptive dynamic adjustment of
virtual machine memory resources.