Performance

17926

Joined: 2011-02-18
Posts: 7
Posted: Sat, 2011-03-05 18:34

Hey, I have problems with the performance of my gallery2 embedded and i dont know why http://we-are-famous.de/sites/bilderhalle/gallery2Embedded.php

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2011-03-05 18:52

It's not just Gallery. I can't get anything on your site to load quickly. Typical of an overloaded, oversold, low-end, shared host. You get what you pay for.

Ask you host, if they'll respond, about why their servers are so slow.
____________________________________________
Like Gallery? Like the support? Donate now!

 
17926

Joined: 2011-02-18
Posts: 7
Posted: Sat, 2011-03-05 19:36

It IS just because of Gallery, Apache is using ALL of what the CPU got!
Well I uploaded 900 images, while uploading gallery got slower and slower til the server needed a restart!

EDIT;:
I now deleted those photos so the server is reachable again

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2011-03-05 19:38

Just going to http://we-are-famous.de/ is slow.

Your server is very poorly configured. Most likely allowing either Apache or MySQL or both to consume too much memory..
http://blog.mysqltuner.com/

http://photos.kevinnehls.com

Pure G2 and super fast. For testing in the past, I've added and deleted 1000s of photos at a time with little impact to the overall server and that's all on the cheapest plan at www.linode.com
____________________________________________
Like Gallery? Like the support? Donate now!

 
17926

Joined: 2011-02-18
Posts: 7
Posted: Sat, 2011-03-05 20:03

ok, just to make that perfectly clear, i had several gameservers runnin on this server, while the cpu usage was just at around 2%.
The CPU is FAST
The fotos were undeletable, i thpught they were removed, sorry for that!
Give me a minute, then it should work properly again!

Quote:
Error (ERROR_LOCK_REQUIRED)

* in modules/core/classes/GalleryFileSystemEntity.class at line 260 (GalleryCoreApi::error)
* in modules/core/classes/GalleryItem.class at line 329 (GalleryFileSystemEntity::delete)
* in modules/core/classes/GalleryAlbumItem.class at line 293 (GalleryItem::delete)
* in modules/core/classes/helpers/GalleryEntityHelper_medium.class at line 115 (GalleryAlbumItem::delete)
* in modules/core/classes/GalleryCoreApi.class at line 2377 (GalleryEntityHelper_medium::deleteEntityById)
* in modules/core/ItemDeleteSingle.inc at line 69 (GalleryCoreApi::deleteEntityById)
* in main.php at line 250 (ItemDeleteSingleController::handleRequest)
* in main.php at line 104
* in main.php at line 88

System Information
Gallery version 2.3.1
PHP version 5.2.6-1+lenny9 apache2handler
Webserver Apache
Database mysqli 5.0.51a-24+lenny5
Toolkits Gd
Operating system Linux vps5337.alfahosting-vps.de 2.6.18-028stab070.5 #1 SMP Fri Sep 17 15:37:23 MSD 2010 i686
Browser Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.14) Gecko/20110221 Ubuntu/10.10 (maverick) Firefox/3.6.14

Ok, photos deltedt server in its pure...

Oh and the CPU model name is: Intel(R) Xeon(R) CPU E5520 @ 2.27GHz
More than enough, In dont kniow what, but sth. is makeing gallery2 crazy

EDIT: I didnt want to sound harsh and I apologize for that. I know that you did a great job cause I read some of the source code...
It´s just, that people really are trying to crack my balls because they want to see those photos :P

 
17926

Joined: 2011-02-18
Posts: 7
Posted: Sat, 2011-03-05 20:51

Ok, everytime I delete the pictures and insert them again, the serve gets really fast. But after 2-3mins it gets really slow, I really dont know why!

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Sat, 2011-03-05 21:36
Quote:
I really dont know why!

Use ImageMagick instead of GD

Make sure you're using file locking instead of database locking (see Site Admin > General, first page you land on)

Check this out for helping tune MySQL:
http://blog.mysqltuner.com/

____________________________________________
Like Gallery? Like the support? Donate now!

 
17926

Joined: 2011-02-18
Posts: 7
Posted: Sun, 2011-03-06 14:49

I dont know why, but I cant get ImageMagick workin!
There are two possibillities:
Install (in /usr/local/bin/) and hardlink it
Or install it in /var/www/webX/html/

How to configure it?

 
nivekiam
nivekiam's picture

Joined: 2002-12-10
Posts: 16504
Posted: Mon, 2011-03-07 05:29

apt-get install imagemagick works for me :)

Do what ever you need to with your distro to get it installed.
____________________________________________
Like Gallery? Like the support? Donate now!