Foros de discusión
java.lang.OutOfMemoryError: PermGen space
Chad Shryock, modificado hace 17 años.
java.lang.OutOfMemoryError: PermGen space
Expert Mensajes: 285 Fecha de incorporación: 27/08/06 Mensajes recientes
Any one see this before:
2006-11-22 22:10:57,132 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.OutOfMemoryError: PermGen space
2006-11-22 22:10:57,133 ERROR [com.liferay.taglib.util.IncludeTag] java.lang.OutOfMemoryError: PermGen space
Is this because I need to give the JVM more memory? Any ideas?
This is displayed on the Admin Portlet:
Uptime: 00:58:27
Free Memory: 118,310,032 Bytes
Total Memory: 259,534,848 Bytes
Maximum Memory: 530,907,136 Bytes
Thanks in advance,
Chad.
2006-11-22 22:10:57,132 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/].[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.OutOfMemoryError: PermGen space
2006-11-22 22:10:57,133 ERROR [com.liferay.taglib.util.IncludeTag] java.lang.OutOfMemoryError: PermGen space
Is this because I need to give the JVM more memory? Any ideas?
This is displayed on the Admin Portlet:
Uptime: 00:58:27
Free Memory: 118,310,032 Bytes
Total Memory: 259,534,848 Bytes
Maximum Memory: 530,907,136 Bytes
Thanks in advance,
Chad.
Michael Young, modificado hace 17 años.
RE: java.lang.OutOfMemoryError: PermGen space
Liferay Master Mensajes: 846 Fecha de incorporación: 5/08/04 Mensajes recientes
add -XX:MaxPermSize=128m to your jvm options
Chad Shryock, modificado hace 17 años.
RE: java.lang.OutOfMemoryError: PermGen space
Expert Mensajes: 285 Fecha de incorporación: 27/08/06 Mensajes recientes
Thanks! This seems to have fixed the problem.
Question: where in the documentation would I have found this? That way I don't have to keep asking questions.
Thanks,
Chad.
Question: where in the documentation would I have found this? That way I don't have to keep asking questions.
Thanks,
Chad.
Michael Young, modificado hace 17 años.
RE: java.lang.OutOfMemoryError: PermGen space
Liferay Master Mensajes: 846 Fecha de incorporación: 5/08/04 Mensajes recientes
This particular item is not in there. But our wiki does have a lot of useful information. Actually if you could update our wiki for this particular item we'd appreciate it!
http://wiki.liferay.com/index.php/Liferay_FAQ
Search for "What do I do if I am getting Out of Memory Errors"
http://wiki.liferay.com/index.php/Liferay_FAQ
Search for "What do I do if I am getting Out of Memory Errors"
Andres Serra Fernández, modificado hace 15 años.
RE: java.lang.OutOfMemoryError: PermGen space
New Member Mensajes: 2 Fecha de incorporación: 19/09/08 Mensajes recientes
In that Wiki says what we have to modify de file named catalina.bat, but I can´t find these terms in the file, I found it in setenv.bat, but the problem persists.
Any other idea? I'm using lomboz and liferay 5+tomcat 6.
Thanks!
Any other idea? I'm using lomboz and liferay 5+tomcat 6.
Thanks!
Mika Koivisto, modificado hace 15 años.
RE: java.lang.OutOfMemoryError: PermGen space
Liferay Legend Mensajes: 1519 Fecha de incorporación: 7/08/06 Mensajes recientes
Are you lauching Liferay from Lomboz? If you are you need to change the launch parameters for the server in your IDE not in tomcat's startup scripts.
Michael Saechang, modificado hace 15 años.
RE: java.lang.OutOfMemoryError: PermGen space
Liferay Master Mensajes: 576 Fecha de incorporación: 19/11/07 Mensajes recientes
you would modify the JAVA_OPTS in the catalina.bat
example.
-mike
example.
set JAVA_OPTS=%JAVA_OPTS% -Xms512m -Xmx512m -XX:MaxPermSize=256m -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties"
:noJuli
-mike
Adrian Rodriguez Monedero, modificado hace 13 años.
RE: java.lang.OutOfMemoryError: PermGen space
New Member Mensajes: 15 Fecha de incorporación: 17/10/10 Mensajes recientesMichael Young:
This particular item is not in there. But our wiki does have a lot of useful information. Actually if you could update our wiki for this particular item we'd appreciate it!
http://wiki.liferay.com/index.php/Liferay_FAQ
Search for "What do I do if I am getting Out of Memory Errors"
That page does not exist anymore. Or does it?
Назойливый Вопрошатель, modificado hace 12 años.
RE: java.lang.OutOfMemoryError: PermGen space
Junior Member Mensajes: 45 Fecha de incorporación: 11/10/11 Mensajes recientes
Update for Liferay 6.1: 128m in MaxPermSize option is not enough. Setting it to 256m will solve the problem.
Tal M, modificado hace 12 años.
RE: java.lang.OutOfMemoryError: PermGen space
New Member Mensajes: 5 Fecha de incorporación: 4/05/11 Mensajes recientes
I set it to 512 or 1024 but the problem persist.
I also monitored the liferay tomcat process using jconsole, and seems there is a memory leaks since the perm gen space raises continuously.
Is that a known CRITICAL in 6.1?
we must have a solution for this problem.
Thanks
Tal
I also monitored the liferay tomcat process using jconsole, and seems there is a memory leaks since the perm gen space raises continuously.
Is that a known CRITICAL in 6.1?
we must have a solution for this problem.
Thanks
Tal
Wesley Johnson, modificado hace 12 años.
RE: java.lang.OutOfMemoryError: PermGen space
New Member Mensaje: 1 Fecha de incorporación: 23/01/12 Mensajes recientes
I believe I'm finding the same symptoms as you, Tal. For Liferay 6.0, I'm consistently getting a "java.lang.OutOfMemoryError: PermGen space" on Tomcat startup.
After trying many JAVA_OPTS memory property combinations (XX:MaxPermSize, etc.) as high as 2048m, and even after removing all portlets except for ROOT, I still encounter this problem.
Has anybody found any workarounds or troubleshooting paths when XX:MaxPermSize is not working as a solution for the OutOfMemoryError?
Here is the exact stack trace:
20.01.12 18:33:42 ERROR ContextLoader: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.scripting.ScriptingImpl' defined in class path resource [META-INF/scripting-spring.xml]: Cannot create inner bean 'com.liferay.portal.scripting.ruby.RubyExecutor#d0f59e' of type [com.liferay.portal.scripting.ruby.RubyExecutor] while setting bean property 'scriptingExecutors' with key [TypedStringValue: value [ruby], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.scripting.ruby.RubyExecutor#d0f59e' defined in class path resource [META-INF/scripting-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.scripting.ruby.RubyExecutor]: Constructor threw exception; nested exception is java.lang.OutOfMemoryError: PermGen space
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:378)
After trying many JAVA_OPTS memory property combinations (XX:MaxPermSize, etc.) as high as 2048m, and even after removing all portlets except for ROOT, I still encounter this problem.
Has anybody found any workarounds or troubleshooting paths when XX:MaxPermSize is not working as a solution for the OutOfMemoryError?
Here is the exact stack trace:
20.01.12 18:33:42 ERROR ContextLoader: Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.scripting.ScriptingImpl' defined in class path resource [META-INF/scripting-spring.xml]: Cannot create inner bean 'com.liferay.portal.scripting.ruby.RubyExecutor#d0f59e' of type [com.liferay.portal.scripting.ruby.RubyExecutor] while setting bean property 'scriptingExecutors' with key [TypedStringValue: value [ruby], target type [null]]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.liferay.portal.scripting.ruby.RubyExecutor#d0f59e' defined in class path resource [META-INF/scripting-spring.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.liferay.portal.scripting.ruby.RubyExecutor]: Constructor threw exception; nested exception is java.lang.OutOfMemoryError: PermGen space
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveInnerBean(BeanDefinitionValueResolver.java:281)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:120)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueResolver.java:378)
Nilesh Gundecha, modificado hace 12 años.
RE: java.lang.OutOfMemoryError: PermGen space
Regular Member Mensajes: 205 Fecha de incorporación: 1/12/09 Mensajes recientes
Hi,
I am too facing some memory issues with Liferay 6.1. I have started new thread for same click here
Lets discus it here.
I am too facing some memory issues with Liferay 6.1. I have started new thread for same click here
Lets discus it here.
Tal M:
I set it to 512 or 1024 but the problem persist.
I also monitored the liferay tomcat process using jconsole, and seems there is a memory leaks since the perm gen space raises continuously.
Is that a known CRITICAL in 6.1?
we must have a solution for this problem.
Thanks
Tal
Stamen Stoychev, modificado hace 10 años.
RE: java.lang.OutOfMemoryError: PermGen space
New Member Mensajes: 2 Fecha de incorporación: 4/10/13 Mensajes recientes
I have the same issue when running Liferay on Windows 2003 server. All is good when running the startup.bat, but if I try to run tomcat as a service - I get the java.lang.OutOfMemoryError: PermGen space error...Tried increasing the PermGen but that does not help.
David H Nebinger, modificado hace 10 años.
RE: java.lang.OutOfMemoryError: PermGen space
Liferay Legend Mensajes: 14919 Fecha de incorporación: 2/09/06 Mensajes recientes
You have to consider how it's installed and how the service starts.
I use Tcat, and I have to go into the registry and tweak registry values to affect change (they do have a props file, but if I change that I have to use their start menu guy to make it stick, rather than service control panel).
Anyway, the point is you have to know what is involved when the service is started to ensure that your sitting is at the right place....
I use Tcat, and I have to go into the registry and tweak registry values to affect change (they do have a props file, but if I change that I have to use their start menu guy to make it stick, rather than service control panel).
Anyway, the point is you have to know what is involved when the service is started to ensure that your sitting is at the right place....
Karimila Babu Maganti, modificado hace 14 años.
RE: java.lang.OutOfMemoryError: PermGen space
New Member Mensajes: 14 Fecha de incorporación: 19/05/09 Mensajes recientes
Hi Mike,
I have same kind of issue.
When try to run starup.bat, there is no issue but when i am using windows service option to run my liferay server.
The when i try to tun service, i am getting this error.. Please help me.
Any body help would be appreciated.
Thanks,
Babu.
I have same kind of issue.
When try to run starup.bat, there is no issue but when i am using windows service option to run my liferay server.
The when i try to tun service, i am getting this error.. Please help me.
Any body help would be appreciated.
Thanks,
Babu.
Zsolt Balogh, modificado hace 14 años.
RE: java.lang.OutOfMemoryError: PermGen space
Expert Mensajes: 463 Fecha de incorporación: 23/03/09 Mensajes recientes
Hi,
you can find documentation about starting tomcat as a Windows service here:
http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html
--JvmOptions is what you are looking for.
you can find documentation about starting tomcat as a Windows service here:
http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html
--JvmOptions is what you are looking for.
ibo2013 ibo, modificado hace 10 años.
RE: java.lang.OutOfMemoryError: PermGen space
New Member Mensajes: 2 Fecha de incorporación: 6/11/13 Mensajes recientes
tomcat/bin setenv.bat
set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT -Xmx1024m -XX:MaxPermSize=256m"
copy this instead above
set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT -Xms1536m -Xmx1536m -XX:NewSize=256m -XX:MaxNewSize=256m -XXermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC"
because of this symbol, dowload this file,
set JAVA_opts
good luck
set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT -Xmx1024m -XX:MaxPermSize=256m"
copy this instead above
set "JAVA_OPTS=%JAVA_OPTS% -Dfile.encoding=UTF8 -Djava.net.preferIPv4Stack=true -Dorg.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false -Duser.timezone=GMT -Xms1536m -Xmx1536m -XX:NewSize=256m -XX:MaxNewSize=256m -XXermSize=256m -XX:MaxPermSize=256m -XX:+DisableExplicitGC"
because of this symbol, dowload this file,
set JAVA_opts
good luck
Archivos adjuntos:
meera prince, modificado hace 10 años.
RE: java.lang.OutOfMemoryError: PermGen space
Liferay Legend Mensajes: 1111 Fecha de incorporación: 8/02/11 Mensajes recientes
Hi Generally when we work with eclipse
We will create run time env servers
the actual configuration which we have done for server some time it may not applicable to server we create in eclipse.
in general for tomcat we use setenv.bat or setenv.sh to add our server configuration in the we increase paramgen space and jvm heap size
in jboss standalone.bat or standalone.conf to to add our server configuration in the we increse paramge space and jvm heap size
but when we create server in eclipse using server view some time those configuration may not use server instance which create by eclise thne
go to server views and double click on your server then it will lanch view in eclipse click on open lanch configuration then change settings
We will create run time env servers
the actual configuration which we have done for server some time it may not applicable to server we create in eclipse.
in general for tomcat we use setenv.bat or setenv.sh to add our server configuration in the we increase paramgen space and jvm heap size
in jboss standalone.bat or standalone.conf to to add our server configuration in the we increse paramge space and jvm heap size
but when we create server in eclipse using server view some time those configuration may not use server instance which create by eclise thne
go to server views and double click on your server then it will lanch view in eclipse click on open lanch configuration then change settings