For us the following worked
- Look at cache.properties. Change that to cache information. In default dev 
friendly environment xml documents for forms/screens are parsed almost on each 
request
- We were serving images from a remote location. The way ofbiz was serving 
images was Browser -> Ofbiz -> Fetch remote content. Instead we changed to 
display actual URL of image. Check to see if you your html page has the Image 
URLs.

Hope it helps,
Harmeet

----- Original Message -----
From: "snowch" <sno...@coralms.com>
To: user@ofbiz.apache.org
Sent: Monday, May 11, 2009 4:07:14 PM GMT -05:00 US/Canada Eastern
Subject: Performance issues


Hi Forum,

My application needs to serve images to users but each image request is
checked to ensure the user has permission to view the image.  To do this, I
have created a custom bsh servlet to serve the images for a ftl page (which
are included using   tags).  There can be 20 to 30 images per page.  The
images are around 40Kb.  The page is currently taking 20+ seconds to load
the images.  I have noticed in the log that there be a few second delay
between the ImageServlet finishing and the next request being handled by the
ContextFilter (see below).

Does anyone on this forum have any idea what can be causing the delay?

Many thanks in advance,

Chris

2009-05-11 20:37:56,097 (TP-Processor3) [     ControlServlet.java:256:DEBUG]
[[[ImageServlet] Done rendering page, Servlet Finished- total:0.188,since
last([ImageServlet] Se...):0.125]]
2009-05-11 20:37:56,112 (TP-Processor2) [    TransactionUtil.java:187:DEBUG]
[TransactionUtil.commit] transaction committed
2009-05-11 20:37:56,112 (TP-Processor2) [     ControlServlet.java:256:DEBUG]
[[[ImageServlet] Done rendering page, Servlet Finished- total:0.203,since
last([ImageServlet] Se...):0.14]]
2009-05-11 20:38:01,597 (TP-Processor2) [      ContextFilter.java:182:INFO ]
[Request]: /xxx/control/ImageServlet
2009-05-11 20:38:01,612 (TP-Processor3) [      ContextFilter.java:182:INFO ]
[Request]: /xxx/control/ImageServlet

-- 
View this message in context: 
http://www.nabble.com/Performance-issues-tp23490557p23490557.html
Sent from the OFBiz - User mailing list archive at Nabble.com.

Reply via email to