4images Forum & Community
Welcome, Guest. Please login or register.
Did you miss your activation email?
July 30, 2010, 04:30:58 AM

Login with username, password and session length
Search:     Advanced search
4images is now on facebook. Click here and become a fan!
Translate this page with google
=>
 Translate this page with Google =>
* Home Help Search Login Register
 
+  4images Forum & Community
|-+  4images Issues / Ausgaben
| |-+  Discussion & Troubleshooting (Moderators: Acidgod, ivan, Rembrandt)
| | |-+  cpu usage problem due to 4images?
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: cpu usage problem due to 4images?  (Read 3733 times)
Gwydion
Full Member
***
Offline Offline

Posts: 126

Thank You
-Given: 0
-Receive: 0


View Profile
« on: June 26, 2006, 06:24:41 PM »

As someone has posted here I had the same experience that my host suddenly complained about high cpu and memory usage with my account.
I have a quite big gallery, no registered users (meaning there is no need nor option to register to watch/use the gallery). My host could not narrow it down to a certain script but it is either the gallery or the forum. I think it is the gallery.
account data:
Operating system   Linux   
Apache version   1.3.34 (Unix)   
PERL version   5.8.0   
PHP version   4.4.1   
MySQL version   4.0.25-standard

conversion tools for thumbnails: GD
vs. 1.7.1

I would like to know if others had the same problem with 4images. If so, any tips how to fix it?
I will upgrade to 1.7.2, maybe that helps a bit.

I pay quite much for space and bandwidth and now this .. Somehow I think my host just wants to get rid of me *paranoid*
Logged
V@no
If you don't tell me what to do, I won't tell you where you should go :)
Administrator
4images Guru
*****
Offline Offline

Posts: 17088

Thank You
-Given: 21
-Receive: 191

mmm PHP...


View Profile WWW
« Reply #1 on: June 28, 2006, 12:48:34 AM »

1) turn on cache system (you can find more info in docs folder)
2) turn off random image + random category image (in includes/constants.php)
3) if you are using a mod that randomizing new images on home page, then uninstall it.
Logged

Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Gwydion
Full Member
***
Offline Offline

Posts: 126

Thank You
-Given: 0
-Receive: 0


View Profile
« Reply #2 on: July 02, 2006, 04:43:02 PM »

Thanks. I did all that including the change of constants.php.
It looks now like this:
// If you have a lot of images in your database,
// the random image function could make your programm slow.
// Try first to set "SHOW_RANDOM_CAT_IMAGE" to 0.
define('SHOW_RANDOM_IMAGE', 0);
define('SHOW_RANDOM_CAT_IMAGE', 0);

Do I have to change anything else to stop random images? Because they are still there.
In the templates maybe?

And something else: I have now enabled cache but the only way to see if e.g. new categories have been added is by deleteing everything in the cache folder.
When I click "clear cache" I get
Warning: opendir(./cache): failed to open dir: No such file or directory in /home/user/public_html/gallery/includes/cache_utils.php on line 129
Cache directory cleared

line 129 seems to be a blank line .. so I have no idea what is to change there.
This refers to vs. 1.7.2
« Last Edit: July 02, 2006, 05:59:54 PM by Gwydion » Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
piqs.de - Fotocommunity & lizenzfreie Fotos