A method for memory management for a browser, comprising: running the browser; monitoring (102, 302) whether an operating system of a terminal running the browser fails to allocate memory to the browser, during running of the browser; and upon monitoring that the operating system fails to allocate the memory to the browser, releasing redundant memory of the browser multiple times until monitoring that the operating system is able to allocate the memory to the browser, wherein redundant memory released each time has a preset size; after releasing the redundant memory of the browser, restarting a target object in the browser according to a running mode of the browser, wherein the running mode of the browser is a multi-process mode and restarting the target object in the browser according to the running mode of the browser comprises: restarting a target process of the browser, wherein the target process is a process other than a main process of the browser; or the running mode of the browser is a single-process and multi-thread mode, and restarting the target object in the browser according to the running mode of the browser comprises: restarting a target thread of the browser, wherein the target thread is a thread other than a main thread of the browser; prior to restarting the target object in the browser according to the running mode of the browser, detecting whether a number of times of releasing the redundant memory of the browser is less than a preset number; and proceeding to restarting the target object in the browser according to the running mode of the browser, upon detecting that the number of times is not less than the preset number; wherein the restarting comprises releasing all memory occupied by the target object and reallocating memory to the target object without reallocating the redundant memory. running the browser; monitoring (102, 302) whether an operating system of a terminal running the browser fails to allocate memory to the browser, during running of the browser; and upon monitoring that the operating system fails to allocate the memory to the browser, releasing redundant memory of the browser multiple times until monitoring that the operating system is able to allocate the memory to the browser, wherein redundant memory released each time has a preset size; after releasing the redundant memory of the browser, restarting a target object in the browser according to a running mode of the browser, wherein the running mode of the browser is a multi-process mode and restarting the target object in the browser according to the running mode of the browser comprises: restarting a target process of the browser, wherein the target process is a process other than a main process of the browser; or the running mode of the browser is a single-process and multi-thread mode, and restarting the target object in the browser according to the running mode of the browser comprises: restarting a target thread of the browser, wherein the target thread is a thread other than a main thread of the browser; the running mode of the browser is a multi-process mode and restarting the target object in the browser according to the running mode of the browser comprises: restarting a target process of the browser, wherein the target process is a process other than a main process of the browser; or the running mode of the browser is a single-process and multi-thread mode, and restarting the target object in the browser according to the running mode of the browser comprises: restarting a target thread of the browser, wherein the target thread is a thread other than a main thread of the browser; prior to restarting the target object in the browser according to the running mode of the browser, detecting whether a number of times of releasing the redundant memory of the browser is less than a preset number; and proceeding to restarting the target object in the browser according to the running mode of the browser, upon detecting that the number of times is not less than the preset number; detecting whether a number of times of releasing the redundant memory of the browser is less than a preset number; and proceeding to restarting the target object in the browser according to the running mode of the browser, upon detecting that the number of times is not less than the preset number; wherein the restarting comprises releasing all memory occupied by the target object and reallocating memory to the target object without reallocating the redundant memory.