How can I increase memory allocated to GlassFish?

爷,独闯天下 提交于 2019-12-21 12:08:38

问题


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.



来源:https://stackoverflow.com/questions/17468189/how-can-i-increase-memory-allocated-to-glassfish

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!