[RESOLU]Problème de performance sur Alfresco

cancel
Showing results for 
Search instead for 
Did you mean: 
Member II

[RESOLU]Problème de performance sur Alfresco

Bonjour,

Je rencontre des problèmes de performance sur Alfresco 3.2r2 depuis la migration de données que j'ai faite il y a quelques jours.
L'application tourne très lentement et dans la log j'ai très souvent cette erreur :

11:12:13,070  ERROR [pdfbox.filter.FlateFilter] Stop reading corrupt stream
11:12:16,112  ERROR [pdfbox.filter.FlateFilter] Stop reading corrupt stream
11:12:23,907  ERROR [pdfbox.filter.FlateFilter] Stop reading corrupt stream
11:12:25,507  ERROR [pdfbox.filter.FlateFilter] Stop reading corrupt stream
11:12:25,823  ERROR [pdfbox.filter.FlateFilter] Stop reading corrupt stream
11:12:38,750  ERROR [pdfbox.filter.FlateFilter] Stop reading corrupt stream
11:12:58,377  ERROR [content.transform.PoiHssfContentTransformer] org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance
11:12:58,384  ERROR [content.transform.PoiHssfContentTransformer] org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance
11:13:00,176  ERROR [content.transform.PoiHssfContentTransformer] org.apache.poi.hssf.record.RecordFormatException: Unable to construct record instance
11:13:06,551  ERROR [pdfbox.filter.FlateFilter] Stop reading corrupt stream
11:20:55,599  ERROR [quartz.core.JobRunShell] Job DEFAULT.ftsIndexerJobDetail threw an unhandled Exception:
java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.nio.CharBuffer.wrap(CharBuffer.java:350)
        at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:291)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
        at sun.nio.cs.StreamDecoder.read0(StreamDecoder.java:107)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:93)
        at java.io.InputStreamReader.read(InputStreamReader.java:151)
        at org.alfresco.repo.search.impl.lucene.MultiReader.read(MultiReader.java:71)
        at java.io.BufferedReader.fill(BufferedReader.java:136)
        at java.io.BufferedReader.read(BufferedReader.java:157)
        at org.alfresco.repo.search.impl.lucene.analysis.MLAnalayser.tokenStream(MLAnalayser.java:76)
        at org.alfresco.repo.search.impl.lucene.LuceneAnalyser.tokenStream(LuceneAnalyser.java:120)
        at org.alfresco.repo.search.impl.lucene.LuceneAnalyser.tokenStream(LuceneAnalyser.java:125)
        at org.apache.lucene.analysis.Analyzer.reusableTokenStream(Analyzer.java:47)
        at org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerField.java:117)
        at org.apache.lucene.index.DocFieldConsumersPerField.processFields(DocFieldConsumersPerField.java:36)
        at org.apache.lucene.index.DocFieldProcessorPerThread.processDocument(DocFieldProcessorPerThread.java:234)
        at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:765)
        at org.apache.lucene.index.DocumentsWriter.addDocument(DocumentsWriter.java:743)
        at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1917)
        at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1895)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.updateFullTextSearch(ADMLuceneIndexerImpl.java:1574)
        at org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl.index(FullTextSearchIndexerImpl.java:190)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
11:20:55,602  ERROR [quartz.core.ErrorLogger] Job (DEFAULT.ftsIndexerJobDetail threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.OutOfMemoryError: GC overhead limit exceeded]
        at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.nio.CharBuffer.wrap(CharBuffer.java:350)
        at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:291)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
        at sun.nio.cs.StreamDecoder.read0(StreamDecoder.java:107)
        at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:93)
        at java.io.InputStreamReader.read(InputStreamReader.java:151)
        at org.alfresco.repo.search.impl.lucene.MultiReader.read(MultiReader.java:71)
        at java.io.BufferedReader.fill(BufferedReader.java:136)
        at java.io.BufferedReader.read(BufferedReader.java:157)
        at org.alfresco.repo.search.impl.lucene.analysis.MLAnalayser.tokenStream(MLAnalayser.java:76)
        at org.alfresco.repo.search.impl.lucene.LuceneAnalyser.tokenStream(LuceneAnalyser.java:120)
        at org.alfresco.repo.search.impl.lucene.LuceneAnalyser.tokenStream(LuceneAnalyser.java:125)
        at org.apache.lucene.analysis.Analyzer.reusableTokenStream(Analyzer.java:47)
        at org.apache.lucene.index.DocInverterPerField.processFields(DocInverterPerField.java:117)
        at org.apache.lucene.index.DocFieldConsumersPerField.processFields(DocFieldConsumersPerField.java:36)
        at org.apache.lucene.index.DocFieldProcessorPerThread.processDocument(DocFieldProcessorPerThread.java:234)
        at org.apache.lucene.index.DocumentsWriter.updateDocument(DocumentsWriter.java:765)
        at org.apache.lucene.index.DocumentsWriter.addDocument(DocumentsWriter.java:743)
        at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1917)
        at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1895)
        at org.alfresco.repo.search.impl.lucene.ADMLuceneIndexerImpl.updateFullTextSearch(ADMLuceneIndexerImpl.java:1574)
        at org.alfresco.repo.search.impl.lucene.fts.FullTextSearchIndexerImpl.index(FullTextSearchIndexerImpl.java:190)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
11:24:30,520  ERROR [quartz.core.JobRunShell] Job DEFAULT.ftsIndexerJobDetail threw an unhandled Exception:
java.lang.OutOfMemoryError: Java heap space
11:24:30,521  ERROR [quartz.core.ErrorLogger] Job (DEFAULT.ftsIndexerJobDetail threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.OutOfMemoryError: Java heap space]
        at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: java.lang.OutOfMemoryError: Java heap space
11:28:50,040  ERROR [post.lookup.PostLookup] Exception during select of posts
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

Last packet sent to the server was 32974 ms ago.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
        at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2120)
        at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:723)
        at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:46)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:302)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:282)
        at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:38)
        at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:294)
        at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:974)
        at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:96)
        at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:880)
        at sun.reflect.GeneratedMethodAccessor517.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
        at org.alfresco.util.AutoCommitInterceptor.invoke(AutoCommitInterceptor.java:41)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
        at $Proxy66.getConnection(Unknown Source)
        at org.springframework.jdbc.datasource.DataSourceUtils.doGetConnection(DataSourceUtils.java:113)
        at org.springframework.jdbc.datasource.TransactionAwareDataSourceProxy.getConnection(TransactionAwareDataSourceProxy.java:109)
        at com.ibatis.sqlmap.engine.transaction.external.ExternalTransaction.init(ExternalTransaction.java:53)
        at com.ibatis.sqlmap.engine.transaction.external.ExternalTransaction.getConnection(ExternalTransaction.java:90)
        at com.ibatis.sqlmap.engine.mapping.statement.MappedStatement.executeQueryForList(MappedStatement.java:139)
        at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:567)
        at com.ibatis.sqlmap.engine.impl.SqlMapExecutorDelegate.queryForList(SqlMapExecutorDelegate.java:541)
        at com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl.queryForList(SqlMapSessionImpl.java:118)
        at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.queryForList(SqlMapClientImpl.java:94)
        at org.alfresco.repo.domain.activities.ibatis.ActivityPostDAOImpl.selectPosts(ActivityPostDAOImpl.java:49)
        at org.alfresco.repo.activities.post.lookup.PostLookup.execute(PostLookup.java:122)
        at org.alfresco.repo.activities.post.lookup.PostLookupJob.execute(PostLookupJob.java:56)
        at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
        at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:529)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

Last packet sent to the server was 32974 ms ago.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
        at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
        at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3009)
        at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2895)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3438)
        at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:911)
        at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3953)
        at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1276)
        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2048)
        … 38 more
Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost.
        at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2455)
        at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2906)
        … 44 more
11:29:02,646  ERROR [pdfbox.filter.FlateFilter] Stop reading corrupt stream
11:29:03,616  ERROR [pdfbox.filter.FlateFilter] Stop reading corrupt stream
11:29:09,984  ERROR [pdfbox.filter.FlateFilter] Stop reading corrupt stream
11:29:17,211  ERROR [pdfbox.filter.FlateFilter] Stop reading corrupt stream
11:29:32,360  ERROR [pdfbox.filter.FlateFilter] Stop reading corrupt stream

Est-ce un problème de mémoire? Dois-je modifier des paramètres sur des fichiers de configuration?

Merci de vote aide.
2 Replies
Active Member

Re: [RESOLU]Problème de performance sur Alfresco

Avec quelle version du JDK ?

Dans tous les cas, une lecture de http://wiki.alfresco.com/wiki/JVM_Tuning ne peut pas faire de mal, il semble que la JVM ne soit pas très à son aise.
Member II

Re: [RESOLU]Problème de performance sur Alfresco

Bonjour,

D'abord merci pour ton retour.

La version du JDK est 1.6.0_18.
Je me suis servi de la doc du wiki, et ça m'a pas mal aidé. L'application tourne mieux à présent.

Merci.