coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: LightMan on April 10, 2004, 07:06:54 PM

Title: CPG 1.2.1 Add photos in batch modus resluts in 100% cpu load
Post by: LightMan on April 10, 2004, 07:06:54 PM
When i use the batch photo mode, then my cpu of my server is 100% load, sometimes he skips also photos or thumbnails!!

My config is a:
P3 800Mhz
384 MB Ram
Win2k3
PHP 4.3.5
GD2 <is this the problemo??

Is a pentium 3 800 Mhz enough toc create thumbnails with GD2??
Title: CPG 1.2.1 Add photos in batch modus resluts in 100% cpu load
Post by: Joachim Müller on April 11, 2004, 08:41:16 AM
depends on the number of pics, their size and the resolution. You can bring every processor to it's knees if you overload it. Try adding less pics to a folder by ftp.

GauGau
Title: CPG 1.2.1 Add photos in batch modus resluts in 100% cpu load
Post by: LightMan on April 12, 2004, 07:03:57 PM
the resulotion is 3megapixel

i see in the taskbar that there a 4 of more threads started with php!!!

but 800Mhz is enough

can't i reduce the number of pics that where resized in one time!!!! :?:
Title: CPG 1.2.1 Add photos in batch modus resluts in 100% cpu load
Post by: Joachim Müller on April 12, 2004, 07:18:39 PM
use another tool on your client to reduce the pic size before adding them to the database (with a tool like IrfanView you can easily batch-resize). Unless you run very special apps (like medical x-rays or similar), there's no need for the pics to be that large - web safe size usually is considered to be less than 100KB per pic.

Frankly, I don't quite get the issue of this discussion: if coppermine consumes to many resources during batch-add for you, just reduce the relevant factors: file-size, resolution, number of files (by adding less files to one folder before batch-adding).

GauGau
Title: CPG 1.2.1 Add photos in batch modus resluts in 100% cpu load
Post by: Casper on April 12, 2004, 07:20:45 PM
You don't have to do them all in one go, just select a few at a time.
Pics with resolutions of 3mp will definately cause a memory problem on a hosted board, unless you have access to a lot of ram for each action.

Search the boards, you will see pixel size often causes problems, when errors such as 'Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 6400 bytes)' occur.
Title: CPG 1.2.1 Add photos in batch modus resluts in 100% cpu load
Post by: LightMan on April 12, 2004, 08:14:37 PM
Thnx for tha help,

wich resolution is enough 800 x 600??

and does CPG automatticly p[lace the photo's on another place, or do teh photos stay in de dir userpics???

I also edited my php.ini to add more memory for php per process, but has no effect!!  

the memory is not the problemo but the cpu load?!?!
Title: CPG 1.2.1 Add photos in batch modus resluts in 100% cpu load
Post by: Casper on April 12, 2004, 08:44:16 PM
Ok,
first, I see you are putting your pics in the userpics folder.  They must not go in there.  You should create your own folders in the albums folder.  So before you add them to the gallery, move them from the userpics folder.

The pics will stay in the same folder on the server, and coppermine will put the intermediates and thumbs in the same folder.  The database then knows which album etc they belong to.

The resolution depends on what you want them for, but anything bigger than screen size is wasted, unless they are for printing.