DPascalBernard / maven-alfresco-archetypes

Automatically exported from code.google.com/p/maven-alfresco-archetypes
0 stars 0 forks source link

Running Alfresco in Jetty #82

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create project using AMP archetype 3.9.1
2. Install project - mvn install
3. Run embedded Alfresco:

MAVEN_OPTS="-Xms256m -Xmx768m -XX:PermSize=128m"
mvn clean integration-test -P webapp 

It appears to hang during the bootstrap process.

What is the expected output? What do you see instead?

Expected: [INFO] Started Jetty Server [INFO] Starting scanner at interval of 10 
seconds.

Actual:
14:51:26,009 INFO  [repo.admin.ConfigurationChecker] The Alfresco root data 
directory ('dir.root') is: ./alf_data_jetty
14:51:26,122 INFO  [admin.patch.PatchExecuter] Checking for patches to apply ...
14:51:26,852 INFO  [admin.patch.PatchExecuter]  Applying patch 
'patch.siteLoadPatch.swsdp' (Loads a sample site into the repository.).
14:51:26,950 INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading 
properties file from class path resource [alfresco/version.properties]
14:51:26,951 INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading 
properties file from class path resource [alfresco/alfresco-shared.properties]
14:51:26,951 INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading 
properties file from class path resource 
[alfresco/domain/cache-strategies.properties]
Exception in thread "SolrWatcherScheduler_QuartzSchedulerThread" Exception in 
thread "RMI 
RenewClean-[192.168.0.115:50501,org.alfresco.util.remote.server.socket.HostConfi
gurableSocketFactory@0]" Exception in thread "RMI 
RenewClean-[192.168.0.115:50504,org.alfresco.util.remote.server.socket.HostConfi
gurableSocketFactory@0]" Exception in thread "RMI 
RenewClean-[192.168.0.115:50505,org.alfresco.util.remote.server.socket.HostConfi
gurableSocketFactory@0]" Exception in thread "RMI 
RenewClean-[192.168.0.115:50508]" Exception in thread "RMI 
RenewClean-[192.168.0.115:50506,org.alfresco.util.remote.server.socket.HostConfi
gurableSocketFactory@0]" Exception in thread "RMI 
RenewClean-[192.168.0.115:50502,org.alfresco.util.remote.server.socket.HostConfi
gurableSocketFactory@0]" 

On trying to break out by hitting CTRL-C I get this message:

Java HotSpot(TM) 64-Bit Server VM warning: Exception java.lang.OutOfMemoryError 
occurred dispatching signal Unknown Signal to handler- the VM may need to be 
forcibly terminated

What version of the product are you using? On what operating system?

AMP Archetype 3.9.1 - using the default generated project with no modifications.

Please provide any additional information below.

Original issue reported on code.google.com by ukdavo on 17 Apr 2012 at 2:05

GoogleCodeExporter commented 9 years ago
Doh - silly typo. Should've been MaxPermSize not PermSize. I've updated the 
Dummies page to reflect this. 

Retried with correct permgen switch but it's still hanging:

15:09:53,981 WARN  [repo.admin.ConfigurationChecker] The Alfresco 'dir.root' 
property is set to a relative path './alf_data_jetty'.  'dir.root' should be 
overridden to point to a specific folder.
15:09:53,981 INFO  [repo.admin.ConfigurationChecker] The Alfresco root data 
directory ('dir.root') is: ./alf_data_jetty
15:09:54,110 INFO  [admin.patch.PatchExecuter] Checking for patches to apply ...
15:09:54,799 INFO  [admin.patch.PatchExecuter]  Applying patch 
'patch.siteLoadPatch.swsdp' (Loads a sample site into the repository.).
15:09:54,908 INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading 
properties file from class path resource [alfresco/version.properties]
15:09:54,909 INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading 
properties file from class path resource [alfresco/alfresco-shared.properties]
15:09:54,909 INFO  [alfresco.config.FixedPropertyPlaceholderConfigurer] Loading 
properties file from class path resource 
[alfresco/domain/cache-strategies.properties]
Exception in thread "JobAcquisitionThread" 

Original comment by ukdavo on 17 Apr 2012 at 2:13

GoogleCodeExporter commented 9 years ago
Could you try running with  MAVEN_OPTS="-Xms256m -Xmx1G -XX:PermSize=300m" ? 
These are the settings that I use on my local machine and it works fine.

Please also check - running "ps aux | grep java" if the MAVEN_OPTS are 
reflected on the Java process?

If none of these work, could you please post your HW configuration?

Thanks!

Original comment by mauri...@session.it on 17 Apr 2012 at 2:20

GoogleCodeExporter commented 9 years ago
Bumping up the heap & permgen settings seems to have sorted it out - thanks!

Original comment by ukdavo on 17 Apr 2012 at 2:44

GoogleCodeExporter commented 9 years ago
Awesome, marking issue as verified

Original comment by mauri...@session.it on 17 Apr 2012 at 3:00