CPG 1.2.1 Add photos in batch modus resluts in 100% cpu load CPG 1.2.1 Add photos in batch modus resluts in 100% cpu load
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

CPG 1.2.1 Add photos in batch modus resluts in 100% cpu load

Started by LightMan, April 10, 2004, 07:06:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

LightMan

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??

Joachim Müller

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

LightMan

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!!!! :?:

Joachim Müller

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

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

LightMan

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?!?!

Casper

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.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here