Insufficient Memory for Java Runtime ERROR

When i try to start spark i’m getting this error :

Yes. I am also getting the same error

i am also getting the same error while trying to run dfs commands or hive … please check…

I am also getting the same error…can anyone help?

It is now working fine without the error.