The embodiment of the invention discloses a memory management method and device, a storage medium and electronic equipment, and the scheme of the embodiment of the invention comprises the steps: determining the idle memory capacity in a memory space when a memory distribution request transmitted by a target thread is received, and judging whether the target thread is a UI thread or not; when the target thread is the UI thread, judging whether the idle memory amount is smaller than a first preset threshold value or not; if yes, determining a first target memory amount, and performing memory recovery based on the first target memory amount; when the target thread is not the UI thread, judging whether the idle memory amount is smaller than a second preset threshold value or not; and if yes, determining a second target memory amount, and performing memory recovery based on the second target memory amount, so that for the UI thread, more sufficient memory is used for allocation, thereby reducing the probability of low memory scenarios of the UI thread, improving the operation fluency of the UI thread, reducing lagging, and improving the system fluency.