The first time I view a new album my server ususally runs out of memory because several images are re-scaled at the same time. Is there an easy way to tell phpix to only use one convert thread at a time?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Are you using the internal or external method of re-scaling the images. As far as I can tell it a single thread process for this but I can investigate farther based on the information that you provide
Cheers
David
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm using the external method. I tried making a new album (called test) with 4 images in it. When I browsed into that one, the output of "ps" contained this:
5022 ? S 0:00 sh -c ./convert 100 75 "cache" "test" "/home/httpd...
5023 ? S 0:00 sh -c ./convert 100 75 "cache" "test" "/home/httpd...
5024 ? S 0:00 sh -c ./convert 100 75 "cache" "test" "/home/httpd...
5025 ? S 0:00 [convert.sh]
5026 ? S 0:00 [convert.sh]
5027 ? S 0:00 [convert.sh]
5028 ? S 0:00 sh -c ./convert 100 75 "cache" "test" "/home/httpd...
5029 ? S 0:00 [convert.sh]
5038 ? D 0:00 convert -quality 80 -antialias -sample 100x75 /home/httpd... 5039 ? D 0:00 convert -quality 80 -antialias -sample 100x75 /home/httpd...
5040 ? D 0:00 convert -quality 80 -antialias -sample 100x75 /home/httpd...
5041 ? D 0:00 convert -quality 80 -antialias -sample 100x75 /home/httpd...
Regards,
Allan
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The first time I view a new album my server ususally runs out of memory because several images are re-scaled at the same time. Is there an easy way to tell phpix to only use one convert thread at a time?
Are you using the internal or external method of re-scaling the images. As far as I can tell it a single thread process for this but I can investigate farther based on the information that you provide
Cheers
David
I'm using the external method. I tried making a new album (called test) with 4 images in it. When I browsed into that one, the output of "ps" contained this:
5022 ? S 0:00 sh -c ./convert 100 75 "cache" "test" "/home/httpd...
5023 ? S 0:00 sh -c ./convert 100 75 "cache" "test" "/home/httpd...
5024 ? S 0:00 sh -c ./convert 100 75 "cache" "test" "/home/httpd...
5025 ? S 0:00 [convert.sh]
5026 ? S 0:00 [convert.sh]
5027 ? S 0:00 [convert.sh]
5028 ? S 0:00 sh -c ./convert 100 75 "cache" "test" "/home/httpd...
5029 ? S 0:00 [convert.sh]
5038 ? D 0:00 convert -quality 80 -antialias -sample 100x75 /home/httpd... 5039 ? D 0:00 convert -quality 80 -antialias -sample 100x75 /home/httpd...
5040 ? D 0:00 convert -quality 80 -antialias -sample 100x75 /home/httpd...
5041 ? D 0:00 convert -quality 80 -antialias -sample 100x75 /home/httpd...
Regards,
Allan