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.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
You can add the -Xmx and other properties in the admin console as described here.
回答2:
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.