cancel
Showing results for 
Search instead for 
Did you mean: 

OutofMemory PermGen space Alfresco lab 3b

gdent
Champ in-the-making
Champ in-the-making
The installed Alfresco on a windows 2003 server and if I start the server from the start menu everything comes up fine and I can use Alfresco. 

However, when I try to setup Alfresco to run as a windows service I receive the Out of Memory PermGen space error.  I have increased the maxpemsize to 256M but I still receive the error.
6 REPLIES 6

ph_francois
Champ in-the-making
Champ in-the-making
gdent,

I got the same error and solve it by doing the following:

Using Tomcat5w.exe found in <Alfresco>\tomcat\bin, in "Java", I added the following in "Java Option": -XX:MaxPermSize=128m (in addition to the 4 line I already have: -Dcatalina.base=i:\alfresco\tomcat; -Dcatalina.home=i:\alfresco\tomcat; -Djava.endorsed.dirs=i:\alfresco\tomcat\common\endorsed; -Djava.io.tmpdir=i:\alfresco\tomcat\temp)

In my case, I put the "Initial memory pool" to 128 MB, the "Maximum memory pool" to 550MB (to be higher than 512 MB) and the "Thread stack size" to 96kb

After having done this, I have no more difference between starting from the start menu or as a service.

Hoping this help

Philippe

gdent
Champ in-the-making
Champ in-the-making
Philippe,

Thank you very much, your suggestion fixed my issue.

-Gary

yanti_nic
Champ in-the-making
Champ in-the-making
I got the same error and solve it by doing the following:

Using Tomcat5w.exe found in <Alfresco>\tomcat\bin, in "Java", I added the following in "Java Option": -XX:MaxPermSize=128m (in addition to the 4 line I already have: -Dcatalina.base=i:\alfresco\tomcat; -Dcatalina.home=i:\alfresco\tomcat; -Djava.endorsed.dirs=i:\alfresco\tomcat\common\endorsed; -Djava.io.tmpdir=i:\alfresco\tomcat\temp)

Philipe,

May I know which file that i have to edit and inside which folder?
Because I try to open all files inside folder <Alfresco>\tomcat\bin, The error still the same.
Please give some clear explanation for me because I'm very new in here.
And what the complete line that I have to put?

Really Thanks in advance and hope to getting your response ASAP.


Best Regards,
Yanti

christianlebe
Champ in-the-making
Champ in-the-making
Hi All,

I followed the same setting as in wiki alfresco:

cd c:\alfresco\tomcat\bin
service.bat install alfresco
tomcat5.exe //US//alfresco –DisplayName "Alfresco Server"
[size=150]tomcat5.exe //US//alfresco –JvmMs=128 –JvmMx=550 –JvmSs=96[/size]
tomcat5.exe //US//alfresco –JavaHome=c:/alfresco/java
  ===>  I think it should be tomcat5.exe //US//alfresco –JavaHome=c:/Program Files/java
         Because the latest full bundle installs java under program files….
tomcat5.exe //US//alfresco –Environment ALF_HOME=c:/alfresco/
tomcat5.exe //US//alfresco –Environment PATH=c:/alfresco/bin;%PATH%
tomcat5.exe //US//alfresco –StartPath c:/alfresco –Startup auto

I changed the memory allocation size to the above, as what Phillipe suggested.

Now, I've got the following error:

09:11:27,031 ERROR [org.springframework.web.context.support.XmlWebApplicationContext] Exception thrown from ApplicationListener handling ContextClosedEvent
java.lang.IllegalStateException: The org.alfresco.cache.sysAdminCache Cache is not alive.
   at net.sf.ehcache.Cache.checkStatus(Cache.java:1588)
   at net.sf.ehcache.Cache.get(Cache.java:774)
   at net.sf.ehcache.Cache.get(Cache.java:755)
   at org.alfresco.repo.cache.EhCacheAdapter.get(EhCacheAdapter.java:87)
   at org.alfresco.repo.cache.TransactionalCache.get(TransactionalCache.java:347)
   at org.alfresco.repo.transaction.TransactionServiceImpl.isReadOnly(TransactionServiceImpl.java:82)
   at org.alfresco.repo.transaction.TransactionServiceImpl.getUserTransaction(TransactionServiceImpl.java:137)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:283)
   at org.alfresco.repo.transaction.RetryingTransactionAdvice.invoke(RetryingTransactionAdvice.java:73)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
   at $Proxy160.onShutdown(Unknown Source)
   at org.alfresco.linkvalidation.LinkValidationServiceBootstrap.onShutdown(LinkValidationServiceBootstrap.java:62)
   at org.alfresco.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:73)
   at org.springframework.context.event.SimpleApplicationEventMulticaster$1.run(SimpleApplicationEventMulticaster.java:77)
   at org.springframework.core.task.SyncTaskExecutor.execute(SyncTaskExecutor.java:49)
   at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:75)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:246)
   at org.springframework.context.support.AbstractApplicationContext.doClose(AbstractApplicationContext.java:676)
   at org.springframework.context.support.AbstractApplicationContext.close(AbstractApplicationContext.java:651)
   at org.springframework.web.context.ContextLoader.closeWebApplicationContext(ContextLoader.java:336)
   at org.springframework.web.context.ContextLoaderListener.contextDestroyed(ContextLoaderListener.java:74)
   at org.apache.catalina.core.StandardContext.listenerStop(StandardContext.java:3805)
   at org.apache.catalina.core.StandardContext.stop(StandardContext.java:4357)
   at org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:893)
   at org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1180)
   at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1151)
   at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)
   at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
   at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1055)
   at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1067)
   at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
   at org.apache.catalina.core.StandardService.stop(StandardService.java:510)
   at org.apache.catalina.core.StandardServer.stop(StandardServer.java:734)
   at org.apache.catalina.startup.Catalina.stop(Catalina.java:602)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:577)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
09:12:10,625 INFO  [org.alfresco.config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
09:12:24,453 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
09:12:25,656 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
09:12:27,781 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: C:\Alfresco_3b\alf_data
09:12:27,828 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
09:12:28,250 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
09:12:28,265 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 2 module(s).
09:12:28,390 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Starting module 'org.alfresco.module.RecordsManagement' version 1.3.
09:12:28,609 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Starting module 'org.alfresco.module.vti' version 1.0.
09:12:29,265 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_07-b06; maximum heap size 493.063MB
09:12:29,265 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 493.063MB is less than recommended 512MB
09:12:29,265 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Labs): Current version 3.0.0 (b 1164) schema 131 - Installed version 3.0.0 (b 1164) schema 131
09:12:29,484 WARN  [org.alfresco.linkvalidation.LinkValidationServiceImpl] LinkValidationService Update is not running (virtualization server not registered or started)
09:12:42,718 INFO  [org.alfresco.web.site.FrameworkHelper] Successfully Initialized Web Framework

I think the issue is: java.lang.IllegalStateException: The org.alfresco.cache.sysAdminCache Cache is not alive. Search on the forum says it is a bug. Smiley Sad

ph_francois
Champ in-the-making
Champ in-the-making
Yanti,

The proposed solution is valid only if you configure Alfresco to start as a service.

If it is your case, the file to open is "Tomcat5w.exe" found in <Alfresco>\tomcat\bin. If not, I don't know where to add these parameters.

Philippe

michielwilleken
Champ in-the-making
Champ in-the-making
You could add parameters to the registry
HKEY_Local_machine \ Software \ Apache Software Foundation \ Procrun 2.0  \ SERVICENAME \ Parameters \ Java

Under options
e.g.
-Dcatalina.base=F:\Tomcat55\virtual-tomcat
-Dcatalina.home=F:\Tomcat55\virtual-tomcat
-Djava.endorsed.dirs=F:\Tomcat55\virtual-tomcat\common\endorsed
-Djava.io.tmpdir=F:\Tomcat55\virtual-tomcat\temp
-XX:MaxPermSize=256M
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.