Hi,I'm experiencing an 'out of memory' error in an Alfresco Web Service for uploading documents. The process creates one folder per hour and uploads the documents into them, acording with the time of uploading.The memory taken by the service increases little by little and after 5 hours running and with about 10.000 documents uploaded, the process reachs the out of memory. I think I'm having the problem creating the document's node with the following code:
NodeRef nodo = serviceRegistry.getNodeService().createNode(
carpeta,
ContentModel.ASSOC_CONTAINS,
QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI + datos.getNombre()),
MyModel.TIPO_FACTURA).getChildRef();
When I comment this code and the process is only creating folders, the level of memory consumed remains constant.I've also tried this, having the same result:
NodeRef contenido = serviceRegistry().getNodeService().createNode(
carpeta,
ContentModel.ASSOC_CONTAINS,
QName.createQName(NamespaceService.CONTENT_MODEL_1_0_URI + nombre),
tipo,
mapProps).getChildRef();
I've used Java VisualVM for profiling, so here are screenshots of the heap dump and the monitoring process.http://img18.imageshack.us/img18/4165/16886532.pnghttp://img801.imageshack.us/img801/4509/53486370.pngMy environment:Ubuntu 12.04Alfresco version: 3.3.5apache-tomcat-7.0.34 1GB JVM heapAny help would be much apreciated.Thanks in advance.