First, launch Eclipse with increased memory options, which you can do as follows (increase these values as needed, but don’t exceed your available memory):
eclipse.exe -vmargs -Xmx512M -XX:MaxPermSize=256M
Sometimes, the preceding solution has a limited effect, and the errors don’t go away. In that case, try starting Eclipse from ECLIPSE_HOME by double-clicking on the eclipsec.exe application rather than the main executable.