AnsweredAssumed Answered

Suppression de données

Question asked by dranakan on Jun 11, 2010
Latest reply on Jun 17, 2010 by dranakan
Hello,

Je tente depuis plus d'une semaine de supprimer un répertoire dans Alfresco. Le serveur est tout le temps en train de tourner depuis 9 jours…

J'ai un répertoire "Parent" (avec 414 sous-répertoire contenant chacun 108 files de 23 kb). Total 45'000 documents.

-Alfresco
     -Parent
            -Directory1 (108 files)
            -Directory2 (108 files)
            - …
            -Directory414 (108 files)

Je peux facilement supprimer un des ces sous-répertoires (moins de 2 minutes).

Jvm configuration (ps aux)
alfresco 12700 39.9 27.8 2397796 846520 pts/1  Sl   15:58   5:15 /usr/bin/java -Xms512m -Xmx2048m -XX:MaxPermSize=128m -server -Dalfresco.home=/opt/Alfresco3 -Dcom.sun.management.jmxremote -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 -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=/opt/Alfresco3/tomcat/conf/logging.properties -Djava.endorsed.dirs=/opt/Alfresco3/tomcat/endorsed -classpath :/opt/Alfresco3/tomcat/bin/bootstrap.jar -Dcatalina.base=/opt/Alfresco3/tomcat -Dcatalina.home=/opt/Alfresco3/tomcat -Djava.io.tmpdir=/opt/Alfresco3/tomcat/temp org.apache.catalina.startup.Bootstrap start

Installation
Alfresco  3.2.0 (r2 2440) schema 3300
Mysql

HotTread (Java process)
[alfresco@localhost ~]$ java -classpath /usr/java/jdk1.6.0_16/lib/tools.jar:/media/lienVersPartage/HotThr                                                    ead.jar hotthread.Main 1677 > hot.log
[alfresco@localhost ~]$ cat hot.log

159.0% CPU Usage by Thread 'http-8080-5'
  2/10 snapshots sharing following 84 elements
    java.io.RandomAccessFile.readBytes(Native Method)
    java.io.RandomAccessFile.read(RandomAccessFile.java:322)
    org.apache.lucene.store.FSDirectory$FSIndexInput.readInternal(FSDirectory.java:596)
    org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java:136)
    org.apache.lucene.index.CompoundFileReader$CSIndexInput.readInternal(CompoundFileReader.java:247)
    org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:157)
    org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java:116)
    org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java:92)
    org.apache.lucene.index.TermBuffer.read(TermBuffer.java:82)
    org.apache.lucene.index.SegmentTermEnum.next(SegmentTermEnum.java:127)
    org.apache.lucene.index.SegmentTermEnum.scanTo(SegmentTermEnum.java:158)
    org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:271)
    org.apache.lucene.index.TermInfosReader.get(TermInfosReader.java:218)
    org.apache.lucene.index.SegmentTermDocs.seek(SegmentTermDocs.java:55)
    org.apache.lucene.index.MultiSegmentReader$MultiTermDocs.termDocs(MultiSegmentReader.java:608)
    org.apache.lucene.index.MultiSegmentReader$MultiTermDocs.next(MultiSegmentReader.java:559)
    org.apache.lucene.index.MultiSegmentReader$MultiTermDocs.next(MultiSegmentReader.java:554)
    org.apache.lucene.index.MultiSegmentReader$MultiTermDocs.next(MultiSegmentReader.java:554)
    org.apache.lucene.index.MultiSegmentReader$MultiTermDocs.next(MultiSegmentReader.java:554)
    org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerImpl.deleteReference(AbstractLuceneIndexerI                                                    mpl.java:211)
    org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerImpl.deleteImpl(AbstractLuceneIndexerImpl.j                                                    ava:606)
    org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerImpl.flushPending(AbstractLuceneIndexerImpl                                                    .java:791)
    org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.doPrepare(ADMLuceneIndexerImpl.java:1658)
    org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerImpl.prepare(AbstractLuceneIndexerImpl.java                                                    :472)
    org.alfresco.repo.search.impl.lucene.AbstractLuceneIndexerAndSearcherFactory.prepare(AbstractLuceneIn                                                    dexerAndSearcherFactory.java:802)
    org.alfresco.repo.transaction.AlfrescoTransactionSupport$TransactionSynchronizationImpl.beforeCommit(                                                    AlfrescoTransactionSupport.java:695)
    org.springframework.transaction.support.TransactionSynchronizationUtils.triggerBeforeCommit(Transacti                                                    onSynchronizationUtils.java:48)
    org.springframework.transaction.support.AbstractPlatformTransactionManager.triggerBeforeCommit(Abstra                                                    ctPlatformTransactionManager.java:835)
    org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlat                                                    formTransactionManager.java:645)
    org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTra                                                    nsactionManager.java:632)
    org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(                                                    TransactionAspectSupport.java:314)
    org.alfresco.util.transaction.SpringAwareUserTransaction.commit(SpringAwareUserTransaction.java:467)
    org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.jav                                                    a:349)

Process
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
1677 alfresco  19   0 2367m 2.2g 4292 S  102 74.2  12671:39 java
1489 alfresco  15   0  2184  908  704 R    2  0.0   0:00.01 top
    1 root      15   0  2060  568  540 S    0  0.0   0:01.10 init
    2 root      RT  -5     0    0    0 S    0  0.0   0:08.32 migration/0


catalina.out
Il n'y a rien de spécial (durant mes premières tentatives, il y a eu un problème avec Mysql, mais j'ai rétablit la connexion en mode autoReconnect). Dès lors, après redémarrage, plus aucune erreur.

CPU
Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz

Des idées ?
Merci bien

Outcomes