Too many convert.exe at the same time use too much memory Too many convert.exe at the same time use too much memory
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Too many convert.exe at the same time use too much memory

Started by pierrela, June 07, 2004, 11:57:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pierrela

Hi,

I try to add multiple pictures at once (I put them in the album before). Thepictures are quite heavy, 1.5 Mo each.
It's working but CPG is launching several instances of convert at the same time, about 8. It's using so much memory my computer performances are runnig down.

I would like to know if there is a way to limit CPG so that it launch an instance of convert (Imagemagick) anc wait until it has finish before sending another one.

Thanks in advance.


Joachim Müller

not possible at the moment, add less pics in one go, or use GD.

GauGau

dleach

I'm also somewhat frustrated with the performance of the batch upload. I have several hundred pictures I'm trying to upload to the database and I'm finding that I have to do it one at a time. If I use GD2 then I find that my server will hang. If I use Imagemagick then if I do more then a couple at a time it just kills the machine.

In my case, I have direct access to the server. It isn't the fastest of machines, but I'm curious how these sites handle such large numbers of uploads? I've also seen a number of threads in this forum complaining about this issue but there doesn't seem to be any answers nor does there seem to be a plan on how to handle this.

David

Nibbler

Batch uploading is a resource intensive process, you can't really get around that. You might like to check this mod which processes pics in serial instead of in parallel.

dleach

I think I found a better way around this... and I don't have to change any code. I use Photoshop CS to batch convert my files to the appropriate thumb_<name> and normal_<name> files. Then I upload all the files to my server. When I do a batch add the code is already in place (in add_picture()) to know that the thumb and normal files are already there and that it doesn't have to call resize_image() to create them.

This allows fairly quick batch uploads of files. The only problem I've seen is that it may take me several attempts to upload all my files (not sure why). But in the end it is much quicker then uploading a single image and letting the system convert the file into the thumb and normal images.

Note that this works with the 1.4.1 version of Coppermine (the one I'm currently using).

David

Joachim Müller

Quote from: dleach on October 04, 2005, 06:19:53 AMNote that this works with the 1.4.1 version of Coppermine (the one I'm currently using).
Works in all coppermine versions this way.

dleach

Yeah... I figured that out. There are a number of performance related threads in this forum of people looking for a way around this performance problem. Seems that this is one answer to their problems and could be something highlighted in some documentation.... just a suggestion.