cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.OutOfMemoryError: PermGen space

filippo
Champ in-the-making
Champ in-the-making
Hi,
I am trying to install Alfresco WAR to an existing Tomcat server. Here are the details of my software stack:
- Alfresco Community Edition 3.3 WAR
- Red Hat Enterprise Linux Server release 5.4 (Tikanga)
- Sun jdk1.6.0_20
- MySQL 5.0.77
- Apache Tomcat 5.5.29

After creating the alfresco database in MySQL and deploying Alfresco WAR (after having modified the […]apache-tomcat-5/shared/classes/alfresco-global.properties), when I start Tomcat I get the following error:

UserSmiley Frustratedystem WARN  [repo.dictionary.DictionaryRepositoryBootstrap] StoreRef 'workspace://SpacesStore' does not exist

After this WARN, and some time of no activity, the system goes out of memory… The problem, I believe, lies within the above WARN, but
I cannot find anywhere the solution to this problem. Help would be very much appreciated, …please.. Smiley Happy

A more detailed catalina.out is here:
17:53:31,986  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
17:53:31,989  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
17:53:31,989  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/var/apache-tomcat-5/shared/classes/alfresco-global.properties]
17:53:32,114  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
17:53:47,611  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl
17:53:47,613  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js
17:53:58,713  INFO  [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
17:53:59,471  INFO  [domain.schema.SchemaBootstrap] No changes were made to the schema.
17:53:59,895  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
17:53:59,912  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
17:54:00,128  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
17:54:00,291 UserSmiley Frustratedystem WARN  [repo.dictionary.DictionaryRepositoryBootstrap] StoreRef 'workspace://SpacesStore' does not exist
java.lang.reflect.InvocationTargetException
Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
6 REPLIES 6

brian_robinson
Champ in-the-making
Champ in-the-making
What does the command line look like for starting tomcat?  Specifically, you may need to have '-XX:MaxPermSize=160m ' in your Java command line options.

vignesh_lnr
Champ in-the-making
Champ in-the-making
Hi,

      I increased the size as -XX:MaxPermSize=512m. so i am not getting that error. but i need a solution for this error
"StoreRef 'workspace://SpacesStore' does not exist". pls if anyone know about this, help me

Thanks

unknown-user
Champ on-the-rise
Champ on-the-rise
I am facing the same problem, is there any progress? Smiley Happy

ichtos
Champ in-the-making
Champ in-the-making
I have the same problem in the latest version. It seems to prevent Tomcat from starting.
This is using a clean Ubuntu 10.04 LTS Lucid install.

I understand that the community version is unsupported, but if that means releasing installs that don't even start, that's not exactly going to grow the community.

kronzucker
Champ in-the-making
Champ in-the-making
I encountered the same problem and resolved it by applying the correct memory settings for the java virtual machine.
Please refer to the documentation on "Tuning the JVM" and "JVM settings" (see link below).

http://docs.alfresco.com/3.4/topic/com.alfresco.Enterprise_3_4_0.doc/concepts/jvm-tuning.html

For myself I run Alfresco with the following JAVA_OPTS configuration:
-server -Xss1024K -Xms2G -Xmx4G -XX:MaxPermSize=256m -XX:NewSize=1G

Kind regards,
Georg

jdixon16
Champ in-the-making
Champ in-the-making
I also encountered this problem, but modifying the memory settings didn't resolve it. I had loaded several customizations into the alfresco webapp, one of them must have been the problem. I replaced my customized alfresco webapp with the clean alfresco.war from the distribution. Alfresco started cleanly with this war. After I got alfresco running and verified that it was working properly I shut it down and reloaded my custom alfresco.war. And now alfresco runs fine.
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.