[ https://jira.nuxeo.com/browse/NXP-8640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=109675#comment-109675 ]
Florent Guillaume commented on NXP-8640: ---------------------------------------- For a 3GB file named "zeroes.bin": {noformat} 14:28:30,326 ERROR [EventServiceImpl] Error during sync listener execution java.lang.OutOfMemoryError: Java heap space at java.lang.String.toCharArray(String.java:2725) at org.apache.oro.text.perl.Perl5Util.match(Unknown Source) at net.sf.jmimemagic.MagicMatcher.testRegex(MagicMatcher.java:663) at net.sf.jmimemagic.MagicMatcher.testInternal(MagicMatcher.java:433) at net.sf.jmimemagic.MagicMatcher.test(MagicMatcher.java:237) at net.sf.jmimemagic.Magic.getMagicMatch(Magic.java:344) at org.nuxeo.ecm.platform.mimetype.service.MimetypeRegistryService.getMimetypeFromFile(MimetypeRegistryService.java:193) at org.nuxeo.ecm.platform.mimetype.service.MimetypeRegistryService.getMimetypeFromBlob(MimetypeRegistryService.java:338) at org.nuxeo.ecm.platform.mimetype.service.MimetypeRegistryService.getMimetypeFromFilenameAndBlobWithDefault(MimetypeRegistryService.java:401) at org.nuxeo.ecm.platform.mimetype.service.MimetypeRegistryService.updateMimetype(MimetypeRegistryService.java:422) at org.nuxeo.ecm.platform.mimetype.service.MimetypeRegistryService.updateMimetype(MimetypeRegistryService.java:429) at org.nuxeo.ecm.platform.filemanager.core.listener.MimetypeIconUpdater.updateBlobProperty(MimetypeIconUpdater.java:152) at org.nuxeo.ecm.platform.filemanager.core.listener.MimetypeIconUpdater.handleEvent(MimetypeIconUpdater.java:103) at org.nuxeo.ecm.core.event.impl.EventServiceImpl.fireEvent(EventServiceImpl.java:195) at org.nuxeo.ecm.core.api.AbstractSession.fireEvent(AbstractSession.java:319) at org.nuxeo.ecm.core.api.AbstractSession.notifyEvent(AbstractSession.java:371) at org.nuxeo.ecm.core.api.AbstractSession.saveDocument(AbstractSession.java:1741) 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.nuxeo.ecm.core.api.TransactionalCoreSessionWrapper.invoke(TransactionalCoreSessionWrapper.java:127) at $Proxy28.saveDocument(Unknown Source) at org.nuxeo.ecm.platform.wi.backend.SimpleBackend.updateDocument(SimpleBackend.java:139) at org.nuxeo.ecm.platform.wi.backend.webdav.WebDavBackendAdapter.updateDocument(WebDavBackendAdapter.java:134) at org.nuxeo.ecm.webdav.resource.FileResource.put(FileResource.java:109) {noformat} > OOM on huge file MIME type detection > ------------------------------------ > > Key: NXP-8640 > URL: https://jira.nuxeo.com/browse/NXP-8640 > Project: Nuxeo Enterprise Platform > Issue Type: Bug > Components: Core > Affects Versions: 5.4 > Reporter: Florent Guillaume > Assignee: Florent Guillaume > Priority: Major > Fix For: 5.6 > > > Huge file uploads may result in out of memory errors during MIME type > detection. > Trace below. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira _______________________________________________ ECM-tickets mailing list ECM-tickets@lists.nuxeo.com http://lists.nuxeo.com/mailman/listinfo/ecm-tickets