I've got several questions to make my script more faster and stable.
I recognized that out Server got some load times over 1 so our CPU is very strained.
So I made some tests with my Script and I got some very difficult Problems.
I Startet my script which for example looks like that:
Code: Select all
if(!file_exists($output_brief)){
// Bild erstellen (Schule 2006)
exec('convert '.$input.' -resize 25% '.$output_brief);
exec('convert -size 100x137 xc:skyblue '.$output_brief.' -geometry +65+1 -composite '.$output_brief);
exec('composite '.$over_brief.' '.$output_brief.' '.$output_brief);
exec('montage '.$output_brief.' -shadow -geometry +3+3 -resize 90 '.$output_brief);
}
Is this Code Correct ? Is there anything I could make better ?
Because if I run my PHP Script and I check via my CPU stats my CPU ist strained with about 50% ??? Is that normal ?
My Server is a Managed Server with Opteron 148 and 2 GB RAM.
Is there any possibility that ImageMagick caused a Server crash ? For Example if there are more People on my website ?
best regards Max