AnsweredAssumed Answered

Problem with DownloadContentServlet

Question asked by hivo on Dec 4, 2006
Latest reply on Aug 18, 2016 by bindu_k
Alfresco version: 1.3.0 JBoss bundle

We're using Alfresco to manage a diverse number of resources including images.  We access this images via an Alfresco URL (which internally uses a servlet: DownloadContentServlet).

In isolated requests this Servlet works properly but when doing load testing after a couple of hundreds requests it seems to stop responding.  We enabled debugging for a couple of classes and here's the output we're getting:


2006-12-01 17:18:44,168 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/49195478-5e46-11db-afbc-7b7a601a242f/Ch_Button3.gif
2006-12-01 17:18:44,168 DEBUG [org.alfresco.repo.content.filestore.FileContentStore] Created content reader:
   url: store://2006/11/2/17/11/7fa027d5-6ac7-11db-814d-732015f74a08.bin
   file: C:\repo\contentstore\2006\11\2\17\11\7fa027d5-6ac7-11db-814d-732015f74a08.bin
   reader: ContentAccessor[ contentUrl=store://2006/11/2/17/11/7fa027d5-6ac7-11db-814d-732015f74a08.bin, mimetype=null, size=1094, encoding=UTF-8]
2006-12-01 17:18:44,168 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] For property: {http://www.alfresco.org/model/content/1.0}content
2006-12-01 17:18:44,168 DEBUG [org.alfresco.repo.content.filestore.FileContentReader] Created safe content reader:
   existing reader: ContentAccessor[ contentUrl=store://2006/11/2/17/11/7fa027d5-6ac7-11db-814d-732015f74a08.bin, mimetype=application/x-shockwave-flash, size=1094, encoding=UTF-8]
   safe reader: ContentAccessor[ contentUrl=store://2006/11/2/17/11/7fa027d5-6ac7-11db-814d-732015f74a08.bin, mimetype=application/x-shockwave-flash, size=1094, encoding=UTF-8]
2006-12-01 17:18:44,184 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] With attachment mode: false
2006-12-01 17:18:44,184 DEBUG [org.alfresco.repo.content.filestore.FileContentReader] Opened write channel to file:
   file: C:\repo\contentstore\2006\11\2\17\11\7fa027d5-6ac7-11db-814d-732015f74a08.bin
   random-access: true
2006-12-01 17:18:44,184 DEBUG [org.alfresco.repo.content.filestore.FileContentStore] Created content reader:
   url: store://2006/11/2/17/8/ffc1c753-6ac6-11db-814d-732015f74a08.bin
   file: C:\repo\contentstore\2006\11\2\17\8\ffc1c753-6ac6-11db-814d-732015f74a08.bin
   reader: ContentAccessor[ contentUrl=store://2006/11/2/17/8/ffc1c753-6ac6-11db-814d-732015f74a08.bin, mimetype=null, size=979, encoding=UTF-8]
2006-12-01 17:18:44,184 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/c8e55f51-66c4-11db-94db-c31997a983c8/Fondo4.jpg
2006-12-01 17:18:44,200 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/48cf7a1d-5e46-11db-afbc-7b7a601a242f/Button2-over.gif
2006-12-01 17:18:44,200 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/48d6a611-5e46-11db-afbc-7b7a601a242f/Button3-over.gif
2006-12-01 17:18:44,200 DEBUG [org.alfresco.repo.content.filestore.FileContentReader] Created safe content reader:
   existing reader: ContentAccessor[ contentUrl=store://2006/11/2/17/8/ffc1c753-6ac6-11db-814d-732015f74a08.bin, mimetype=application/x-shockwave-flash, size=979, encoding=UTF-8]
   safe reader: ContentAccessor[ contentUrl=store://2006/11/2/17/8/ffc1c753-6ac6-11db-814d-732015f74a08.bin, mimetype=application/x-shockwave-flash, size=979, encoding=UTF-8]
2006-12-01 17:18:44,215 DEBUG [org.alfresco.repo.content.filestore.FileContentReader] Opened write channel to file:
   file: C:\repo\contentstore\2006\11\2\17\8\ffc1c753-6ac6-11db-814d-732015f74a08.bin
   random-access: true
2006-12-01 17:18:44,215 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/3fc861d2-5e46-11db-afbc-7b7a601a242f/buzz.gif
2006-12-01 17:18:44,215 INFO  [org.apache.catalina.core.ContainerBase.
2006-12-01 17:18:44,278 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/66438ac5-6ac7-11db-814d-732015f74a08/lg_325.swf
2006-12-01 17:18:44,309 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/48ff15ad-5e46-11db-afbc-7b7a601a242f/Button6-over.gif
2006-12-01 17:18:44,325 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/378deab6-6b98-11db-bc22-77eeaa140f1f/lg_550.swf
2006-12-01 17:18:44,356 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/4234802d-5e46-11db-afbc-7b7a601a242f/search.gif
2006-12-01 17:18:44,387 INFO  [org.apache.catalina.core.ContainerBase.
2006-12-01 17:18:44,419 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/9c850f74-66f8-11db-b564-09a667ed1784/motorola_i710.swf
2006-12-01 17:18:44,560 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/491bc57a-5e46-11db-afbc-7b7a601a242f/Ch_Button3-over.gif
2006-12-01 17:18:44,653 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/48d4350f-5e46-11db-afbc-7b7a601a242f/Button3.gif
2006-12-01 17:18:45,154 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/48c12237-5e46-11db-afbc-7b7a601a242f/Button1.gif
2006-12-01 17:18:45,185 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/48c5dd29-5e46-11db-afbc-7b7a601a242f/Button1-over.gif
2006-12-01 17:18:46,390 INFO  [org.apache.catalina.core.ContainerBase.
2006-12-01 17:18:47,157 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/48c12237-5e46-11db-afbc-7b7a601a242f/Button1.gif
2006-12-01 17:18:47,188 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/48c5dd29-5e46-11db-afbc-7b7a601a242f/Button1-over.gif
2006-12-01 17:18:51,397 INFO  [org.apache.catalina.core.ContainerBase.
2006-12-01 17:18:52,163 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/48c12237-5e46-11db-afbc-7b7a601a242f/Button1.gif
2006-12-01 17:18:52,195 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/48c5dd29-5e46-11db-afbc-7b7a601a242f/Button1-over.gif
2006-12-01 17:18:53,399 INFO  [org.apache.catalina.core.ContainerBase.
2006-12-01 17:18:54,166 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/48c12237-5e46-11db-afbc-7b7a601a242f/Button1.gif
2006-12-01 17:18:54,197 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/48c5dd29-5e46-11db-afbc-7b7a601a242f/Button1-over.gif
2006-12-01 17:18:55,824 INFO  [org.apache.catalina.core.ContainerBase.
2006-12-01 17:18:56,591 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/48c12237-5e46-11db-afbc-7b7a601a242f/Button1.gif
2006-12-01 17:18:56,622 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/48c5dd29-5e46-11db-afbc-7b7a601a242f/Button1-over.gif
2006-12-01 17:18:57,404 INFO  [org.apache.catalina.core.ContainerBase.2006-12-01 17:18:58,171 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/48c12237-5e46-11db-afbc-7b7a601a242f/Button1.gif
2006-12-01 17:18:58,202 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/48c5dd29-5e46-11db-afbc-7b7a601a242f/Button1-over.gif
2006-12-01 17:18:59,407 INFO  [org.apache.catalina.core.ContainerBase.
2006-12-01 17:19:00,174 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/48c12237-5e46-11db-afbc-7b7a601a242f/Button1.gif
2006-12-01 17:19:00,205 DEBUG [org.alfresco.web.app.servlet.DownloadContentServlet] Processing URL: /alfresco/download/direct/workspace/SpacesStore/48c5dd29-5e46-11db-afbc-7b7a601a242f/Button1-over.gif

As it can be seen, before the app freezes we can see in the log file how it actually opens the FileReader.  After that the servlet is hanging all future requests.   And it doesn't go pass the line "Processing URL".  We think that its hanging when Alfresco performs authentication (but this is just a feeling).

Is this a known issue? Anything we can do to prevent this?

Outcomes