Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I increase memory allocated to GlassFish?

I would like to increase my memory allocation to my GlassFish instance. Could anyone please help me out. Your answer could be via the admin console or the command line, I don't mind.

like image 716
blackpanther Avatar asked Jul 04 '13 10:07

blackpanther


2 Answers

Find a file domain.xml which you are using, i.e.

/usr/local/glassfish-4.1/glassfish/domains/domain1/config/domain.xml

(if using Linux you can use "locate domain.xml" (if you have mlocate installed and do "sudo updatedb"). If you use other operating systems, find manually your glassfish directory and the domain file.

Find memory settings there (Xmx) in that file and others and change it.

like image 86
Mladen Adamovic Avatar answered Oct 23 '22 21:10

Mladen Adamovic


You can add the -Xmx and other properties in the admin console as described here.

like image 43
Erik Pragt Avatar answered Oct 23 '22 19:10

Erik Pragt