Out of Memory Error with Alfresco 2.1 community

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-24-2009 11:25 AM
Hello everybody. I'm new on this forum.
I have a problem with Alfresco 2.1 Community. I installed Alfresco in a new Tomcat instance (not the bundled one) with another webapp.
Unfortunately, after a random time, Alfresco throws an Out of memory Exception. Tomcat has been configured to use 1536 MB of memory, and it seems that Alfresco uses all the available RAM (at startup writes on catalina.out that it can use 1536 Mb for max heap space). The physical server memory is more than 3 GB.
What can I do to solve this problem?
I have a problem with Alfresco 2.1 Community. I installed Alfresco in a new Tomcat instance (not the bundled one) with another webapp.
Unfortunately, after a random time, Alfresco throws an Out of memory Exception. Tomcat has been configured to use 1536 MB of memory, and it seems that Alfresco uses all the available RAM (at startup writes on catalina.out that it can use 1536 Mb for max heap space). The physical server memory is more than 3 GB.
What can I do to solve this problem?
Labels:
- Labels:
-
Archive
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2009 04:25 AM
Nobody had same problem?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2009 04:46 AM
2.1 is now very old, so there are lots of people running without running out of memory. You would probably also be better off running on a more up to date version.
Please post your memory settings and the text of any error messages that appear. And any relevant bits of the alfresco log files.
Please post your memory settings and the text of any error messages that appear. And any relevant bits of the alfresco log files.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2009 12:19 PM
Alfresco runs on Windows 2000 Server. In tomcat I set max memory with -Xmx=1536m.
In webapps folder there are only 2 webapps.
Next alfresco.log
10:08:11,575 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation:
Execution result:
os: Windows 2003
command: imconvert "C:\Programmi\ApacheSoftwareFoundation\Tomcat6.0\temp\Alfresco\ImageMagickContentTransformer_init_source_11592.gif" "C:\Programmi\ApacheSoftwareFoundation\Tomcat6.0\temp\Alfresco\ImageMagickContentTransformer_init_target_11593.png"
succeeded: false
exit code: 1
out:
err: Cannot run program "imconvert": CreateProcess error=2, Impossibile trovare il file specificato
10:08:14,778 WARN [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
10:08:16,966 WARN [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
10:08:20,903 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.PostgreSQLDialect.
10:08:20,934 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Bypassing schema update checks.
10:08:23,278 INFO [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: C:\Programmi\Alfresco2.1\corepla_documents
10:08:23,340 INFO [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
10:08:23,434 INFO [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
10:08:23,637 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_07-b06; maximum heap size 1524,188MB
10:08:23,637 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.1.0 (482) schema 64 - Installed version 2.1.0 (482) schema 64
Next stdout.log
10:08:11,575 ERROR [transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation:
Execution result:
os: Windows 2003
command: imconvert "C:\Programmi\ApacheSoftwareFoundation\Tomcat6.0\temp\Alfresco\ImageMagickContentTransformer_init_source_11592.gif" "C:\Programmi\ApacheSoftwareFoundation\Tomcat6.0\temp\Alfresco\ImageMagickContentTransformer_init_target_11593.png"
succeeded: false
exit code: 1
out:
err: Cannot run program "imconvert": CreateProcess error=2, Impossibile trovare il file specificato
10:08:14,778 WARN [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
10:08:16,966 WARN [alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
10:08:20,903 INFO [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.PostgreSQLDialect.
10:08:20,934 INFO [domain.schema.SchemaBootstrap] Bypassing schema update checks.
10:08:23,278 INFO [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: C:\Path\to\Repository
10:08:23,340 INFO [admin.patch.PatchExecuter] Checking for patches to apply …
10:08:23,434 INFO [repo.module.ModuleServiceImpl] Found 0 module(s).
10:08:23,637 INFO [service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_07-b06; maximum heap size 1524,188MB
10:08:23,637 INFO [service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.1.0 (482) schema 64 - Installed version 2.1.0 (482) schema 64
log4j: Parsing for [root] with value=[WARN, R].
log4j: Level token is [WARN].
log4j: Category root set to WARN
log4j: Parsing appender named "R".
log4j: Parsing layout options for "R".
log4j: Setting property [conversionPattern] to [%-5.5p %d{yyyy-MM-dd HH:mm:ss} [%-8c] %m%n].
log4j: End of parsing for "R".
log4j: Setting property [file] to [C:\rogramm Files\ApacheSoftwareFoundation\Tomcat6.0/cmdbuild.log].
log4j: Setting property [maxFileSize] to [100MB].
log4j: Setting property [maxBackupIndex] to [10].
log4j: setFile called: C:\Programm Files\ApacheSoftwareFoundation\Tomcat6.0/cmdbuild.log, true
log4j: setFile ended
log4j: Parsed "R" options.
log4j: Parsing for [sql] with value=[DEBUG].
log4j: Level token is [DEBUG].
log4j: Category sql set to DEBUG
log4j: Handling log4j.additivity.sql=[null]
log4j: Parsing for [cmdbuild] with value=[INFO].
log4j: Level token is [INFO].
log4j: Category cmdbuild set to INFO
log4j: Handling log4j.additivity.cmdbuild=[null]
log4j: Parsing for [soap] with value=[DEBUG].
log4j: Level token is [DEBUG].
log4j: Category soap set to DEBUG
log4j: Handling log4j.additivity.soap=[null]
log4j: Parsing for [persist] with value=[DEBUG].
log4j: Level token is [DEBUG].
log4j: Category persist set to DEBUG
log4j: Handling log4j.additivity.persist=[null]
log4j: Parsing for [jsonrpc] with value=[DEBUG].
log4j: Level token is [DEBUG].
log4j: Category jsonrpc set to DEBUG
log4j: Handling log4j.additivity.jsonrpc=[null]
log4j: Parsing for [workflow] with value=[INFO].
log4j: Level token is [INFO].
log4j: Category workflow set to INFO
log4j: Handling log4j.additivity.workflow=[null]
log4j: Parsing for [rest] with value=[WARN].
log4j: Level token is [WARN].
log4j: Category rest set to WARN
log4j: Handling log4j.additivity.rest=[null]
log4j: Parsing for [dms] with value=[WARN].
log4j: Level token is [WARN].
log4j: Category dms set to WARN
log4j: Handling log4j.additivity.dms=[null]
log4j: Finished configuring.
AbandonedObjectPool is used (org.apache.tomcat.dbcp.dbcp.AbandonedObjectPool@332aff)
LogAbandoned: true
RemoveAbandoned: true
RemoveAbandonedTimeout: 60
WAPI endpoint port requested, url: http://localhost:9191/shark
register custom cmdbuild types for shark webservices…
Exception in thread "RMI RenewClean-[192.168.16.9:2233]" java.lang.OutOfMemoryError: PermGen space
Exception in thread "DefaultScheduler_Worker-3" java.lang.OutOfMemoryError: PermGen space
Exception in thread "DefaultScheduler_QuartzSchedulerThread" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-9090-11" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-9090-3" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-9090-2" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-9090-10" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-9090-1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-9090-4" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-9090-5" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-9090-7" java.lang.OutOfMemoryError: PermGen space
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.OutOfMemoryError: PermGen space
In webapps folder there are only 2 webapps.
Next alfresco.log
10:08:11,575 ERROR [org.alfresco.repo.content.transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation:
Execution result:
os: Windows 2003
command: imconvert "C:\Programmi\ApacheSoftwareFoundation\Tomcat6.0\temp\Alfresco\ImageMagickContentTransformer_init_source_11592.gif" "C:\Programmi\ApacheSoftwareFoundation\Tomcat6.0\temp\Alfresco\ImageMagickContentTransformer_init_target_11593.png"
succeeded: false
exit code: 1
out:
err: Cannot run program "imconvert": CreateProcess error=2, Impossibile trovare il file specificato
10:08:14,778 WARN [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
10:08:16,966 WARN [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
10:08:20,903 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.PostgreSQLDialect.
10:08:20,934 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Bypassing schema update checks.
10:08:23,278 INFO [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: C:\Programmi\Alfresco2.1\corepla_documents
10:08:23,340 INFO [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
10:08:23,434 INFO [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
10:08:23,637 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_07-b06; maximum heap size 1524,188MB
10:08:23,637 INFO [org.alfresco.service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.1.0 (482) schema 64 - Installed version 2.1.0 (482) schema 64
Next stdout.log
10:08:11,575 ERROR [transform.magick.AbstractImageMagickContentTransformer] ImageMagickContentTransformer not available: Failed to perform ImageMagick transformation:
Execution result:
os: Windows 2003
command: imconvert "C:\Programmi\ApacheSoftwareFoundation\Tomcat6.0\temp\Alfresco\ImageMagickContentTransformer_init_source_11592.gif" "C:\Programmi\ApacheSoftwareFoundation\Tomcat6.0\temp\Alfresco\ImageMagickContentTransformer_init_target_11593.png"
succeeded: false
exit code: 1
out:
err: Cannot run program "imconvert": CreateProcess error=2, Impossibile trovare il file specificato
10:08:14,778 WARN [remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
10:08:16,966 WARN [alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
10:08:20,903 INFO [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.PostgreSQLDialect.
10:08:20,934 INFO [domain.schema.SchemaBootstrap] Bypassing schema update checks.
10:08:23,278 INFO [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: C:\Path\to\Repository
10:08:23,340 INFO [admin.patch.PatchExecuter] Checking for patches to apply …
10:08:23,434 INFO [repo.module.ModuleServiceImpl] Found 0 module(s).
10:08:23,637 INFO [service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_07-b06; maximum heap size 1524,188MB
10:08:23,637 INFO [service.descriptor.DescriptorService] Alfresco started (Community Network): Current version 2.1.0 (482) schema 64 - Installed version 2.1.0 (482) schema 64
log4j: Parsing for [root] with value=[WARN, R].
log4j: Level token is [WARN].
log4j: Category root set to WARN
log4j: Parsing appender named "R".
log4j: Parsing layout options for "R".
log4j: Setting property [conversionPattern] to [%-5.5p %d{yyyy-MM-dd HH:mm:ss} [%-8c] %m%n].
log4j: End of parsing for "R".
log4j: Setting property [file] to [C:\rogramm Files\ApacheSoftwareFoundation\Tomcat6.0/cmdbuild.log].
log4j: Setting property [maxFileSize] to [100MB].
log4j: Setting property [maxBackupIndex] to [10].
log4j: setFile called: C:\Programm Files\ApacheSoftwareFoundation\Tomcat6.0/cmdbuild.log, true
log4j: setFile ended
log4j: Parsed "R" options.
log4j: Parsing for [sql] with value=[DEBUG].
log4j: Level token is [DEBUG].
log4j: Category sql set to DEBUG
log4j: Handling log4j.additivity.sql=[null]
log4j: Parsing for [cmdbuild] with value=[INFO].
log4j: Level token is [INFO].
log4j: Category cmdbuild set to INFO
log4j: Handling log4j.additivity.cmdbuild=[null]
log4j: Parsing for [soap] with value=[DEBUG].
log4j: Level token is [DEBUG].
log4j: Category soap set to DEBUG
log4j: Handling log4j.additivity.soap=[null]
log4j: Parsing for [persist] with value=[DEBUG].
log4j: Level token is [DEBUG].
log4j: Category persist set to DEBUG
log4j: Handling log4j.additivity.persist=[null]
log4j: Parsing for [jsonrpc] with value=[DEBUG].
log4j: Level token is [DEBUG].
log4j: Category jsonrpc set to DEBUG
log4j: Handling log4j.additivity.jsonrpc=[null]
log4j: Parsing for [workflow] with value=[INFO].
log4j: Level token is [INFO].
log4j: Category workflow set to INFO
log4j: Handling log4j.additivity.workflow=[null]
log4j: Parsing for [rest] with value=[WARN].
log4j: Level token is [WARN].
log4j: Category rest set to WARN
log4j: Handling log4j.additivity.rest=[null]
log4j: Parsing for [dms] with value=[WARN].
log4j: Level token is [WARN].
log4j: Category dms set to WARN
log4j: Handling log4j.additivity.dms=[null]
log4j: Finished configuring.
AbandonedObjectPool is used (org.apache.tomcat.dbcp.dbcp.AbandonedObjectPool@332aff)
LogAbandoned: true
RemoveAbandoned: true
RemoveAbandonedTimeout: 60
WAPI endpoint port requested, url: http://localhost:9191/shark
register custom cmdbuild types for shark webservices…
Exception in thread "RMI RenewClean-[192.168.16.9:2233]" java.lang.OutOfMemoryError: PermGen space
Exception in thread "DefaultScheduler_Worker-3" java.lang.OutOfMemoryError: PermGen space
Exception in thread "DefaultScheduler_QuartzSchedulerThread" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-9090-11" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-9090-3" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-9090-2" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-9090-10" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-9090-1" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-9090-4" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-9090-5" java.lang.OutOfMemoryError: PermGen space
Exception in thread "http-9090-7" java.lang.OutOfMemoryError: PermGen space
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.OutOfMemoryError: PermGen space
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2009 12:24 PM
Right your maximum memory setting is irrelevant. You are out of PermGen space.
http://wiki.alfresco.com/wiki/JVM_Tuning
Try
-XX:MaxPermSize=128M
http://wiki.alfresco.com/wiki/JVM_Tuning
Try
-XX:MaxPermSize=128M
