FTP limité à 200 fichiers

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

FTP limité à 200 fichiers

Bonjour!

Voilà, suite à ce problème : http://forums.alfresco.com/fr/viewtopic.php?f=13&t=5097, on en a profité pour installer le Java de Sun.
Mais depuis, plus moyen d'envoyer plus de 200 fichiers par le ftp…
Voilà le retour dans alfresco.log :

17:34:19,397 ERROR [org.jbpm.job.executor.JobExecutorThread] exception in job executor thread. waiting 90000 milliseconds
org.alfresco.error.AlfrescoRuntimeException: 06210005 Exception from transactional callback: org.alfresco.repo.workflow.jbpm.AlfrescoJobExecutorThread$1@4d5480a8
        at org.alfresco.error.AlfrescoRuntimeException.create(AlfrescoRuntimeException.java:54)
        at org.alfresco.error.AlfrescoRuntimeException.makeRuntimeException(AlfrescoRuntimeException.java:70)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:424)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:253)
        at org.alfresco.repo.workflow.jbpm.AlfrescoJobExecutorThread.acquireJobs(AlfrescoJobExecutorThread.java:95)
        at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:54)
Caused by: java.lang.OutOfMemoryError: Java heap space
        at java.util.ArrayList.<init>(ArrayList.java:112)
        at java.util.ArrayList.<init>(ArrayList.java:119)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:287)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:381)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:375)
        at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:1069)
        at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:59)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy4.getAllowWrite(Unknown Source)
        at org.alfresco.repo.transaction.TransactionServiceImpl.isReadOnly(TransactionServiceImpl.java:98)
        at org.alfresco.repo.transaction.TransactionServiceImpl.getUserTransaction(TransactionServiceImpl.java:150)
        at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:368)
        … 3 more
17:34:27,716 ERROR [org.alfresco.util.transaction.SpringAwareUserTransaction.trace] Detected first UserTransaction which is being garbage collected without a commit() or rollback()
17:34:33,378 ERROR [org.alfresco.util.transaction.SpringAwareUserTransaction.trace] Logging of transaction call stack is now enabled and will affect performance
17:34:21,294 ERROR [org.alfresco.repo.audit.AuditMethodInterceptor] Failed to audit post-invocation:
   Invocation: ReflectiveMethodInvocation: public abstract org.alfresco.service.cmr.repository.ContentWriter org.alfresco.service.cmr.repository.ContentService.getWriter(org.alfresco.service.cmr.repository.NodeRef,org.alfresco.service.namespace.QName,boolean) throws org.alfresco.service.cmr.repository.InvalidNodeRefException,org.alfresco.service.cmr.dictionary.InvalidTypeException; target is of class [org.alfresco.repo.content.ContentServiceImpl]
java.lang.OutOfMemoryError: Java heap space
        at java.lang.StringCoding$StringEncoder.encode(StringCoding.java:232)
        at java.lang.StringCoding.encode(StringCoding.java:272)
        at java.lang.String.getBytes(String.java:946)
        at java.io.UnixFileSystem.getLength(Native Method)
        at java.io.File.length(File.java:848)
        at org.alfresco.repo.content.filestore.FileContentWriter.getSize(FileContentWriter.java:115)
        at org.alfresco.repo.content.AbstractContentAccessor.toString(AbstractContentAccessor.java:110)
        at org.alfresco.service.cmr.repository.datatype.DefaultTypeConverter$67.convert(DefaultTypeConverter.java:834)
        at org.alfresco.service.cmr.repository.datatype.DefaultTypeConverter$67.convert(DefaultTypeConverter.java:831)
        at org.alfresco.service.cmr.repository.datatype.TypeConverter.convert(TypeConverter.java:114)
        at org.alfresco.repo.audit.AuditMethodInterceptor.auditInvocationAfter(AuditMethodInterceptor.java:382)
        at org.alfresco.repo.audit.AuditMethodInterceptor.proceedWithAudit(AuditMethodInterceptor.java:228)
        at org.alfresco.repo.audit.AuditMethodInterceptor.proceed(AuditMethodInterceptor.java:184)
        at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:137)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
        at $Proxy42.getWriter(Unknown Source)
        at org.alfresco.filesys.repo.ContentNetworkFile.openContent(ContentNetworkFile.java:336)
        at org.alfresco.filesys.repo.ContentNetworkFile.truncateFile(ContentNetworkFile.java:519)
        at org.alfresco.filesys.repo.ContentDiskDriver.createFile(ContentDiskDriver.java:2015)
        at org.alfresco.jlan.ftp.FTPSrvSession.procStoreFile(FTPSrvSession.java:2229)
        at org.alfresco.jlan.ftp.FTPSrvSession.run(FTPSrvSession.java:4788)
        at java.lang.Thread.run(Thread.java:662)

J'ai augmenté la taille mémoire dans /etc/init.d/tomcat6, avec

if [ -z "$JAVA_OPTS" ]; then
        JAVA_OPTS="-Djava.awt.headless=true -Xmx1024M"
fi
: "JAVA_OPTS="-Djava.awt.headless=true -Xmx128M" => "JAVA_OPTS="-Djava.awt.headless=true -Xmx1024M", mais ça n'y fait rien!
Peut-être que c'est parce que le resultat du "if [ -z "$JAVA_OPTS" ]" est négatif?

Merci d'avance!

Romain
1 Reply
cleseach
Active Member II

Re: FTP limité à 200 fichiers

Bonjour,

Avez-vous consulté la page du Wiki JVM Tuning ?
Vous y trouverez plein de renseignements utiles pour fixer les paramètres mémoire de votre JVM.

Le "-z" dans votre script de démarrage vérifie si JAVA_OPTS est déjà défini : si tel n'est pas le cas (JAVA_OPTS pas défini) alors le "then" est exécuté.

Cordialement,
Charles Le Seac'h