I am facing
Out of memory error in java heap space
I am using glassfish server for deployment of my maven based application, and Java JDK is 1.7. I have configured my glassfish server domain.xml as MaxPermSize is 512M and Xmx is 1024M , as mentioned in snap 1, I am confused because my glassfish not utilizing complete 1GB of heap size as it having , its just consumed max heap 300m but its through above error and stooped everything. how can I resolve this issue? its occurs two times a day.