Author Topic: performance troubles (tuning)  (Read 5520 times)

0 Members and 1 Guest are viewing this topic.

Offline tgn

  • Pre-Newbie
  • Posts: 7
    • View Profile
performance troubles (tuning)
« on: January 07, 2003, 11:13:31 PM »
hi!

I have some troubles working with this genious script on my old pc...

my hardware: pentium 166, 96MB RAM - now upgraded to 256MB and increased the mysql-limits.

I have already disabled all random images but.....

e.g. clicking to a "add to lightbox"-button: about 11-12 seconds in a category with about 150 pictures.
opening a category with 17 pictures: ~ 7 sec., adding to lightbox: ~ 7 sec.
....

my first idea was to increase the ram-size, but that's not the real thing.

looking to the process-table shows only, that some httpd's are consuming cpu-time - not the safe_mysqld....

any hints? (perhaps in german ;-))))

thanx

thomas

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
performance troubles (tuning)
« Reply #1 on: January 08, 2003, 09:17:40 AM »
Arbeitest Du evtl. viel mit URLs statt die Bilder upzuloaden?

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline tgn

  • Pre-Newbie
  • Posts: 7
    • View Profile
performance troubles (tuning)
« Reply #2 on: January 08, 2003, 10:53:16 AM »
nein. habe derzeit überhaupt keine url in der datenbank.
alle bilder sind physikalisch im media-verzeichnis vorhanden - und dies liegt sogar auf einer eigenen hdd - nicht mal auf der system-platte.

thomas

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
performance troubles (tuning)
« Reply #3 on: January 08, 2003, 02:24:07 PM »
Hmmm...schwer zu sagen. Wieviele Bilder hast Du denn in der Galerie?

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline tgn

  • Pre-Newbie
  • Posts: 7
    • View Profile
performance troubles (tuning)
« Reply #4 on: January 08, 2003, 03:38:00 PM »
derzeit ca. 7.000
zwischen 10 und 300 bildern je kategorie/unterkategorie
habe auch darauf geachtet, daß in kategorien, die unterkategorien haben, keine einzelnen bilder enthalten sind.
...
kann das allein an einem pentium 166 liegen? ich kanns fast nicht glauben.
oder ist die "default-config" vom mysql in der suse 8.0 so schlimm.

werde mal versuchen, das ganze probehalber auf meinem schleppi zu installieren (1,6GHz P IV), ob es sich da ähnlich verhält.

thomas

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
performance troubles (tuning)
« Reply #5 on: January 08, 2003, 06:50:50 PM »
Genau, probier das mal aus. 7000 Bilder sind schon eine Menge. Evtl. liegt es wirklich daran.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search

Offline tgn

  • Pre-Newbie
  • Posts: 7
    • View Profile
performance troubles (tuning)
« Reply #6 on: January 12, 2003, 10:33:46 PM »
So. Nach viel Schweiß hab ichs nun geschafft: 1:1 Kopie auf den Laptop (1,6GHz P4, 512MB Ram)
-> Wartezeiten sind nun akzeptabel (ca. 1 sec.); aufruf von "detail"-seiten subjektiv nicht verzögert.

allerdings dürfte ich doch irgendwie mit der datenbankgröße troubles haben:
Fatal error:  Allowed memory size of 8388608 bytes exhausted (tried to allocate 3318768 bytes) in /usr/local/httpd/htdocs/4i/includes/zip.php on line 81

das ganze gelingt mir, sobald ich entweder versuche, die komplette datenbank  zu backupen bzw. ebenfalls, wenn ich 100 bilder in die lightbox lege und versuche, das ganze gezippt downzuloaden.  - auf beiden rechnern (natürlich dann in einem anderen .php-file ;-))

hat jemand tipps für mich, wie bei ihm die my.cnf aussieht?

backup mit phpMyAdmin: das sql-text-file ist 980kB groß, im Detail:
 4images_categories  106     11.5 KB
 4images_comments    11       6.7 KB
 4images_groupaccess  51      3.8 KB
 4images_groupmatch  13       3.2 KB
 4images_groups          11       2.3 KB
 4images_images     6,570   643.0 KB
 4images_images_temp  0        1.0 KB
 4images_lightboxes      6        4.9 KB
 4images_postcards       1        2.1 KB
 4images_sessions         1    219.5 KB
 4images_sessionvars    1        2.2 KB
 4images_settings        60        4.7 KB
 4images_users              8         6.0 KB
 4images_wordlist  4,686     181.5 KB
 4images_wordmatch  7,062 147.0 KB

 15 table(s) Sum   18,587 --     1.2 MB

eigentlich sieht das ganze doch nicht abnormal aus.

habe mich auch mal mit der "minutenperformance" vom MySQL gespielt:
auf dem 1,6GHz rechner: ca. 1400-1700 req./min.
auf dem 166MHz kam ich gerade mal auf knapp 200 req./min. [mrtg-mysql-load v. 1.02]

das ganze ist mir irgendwie suspekt.

thomas

Offline Jan

  • Administrator
  • 4images Guru
  • *****
  • Posts: 5.024
    • View Profile
    • 4images - Image Gallery Management System
performance troubles (tuning)
« Reply #7 on: January 13, 2003, 10:10:39 AM »
Das Problem ist, dass in beiden Fällen Dateien eingelesen werden und der Speicher dann nicht mehr ausreicht alles zu verarbeiten. Ab einer bestimmten Größe sollte die Datenbank mit phpMyAdmin gesichert werden. Das würde ih soweiso generell empfehlen da phpMyAdmin naturgemäss viel ausgefeilter und damit stabiler läuft als die Funktion von 4images.
Bei der Lightbox müssen alle Datein zum zippen eingelesen werden um sie dann in ein .zip zu packen. Ab einer bestimmten Anzahl bzw. Gesamtgröße gibt es damit natürlich auch Probleme.

Du kannst das memory_limit aber auch in Deiner php.ini höher setzen.

Jan
Your first three "must do" before you ask a question:
1. Forum rules
2. FAQ
3. Search