How to increase the memory allocated by GlassFish?

I would like to increase the memory allocation for my GlassFish instance. Can someone please help me. Your answer can be through the admin console or on the command line, I do not mind.

+4
source share
2 answers

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

+6
source

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.

+10
source

Source: https://habr.com/ru/post/1489673/


All Articles