Fórum
java.lang.OutOfMemoryError: PermGen space
Chad Shryock, modificado 17 Anos atrás.
java.lang.OutOfMemoryError: PermGen space
Expert Postagens: 285 Data de Entrada: 27/08/06 Postagens Recentes
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 17 Anos atrás.
RE: java.lang.OutOfMemoryError: PermGen space
Liferay Master Postagens: 846 Data de Entrada: 05/08/04 Postagens Recentes
add -XX:MaxPermSize=128m to your jvm options
Chad Shryock, modificado 17 Anos atrás.
RE: java.lang.OutOfMemoryError: PermGen space
Expert Postagens: 285 Data de Entrada: 27/08/06 Postagens Recentes
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 17 Anos atrás.
RE: java.lang.OutOfMemoryError: PermGen space
Liferay Master Postagens: 846 Data de Entrada: 05/08/04 Postagens Recentes
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 15 Anos atrás.
RE: java.lang.OutOfMemoryError: PermGen space
New Member Postagens: 2 Data de Entrada: 19/09/08 Postagens Recentes
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 15 Anos atrás.
RE: java.lang.OutOfMemoryError: PermGen space
Liferay Legend Postagens: 1519 Data de Entrada: 07/08/06 Postagens Recentes
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 15 Anos atrás.
RE: java.lang.OutOfMemoryError: PermGen space
Liferay Master Postagens: 576 Data de Entrada: 19/11/07 Postagens Recentes
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 13 Anos atrás.
RE: java.lang.OutOfMemoryError: PermGen space
New Member Postagens: 15 Data de Entrada: 17/10/10 Postagens RecentesMichael 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 12 Anos atrás.
RE: java.lang.OutOfMemoryError: PermGen space
Junior Member Postagens: 45 Data de Entrada: 11/10/11 Postagens Recentes
Update for Liferay 6.1: 128m in MaxPermSize option is not enough. Setting it to 256m will solve the problem.
Tal M, modificado 12 Anos atrás.
RE: java.lang.OutOfMemoryError: PermGen space
New Member Postagens: 5 Data de Entrada: 04/05/11 Postagens Recentes
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 12 Anos atrás.
RE: java.lang.OutOfMemoryError: PermGen space
New Member Mensagem: 1 Data de Entrada: 23/01/12 Postagens Recentes
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 12 Anos atrás.
RE: java.lang.OutOfMemoryError: PermGen space
Regular Member Postagens: 205 Data de Entrada: 01/12/09 Postagens Recentes
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 10 Anos atrás.
RE: java.lang.OutOfMemoryError: PermGen space
New Member Postagens: 2 Data de Entrada: 04/10/13 Postagens Recentes
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 10 Anos atrás.
RE: java.lang.OutOfMemoryError: PermGen space
Liferay Legend Postagens: 14916 Data de Entrada: 02/09/06 Postagens Recentes
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 14 Anos atrás.
RE: java.lang.OutOfMemoryError: PermGen space
New Member Postagens: 14 Data de Entrada: 19/05/09 Postagens Recentes
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 14 Anos atrás.
RE: java.lang.OutOfMemoryError: PermGen space
Expert Postagens: 463 Data de Entrada: 23/03/09 Postagens Recentes
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 10 Anos atrás.
RE: java.lang.OutOfMemoryError: PermGen space
New Member Postagens: 2 Data de Entrada: 06/11/13 Postagens Recentes
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
Anexos:
meera prince, modificado 10 Anos atrás.
RE: java.lang.OutOfMemoryError: PermGen space
Liferay Legend Postagens: 1111 Data de Entrada: 08/02/11 Postagens Recentes
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