Heap Memory Exception

how to increase the memory space for JVM.I'm getting memory heap exception.I'm not executing
applet from command prompt.I have embedded it in the html.so in run time how can i increase the
jvm memory or to increase it permanently.Is there any other way.