如何增加分配给GlassFish的内存?

时间:2021-01-24 21:16:46

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.

我想增加我的GlassFish实例的内存分配。有谁能请帮帮我。您的回答可能是通过管理控制台或命令行,我不介意。

2 个解决方案

#1


6  

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

您可以在此处所述的管理控制台中添加-Xmx和其他属性。

#2


11  

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

找到您正在使用的文件domain.xml,即

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

/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.

(如果使用Linux,则可以使用“locate domain.xml”(如果已安装mlocate并执行“sudo updatedb”)。如果使用其他操作系统,请手动查找glassfish目录和域文件。

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

在那个文件和其他文件中查找内存设置(Xmx)并进行更改。

#1


6  

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

您可以在此处所述的管理控制台中添加-Xmx和其他属性。

#2


11  

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

找到您正在使用的文件domain.xml,即

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

/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.

(如果使用Linux,则可以使用“locate domain.xml”(如果已安装mlocate并执行“sudo updatedb”)。如果使用其他操作系统,请手动查找glassfish目录和域文件。

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

在那个文件和其他文件中查找内存设置(Xmx)并进行更改。