Out of memory error while upgrading patches

Out of memory error while upgrading patches

I am getting error while updating a patch on windows platform:
Java Lang:Out of memory error: Java Heap Space

                  New to ADSelfService Plus?