Foros de discusión
Heap Memory issue
Just Geeked, modificado hace 13 años.
Heap Memory issue
New Member Mensajes: 2 Fecha de incorporación: 13/04/11 Mensajes recientes
Hi,
I have trouble lauching liferay 6.
I'm working on windows 7 | RAM: 3GB | OS 64 bit | Processor: AMD Athlon(tm) II X2 215 Processor 2.70GHZ
Description:
I got the following message from catalina.bat:
...\liferay-portal-6.0.6\tomcat-6.0.29\bin>catalina.bat run
Using CATALINA_BASE: "...\liferay-portal-6.0.6\tomcat-6.0.29"
Using CATALINA_HOME: "...\liferay-portal-6.0.6\tomcat-6.0.29"
Using CATALINA_TMPDIR: "...\liferay-portal-6.0.6\tomcat-6.0.29\temp"
Using JRE_HOME: "...\liferay-portal-6.0.6\tomcat-6.0.29/jre1.6.0_20/w
in"
Using CLASSPATH: "...\liferay-portal-6.0.6\tomcat-6.0.29\bin\bootstrap
.jar"
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
I've seen on other post that I should incvrease heap memory but I don't know where (which file??? why what???)
I've tried to had " -Xms1024m -Xmx1024m -XX:MaxPermSize=128m" into the catalina.bat but I still got the same error message.
*Extract from catamina.bat:
:noJuliConfig
set JAVA_OPTS=%JAVA_OPTS% -Xms1024m -Xmx1024m -XX:MaxPermSize=128m %LOGGING_CONFIG%
if not "%LOGGING_MANAGER%" == "" goto noJuliManager
set LOGGING_MANAGER=-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
:noJuliManager
set JAVA_OPTS=%JAVA_OPTS% -Xms1024m -Xmx1024m -XX:MaxPermSize=128m %LOGGING_MANAGER%
Could someone help me please?
Cheers
I have trouble lauching liferay 6.
I'm working on windows 7 | RAM: 3GB | OS 64 bit | Processor: AMD Athlon(tm) II X2 215 Processor 2.70GHZ
Description:
I got the following message from catalina.bat:
...\liferay-portal-6.0.6\tomcat-6.0.29\bin>catalina.bat run
Using CATALINA_BASE: "...\liferay-portal-6.0.6\tomcat-6.0.29"
Using CATALINA_HOME: "...\liferay-portal-6.0.6\tomcat-6.0.29"
Using CATALINA_TMPDIR: "...\liferay-portal-6.0.6\tomcat-6.0.29\temp"
Using JRE_HOME: "...\liferay-portal-6.0.6\tomcat-6.0.29/jre1.6.0_20/w
in"
Using CLASSPATH: "...\liferay-portal-6.0.6\tomcat-6.0.29\bin\bootstrap
.jar"
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
I've seen on other post that I should incvrease heap memory but I don't know where (which file??? why what???)
I've tried to had " -Xms1024m -Xmx1024m -XX:MaxPermSize=128m" into the catalina.bat but I still got the same error message.
*Extract from catamina.bat:
:noJuliConfig
set JAVA_OPTS=%JAVA_OPTS% -Xms1024m -Xmx1024m -XX:MaxPermSize=128m %LOGGING_CONFIG%
if not "%LOGGING_MANAGER%" == "" goto noJuliManager
set LOGGING_MANAGER=-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
:noJuliManager
set JAVA_OPTS=%JAVA_OPTS% -Xms1024m -Xmx1024m -XX:MaxPermSize=128m %LOGGING_MANAGER%
Could someone help me please?
Cheers
Hitoshi Ozawa, modificado hace 13 años.
RE: Heap Memory issue
Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientesI've seen on other post that I should incvrease heap memory but I don't know where (which file??? why what???)
\tomcat-{version}\bin\setenv.bat or setenv.sh
In the "JAVA_OPT" variable.
Mika Koivisto, modificado hace 13 años.
RE: Heap Memory issue
Liferay Legend Mensajes: 1519 Fecha de incorporación: 7/08/06 Mensajes recientes
JVM needs continuous memory for heap. If it can't reserve the amount you've specified it will fail. Try setting following in your setenv.bat:
If it starts with those then try increasing the memory. 128m MaxPermSize is also too small. 256m is usually quite safe number.
set JAVA_OPTS=%JAVA_OPTS% -Xmx512m -XX:MaxPermSize=256m -Dfile.encoding=UTF8
If it starts with those then try increasing the memory. 128m MaxPermSize is also too small. 256m is usually quite safe number.
Olaf Kock, modificado hace 13 años.
RE: Heap Memory issue
Liferay Legend Mensajes: 6403 Fecha de incorporación: 23/09/08 Mensajes recientes
Adding to this: You might want to try starting tomcat directly after booting the computer (when memory is not yet fragmented) and try to use a 64bit java on your 64bit OS (I'm not sure if memory fragmentation is still relevant on a full 64bit system.
Otherwise: More RAM will help
Otherwise: More RAM will help
Ronilson Reis, modificado hace 9 años.
RE: Heap Memory issue
New Member Mensajes: 2 Fecha de incorporación: 12/12/14 Mensajes recientes
Hey Mika, thank very much, it helps me a lot.. \o/
Ramalingaiah Dudidmetle, modificado hace 9 años.
RE: Heap Memory issue
Expert Mensajes: 486 Fecha de incorporación: 16/08/14 Mensajes recientes
Hey Mika, thank very much, it helps me a lot..
Ram
Ram
Olaf Kock, modificado hace 9 años.
RE: Heap Memory issue
Liferay Legend Mensajes: 6403 Fecha de incorporación: 23/09/08 Mensajes recientes
As this is warming up a very old topic and might bring it to more people's attention: Please note that you shouldn't use JAVA_OPTS, rather use CATALINA_OPTS. Liferay's default bundles have changed their configuration due to LPS-26464