Fórum

Assign Memory to Liferay Issue

thumbnail
Mohammad Danish, modificado 9 Anos atrás.

Assign Memory to Liferay Issue

Regular Member Postagens: 187 Data de Entrada: 05/03/12 Postagens Recentes
Hi There,

I am having a Windows 7 environment machine of 8GB RAM with java 1.6 - 64 bit installed.
I tried to increase the memory to the tomcat of LR6.2 by using the following parameters in eclipse.
-Xmx3072m -XX:MaxPermSize=256m
But the tomcat didn't starts, it says cannot reserve heap error.
Can anyone direct me what I am doing wrong??
thumbnail
Ravi Kumar Gupta, modificado 9 Anos atrás.

RE: Assign Memory to Liferay Issue

Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
Check how much RAM already being used. I am not sure what is the best practice... but I don't start my liferay server from eclipse. emoticon
thumbnail
Mohammad Danish, modificado 9 Anos atrás.

RE: Assign Memory to Liferay Issue

Regular Member Postagens: 187 Data de Entrada: 05/03/12 Postagens Recentes
Its just that my eclipse and tomcat are running, So approximately 5GB of RAM is free
thumbnail
Andew Jardine, modificado 9 Anos atrás.

RE: Assign Memory to Liferay Issue

Liferay Legend Postagens: 2416 Data de Entrada: 22/12/10 Postagens Recentes
Hi Mohammad,

Can you try adding the settings to your CATALINA_OPTS variable (in your setenv.bat assuming you are on windows) and see if starting the portal from the command line makes a difference?
thumbnail
Mohammad Danish, modificado 9 Anos atrás.

RE: Assign Memory to Liferay Issue

Regular Member Postagens: 187 Data de Entrada: 05/03/12 Postagens Recentes
No it doesn't, still getting the same error.
thumbnail
Olaf Kock, modificado 9 Anos atrás.

RE: Assign Memory to Liferay Issue (Resposta)

Liferay Legend Postagens: 6403 Data de Entrada: 23/09/08 Postagens Recentes
(this is my ancient memory, but I've frequently ran into the issue during the last timeemoticon

You might be running 32bit: Java needs a contiguous piece of memory and 32bit windows can typically only provide ~1.5G max. Sometimes even less if other applications have been started before and fragmented the memory.

If you're running 64bit Windows, try to find out if you're using 32bit Java. This will probably ne easier to update.