cancel
Showing results for 
Search instead for 
Did you mean: 

Upgrading from 2.1 to 3.3, Mysql server CPU goes to 99%

i5513
Champ in-the-making
Champ in-the-making
Hi,

I'm trying to upgrading from Alfresco Comunity 2.1 to 3.3.

My database size is 90 Mb, and my repo size is 76 GB

Yesterday I started an Alfresco copy with 3.3 installation and withe a copy of repo and database, log show me:
17:06:21,219 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /opt/alfresco/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-7046270136065738344.sql (Copied from classpath:alfresco/dbscripts/upgrade/2.2/org.hibernate.dialect.MySQLInnoDBDialect/upgrade-0-create-missing-tables.sql).
17:06:21,489 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Executing database script /opt/alfresco/tomcat/temp/Alfresco/AlfrescoSchema-MySQLInnoDBDialect-Update-6919328127734969314.sql (Copied from classpath:alfresco/dbscripts/upgrade/2.2/org.hibernate.dialect.MySQLInnoDBDialect/upgrade-from-2.1.sql).

And now, one day later, at 09:00 it didn't finish yet.

With mytop I can see next sentence is executing now (and yesterday last time I see the query):
EXPLAIN INSERT INTO t_alf_node_properties ( node_id, qname_id, locale_id, list_index, actual_type_n, persisted_type_n, boolean_value, long_value, float_value, double_value, string_value, serializable_value ) SELECT np.node_id, tqn.qname_id, 1, -1, ptypes_actual.type_id, ptypes_persisted.type_id, np.boolean_value, np.long_value, np.float_value, np.double_value, np.string_value, np.serializable_value FROM alf_node_properties np JOIN t_qnames tqn ON (np.qname = tqn.qname) JOIN t_prop_types ptypes_actual ON (ptypes_actual.type_name = np.actual_type) JOIN t_prop_types ptypes_persisted ON (ptypes_persisted.type_name = np.persisted_type) WHERE np.attribute_value IS NULL:

This is the line of mysql in top util:
2322 mysql     20   0  919m 459m  12m S 98.8 23.0   1094:36 mysqld

Should my mysql be customized for Alfresco upgrade ?

How can I know how many time will take Alfresco upgrade?

Any tip ?

Thanks !
3 REPLIES 3

i5513
Champ in-the-making
Champ in-the-making
This seems like this is a known issue [1] with alfresco, but I don't known how can I count howmany nodes has my alfresco. I know about alf_node_properties has 300000 rows.

[1] https://issues.alfresco.com/jira/browse/ALF-3779

dward
Champ on-the-rise
Champ on-the-rise
We're working on a solution. It seems that you can't stop MySQL from taking out lots of record level locks on an INSERT - SELECT, even when there are table locks. We are looking at chunking the inserts into smaller transactions.

i5513
Champ in-the-making
Champ in-the-making
Thank you working in this issue, I lost your reply Smiley Happy