无法为对象堆liferay tomcat保留足够的空间 [英] Could not reserve enough space for object heap liferay tomcat

查看:75
本文介绍了无法为对象堆liferay tomcat保留足够的空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我运行时,每次尝试运行程序时都会重复出现以下异常.

Liferay v6.1 CE服务器所需的几个端口(8005、8080、8009)(Tomcat 7)在本地主机已被使用.该服务器可能已经运行在另一个进程中,或者系统进程可能正在使用该端口.要启动此服务器,您将需要停止其他进程或进行更改端口号.

我累了要增加虚拟内存(页面大小)和内存大小.但是它不起作用目前,我使用win 7 64位,java jdk,jre 64位.我试图更改JDK,JRE(32位).但是,结果是相同的.:(

任何人都可以告诉我如何消除此错误.

解决方案

要弄清楚哪个其他程序使用了Liferay/Tomcat想使用的端口(很可能是8080)并终止了该端口.

或者,在您的liferay安装中,找到文件 tomcat- [version]/conf/server.xml ,使用您喜欢的文本编辑器对其进行编辑,然后找到所有端口说明并将其更改为未使用值-例如将"8080"更改为"9090",将"8009"更改为"9009",将"8005"更改为"9005"(或其他方式,目的是查找尚未使用的端口)

在此之后,假设您做出了我上面提到的选择,请在 http://localhost:9090/上连接到Liferay安装并获得乐趣.

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. 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. I tried to change JDK,JRE (32 bit). 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.

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 - e.g. 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)

After this, assumed that you made the choices I named above, connect to your Liferay installation at http://localhost:9090/ and have fun.

这篇关于无法为对象堆liferay tomcat保留足够的空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆