简体   繁体   English

无法为对象堆liferay tomcat保留足够的空间

[英]Could not reserve enough space for object heap liferay tomcat

When I am running i am getting following exception repeatedly each time i try to run the program. 当我运行时,每次尝试运行该程序时,都会反复遇到以下异常。

Several ports (8005, 8080, 8009) required by Liferay v6.1 CE Server (Tomcat 7) at localhost are already in use. Liferay v6.1 CE服务器(Tomcat 7)在本地主机所需的多个端口(8005、8080、8009)已在使用中。 The server may already be running in another process, or a system process may be using the port. 服务器可能已经在另一个进程中运行,或者系统进程可能正在使用该端口。 To start this server you will need to stop the other process or change the port number(s). 要启动此服务器,您将需要停止其他进程或更改端口号。

I tired to increase my virtual memory(page size) and ram size. 我累了要增加虚拟内存(页面大小)和内存大小。 But it not workinge Currently, I used win 7 64 bit, java jdk, jre 64 bit. 但它不起作用当前,我使用win 7 64位,java jdk,jre 64位。 I tried to change JDK,JRE (32 bit). 我试图更改JDK,JRE(32位)。 However, the result is the same. 但是,结果是相同的。 :( :(

Can any one tell me how can i eliminate this error. 谁能告诉我如何消除此错误。

Either figure out which other program uses the ports that Liferay/Tomcat would like to use out of the box (most likely: 8080) and terminate it. 要么找出哪个其他程序使用Liferay / Tomcat想要开箱即用的端口(最有可能是8080)并终止它。

Or, in your liferay installation, locate the file tomcat-[version]/conf/server.xml , edit it with your favourite text editor and locate all the port instructions and change them to unused values - eg change "8080" to "9090", "8009" to "9009" and "8005" to "9005" (or anything else, the point is to find ports that are not yet in use) 或者,在liferay安装中,找到文件tomcat-[version]/conf/server.xml ,用您喜欢的文本编辑器对其进行编辑,然后找到所有端口说明并将其更改为未使用的值-例如,将“ 8080”更改为“ 9090” “,” 8009“到” 9009“以及” 8005“到” 9005“(或其他任何意义,关键是要找到尚未使用的端口)

After this, assumed that you made the choices I named above, connect to your Liferay installation at http://localhost:9090/ and have fun. 在此之后,假设您做出了我上面提到的选择,请通过http://localhost:9090/连接到Liferay安装,然后玩得开心。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM