My laptop is running Window 7 32bits. I am using Worklight 6.0.
I can code/modify and test for a while until a couple days ago when the function of build and deploy took a long time and finally errored out with a "Java heap space".
I tried expanding XMX from 512m to be 1g and XMS from 40m to be 512m in eclipse.ini, but it still does not work.
Try increasing the memory given to the application server.
In Eclipse, open the Server view, expand the Worklight server and add the following to the jvm options:
-Xmx1024m