Send the request in a loop and find that the memory footprint increases, how to release it?

request(OVERVIEW.getTopoLink, REQUEST_TYPE.POST,{subnetId:this.props.match.params.id}).then((res) => {
          
        })
        
    



export function request(url, requestType, data) {
    console.log("request",data)
    console.log("request",url)
    if(requestType === REQUEST_TYPE.GET){
        return axios.get(url, {
            params: {
                ...data
            }
        })
    }else{
        const config = {
            headers: {
                "Content-Type": "application/x-www-form-urlencoded"
            },
            transformRequest:[function(data) {
                return isObject(data) && String(data) !== "[object File]" ? requestParams(data) : data;
            }],
            requestType: requestType,
            // timeout: 10000,
        };

        return axios.post(url, data, config)
    }
}

when you cycle through requests to get data in this way, you will find that the browser"s memory footprint is increasing a little bit. How to solve this situation? How to free memory

Mar.21,2021

you need to observe whether it continues to rise, or whether it rises to a certain extent and then decreases (garbage collection is real-time, not real-time)


does not see the loop body, so it is difficult to judge.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bce0bc-30bb5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bce0bc-30bb5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?