AnsweredAssumed Answered

Out of memory uploading documents

Question asked by mcd on Feb 7, 2013
Latest reply on Feb 8, 2013 by mcd
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.png
http://img801.imageshack.us/img801/4509/53486370.png

My environment:
Ubuntu 12.04
Alfresco version: 3.3.5
apache-tomcat-7.0.34 
1GB JVM heap

Any help would be much apreciated.
Thanks in advance.

Outcomes