We have developed a maven-based java project and which replacing emails in bulk but after a certain time browser goes to Out of memory error. Initially, we were doing it in the Chrome browser but later on, some research used Microsoft Edge due to less memory consumption. In selenium, the script browser navigates 6 or 7 pages. Running on 12GB of RAM system and eclipse takes normally around 900 MB and MS-Edge taking around 1600 MB After a certain time program crashes due to browser memory.