Fórumok

Assign Memory to Liferay Issue

thumbnail
Mohammad Danish, módosítva 9 év-val korábban

Assign Memory to Liferay Issue

Regular Member Bejegyzések: 187 Csatlakozás dátuma: 2012.03.05. Legújabb bejegyzések
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, módosítva 9 év-val korábban

RE: Assign Memory to Liferay Issue

Liferay Legend Bejegyzések: 1302 Csatlakozás dátuma: 2009.06.24. Legújabb bejegyzések
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, módosítva 9 év-val korábban

RE: Assign Memory to Liferay Issue

Regular Member Bejegyzések: 187 Csatlakozás dátuma: 2012.03.05. Legújabb bejegyzések
Its just that my eclipse and tomcat are running, So approximately 5GB of RAM is free
thumbnail
Andew Jardine, módosítva 9 év-val korábban

RE: Assign Memory to Liferay Issue

Liferay Legend Bejegyzések: 2416 Csatlakozás dátuma: 2010.12.22. Legújabb bejegyzések
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, módosítva 9 év-val korábban

RE: Assign Memory to Liferay Issue

Regular Member Bejegyzések: 187 Csatlakozás dátuma: 2012.03.05. Legújabb bejegyzések
No it doesn't, still getting the same error.
thumbnail
Olaf Kock, módosítva 9 év-val korábban

RE: Assign Memory to Liferay Issue (Válasz)

Liferay Legend Bejegyzések: 6403 Csatlakozás dátuma: 2008.09.23. Legújabb bejegyzések
(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.