In crease the java heap size.
for that go into regsitery HKLM > system > Current control set > services > Semsrv > paramater.
Under parameter increase the jvmoption number 0 value to 512 option number 1 value to 1024
option number 2 value to 40 & option number 3 value to 70 respectively.
let me know if this helps.