Find the domain.xml file that you are using, i.e.
/usr/local/glassfish-4.1/glassfish/domains/domain1/config/domain.xml
(if you use Linux, you can use "locate domain.xml" (if you installed mlocate and run "sudo updatedb"). If you use other operating systems, manually find your glass directory and domain file.
Find the memory parameters (Xmx) and others there and change them.
source share