cancel
Showing results for 
Search instead for 
Did you mean: 

out of memory, and other errors on ubuntu

greenmoss
Champ in-the-making
Champ in-the-making
Hey all,

I managed to install Alfresco according to the documentation at these urls:

http://wiki.alfresco.com/wiki/Installing_Alfresco_on_Ubuntu_7.10
http://wiki.alfresco.com/wiki/Installing_Alfresco_on_Ubuntu_8.04

I ran the init script, and saw it do the setup. I also see the mysql tables it created. However, I'm getting various errors. Attaching logs, minus (what looks to me like) stack traces:

Tue Nov  4 16:50:13 EST 2008 Starting Alfresco …
16:51:07,338 INFO  [org.alfresco.config.xml.XMLConfigService$PropertyConfigurer] Loading properties file from class path resource [alfresco/file-servers.properties]
16:51:33,769 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
16:51:35,158 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
16:51:38,472 ERROR [org.alfresco.util.exec.RuntimeExecBootstrapBean] Bootstrap command failed:
Execution result:
   os:         Linux
   command:    "soffice" "-accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager" "-env:UserInstallation=file://oouser" -nologo -headless -nofirststartwizard -nocrashrep -norestore
   succeeded:  false
   exit code:  2
   out:       
   err:        Cannot run program ""soffice"": java.io.IOException: error=2, No such file or directory
16:51:40,114 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: /var/lib/alfresco/alf_data
16:51:40,183 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] Checking for patches to apply …
16:51:40,574 INFO  [org.alfresco.repo.admin.patch.PatchExecuter] No patches were required.
16:51:40,953 INFO  [org.alfresco.repo.module.ModuleServiceImpl] Found 0 module(s).
16:51:41,468 ERROR [org.alfresco.smb.protocol] Failed to get local domain/workgroup name, using default of WORKGROUP
16:51:41,468 ERROR [org.alfresco.smb.protocol] (This may be due to firewall settings or incorrect <broadcast> setting)
16:51:44,470 INFO  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_07-b06; maximum heap size 494.938MB
16:51:44,470 WARN  [org.alfresco.service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 494.938MB is less than recommended 512MB
16:51:44,471 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
16:52:03,460 ERROR [org.alfresco.config.BaseConfigService] Input stream invalid - skipped for source: classpath:alfresco/web-client-config-dialogs.xml'
org.alfresco.config.ConfigException: Failed to parse config stream
Caused by: java.lang.OutOfMemoryError: PermGen space
16:52:07,090 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/alfresco]] StandardWrapper.Throwable
java.lang.OutOfMemoryError: PermGen space
16:52:07,092 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/alfresco]] Servlet /alfresco threw load() exception
java.lang.OutOfMemoryError: PermGen space
16:52:08,510 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/alfresco]] StandardWrapper.Throwable
java.lang.OutOfMemoryError: PermGen space
16:52:10,146 ERROR [org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/alfresco]] Servlet /alfresco threw load() exception
java.lang.OutOfMemoryError: PermGen space



I tried twiddling various memory configuration parameters to no avail, as detailed in these posts:
http://forums.alfresco.com/en/viewtopic.php?f=8&t=14228&p=46862
http://forums.alfresco.com/en/viewtopic.php?f=3&t=14451


What's wrong with my setup?
6 REPLIES 6

mrogers
Star Contributor
Star Contributor
The first error reported is that Open Office does not appear to be installed.   Is this correct?

The second error is related to lack of PermGen space which is an issue which is well discussed on this and Sun's forums.    Once you are out of PermGen space then there's no point in analysing further errors.   Alfresco will happily start without Open Office,  but it needs to have sufficient PermGen space.

greenmoss
Champ in-the-making
Champ in-the-making
The first error reported is that Open Office does not appear to be installed.   Is this correct?

The second error is related to lack of PermGen space which is an issue which is well discussed on this and Sun's forums.    Once you are out of PermGen space then there's no point in analysing further errors.   Alfresco will happily start without Open Office,  but it needs to have sufficient PermGen space.

Yes, Open Office is installed. The package under Ubuntu is "openoffice.org-headless", as required by the Ubuntu installation documentation on the wiki. The error complains about not finding soffice, but it really is there:

$ which soffice
/usr/bin/soffice



As for the PermGen space: yes, I noticed all the documentation on fixing this error. None of the supplied answers worked for me. Here is a list of all locations where I found "JAVA_OPTS", and tried to set it to various values:

/etc/init.d/alfresco:export JAVA_OPTS='-Xms256m -Xmx512m -server -Djava.io.tmpdir=/var/lib/alfresco/tmp'

/opt/alfresco/tomcat/bin/catalina.sh:  JAVA_OPTS="$JAVA_OPTS "-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager" "-Djava.util.logging.config.file="$CATALINA_BASE/conf/logging.properties"

/opt/alfresco/tomcat/bin/setenv.sh:export JAVA_OPTS='-Xms128m -Xmx512m -server -Djava.io.tmpdir=/var/lib/alfresco/tmp'

/opt/alfresco/alfresco.sh:export JAVA_OPTS='-Xms128m -Xmx512m -XX:MaxPermSize=128m -server'

/opt/alfresco/alfresco.sh:export JAVA_OPTS="${JAVA_OPTS} -XX:CompileCommand=exclude,org/apache/lucene/index/IndexReader\$1,doBody -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo\$Merger,mergeIndexes -XX:CompileCommand=exclude,org/alfresco/repo/search/impl/lucene/index/IndexInfo\$Merger,mergeDeletions"



I tried -Xms512m in all the places mentioned above, but ran out of heap. Honestly, I don't know what these things should optimally be set to. Is there a script which can examine my system and tell me? I lack knowledge regarding Java application administration.

sbuckle
Champ in-the-making
Champ in-the-making
Is the path to Open Office correct? If you at 'alfresco.sh' you will see that it looks for a script 'start_oo.sh'. Assuming that file exists, check that the path to soffice is correct, e.g. /usr/bin/soffice

steve
Champ in-the-making
Champ in-the-making
Hi,

To adjust the Permgen space you need to use the setting:
-XX:MaxPermSize=128m (or whatever works for you)

Steve

greenmoss
Champ in-the-making
Champ in-the-making
Hi,

To adjust the Permgen space you need to use the setting:
-XX:MaxPermSize=128m (or whatever works for you)

Steve

Perfect! It's working now. Thank you.

danna
Champ in-the-making
Champ in-the-making
Thanks for making this topic. I had the same issue awhile ago and i got through it because of the replies here.


Regards,
Danna
Ordinateur portable pas cher
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.