zenphoto 1.2 is experencing poor performance

Hi all,

Recently I have installed the great zenphoto as my personal gallery software, but I have also found that the performance is very poor, when loading a image, the CPU idle drops to ``0'', which could be very bad, now I am not a developer, and I could use some help here.

I have read the http://www.zenphoto.org/2008/06/performance-hacks/ performance guide. But it's not operational for me, either way, it will add more load to the server, and I don't have the additional software installed.

It seems that zenphoto trys to scan the album directory everytime an actrual album is accessed. Don't know anything more.

Thanks in advanced.

Comments

  • acrylian Administrator, Developer
    Your site seems indeed a little slow, but I can't reproduce it on my setups. Did you check if that is maybe with other script, too?

    Indeed Zenphoto is filesystem based and will scan the albums folder if there are any new images, but once the images are cached (=Processd and the thumbs and sized images generated) it should not be that fast.
    Please also read here: http://www.zenphoto.org/2008/08/troubleshooting-zenphoto/#22
  • Hi acrylian,

    I try disable the sharpen thum and images from the admin console and did clicked on the ``pre-cache images'' from the admin console, the performance now seems better.
    Can you try it again and feel the speed as you did last time?

    Thanks for your help.
  • It's still slow, I've added the gzip function to index.php page, front door seems fine, but when doing pre-cache images on the backend, the server load can go up to 15.00.
    how can I make a difference?
    Thanks
  • acrylian Administrator, Developer
    Are you really sure that it's not your server that is slow itself?

    Precaching all images can be slow especially if you have lost of big images.
    http://www.zenphoto.org/2008/08/troubleshooting-zenphoto/#11

    But there is actually no need to precache:
    http://www.zenphoto.org/2008/08/troubleshooting-zenphoto/#22
  • Oh yeah?
    I think that after adding gzip func to the index.php file.
    It just speed up.
  • Oh, a 1024* image would take 6MB memory, and I have 300+ 1024* images. so...
  • What are you doing with gzip? I don't see how adding it to index.php shold change anything.
  • Oh really, I read this
    http://www.zenphoto.org/2008/06/performance-hacks/
    And if gzip wouldn't help, what should I do to make a difference?
    Thanks
  • Sorry, I misunderstood your original postings. I thought that since you were talking about directory searching and CPU load you were concerned about server side issues. Certainly adding an extra processing overhead to compress the web page before serving it could only make such matters worse.

    But if the problem is that your connection is too slow, then compressing the served page would indeed be a help.
  • That is compression, it reduces bandwidth and maybe load time?
  • I am having problems both sides.
    1) Webpages take long time to load which is better now by adding gzip func to the index page.
    2) Access of non-pre-cached images eat up all cpu cycles.

    Let's see if 1.2.1 can solve this problem.
  • The performance of not-pre-cached images in entirely due to the processing required. That in turn is relative the the size of your image and the power of the server you are using. 1.2.1 will make no difference on either of these two parameters.
Sign In or Register to comment.