Page not getting loaded while using Selenium Webdriver

It has been many times observed that while web scrapping with Selenium Webdriver many times the correct code, also generates some memory dump errors. The code which gets executed fine at a point of time, gives memory related errors when executed multiple times.