Foren

Assign Memory to Liferay Issue

thumbnail
Mohammad Danish, geändert vor 9 Jahren.

Assign Memory to Liferay Issue

Regular Member Beiträge: 187 Beitrittsdatum: 05.03.12 Neueste Beiträge
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, geändert vor 9 Jahren.

RE: Assign Memory to Liferay Issue

Liferay Legend Beiträge: 1302 Beitrittsdatum: 24.06.09 Neueste Beiträge
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, geändert vor 9 Jahren.

RE: Assign Memory to Liferay Issue

Regular Member Beiträge: 187 Beitrittsdatum: 05.03.12 Neueste Beiträge
Its just that my eclipse and tomcat are running, So approximately 5GB of RAM is free
thumbnail
Andew Jardine, geändert vor 9 Jahren.

RE: Assign Memory to Liferay Issue

Liferay Legend Beiträge: 2416 Beitrittsdatum: 22.12.10 Neueste Beiträge
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, geändert vor 9 Jahren.

RE: Assign Memory to Liferay Issue

Regular Member Beiträge: 187 Beitrittsdatum: 05.03.12 Neueste Beiträge
No it doesn't, still getting the same error.
thumbnail
Olaf Kock, geändert vor 9 Jahren.

RE: Assign Memory to Liferay Issue (Antwort)

Liferay Legend Beiträge: 6403 Beitrittsdatum: 23.09.08 Neueste Beiträge
(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.