Start with memory allocation, then CPU usage.
Also check if you have the cache turned on

other thing you can do on you page is put a start and stop time that
shows page load time.
see if this is the same as the real time you experience.

there also could be some ways for streamlining your code
however that is beyond the scope of the mailing list.

snowch sent the following on 5/11/2009 1:07 PM:
> 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
> 

-- 
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com
http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
Systems Integrator.

Reply via email to