Web Hosting Talk







View Full Version : Server becomes slow after a few minuts


berberber
07-01-2004, 01:34 PM
Hello every body.

My problem is very common, as a lot of threats about this topic already exist, I read a lot of them, but It is really hard to find out the right solution..

My server (I cannot afford bigger)
2 Gz celeron
256 Mo RAM
Plesk 7.0.3
Latest Redhat
Mysql 4.0.2 ( i ll ask my hoster to upgrade tonight to 4.1)
any websites, one of them with the images script 4images

so, after a few minuts, (can be hours), evrything becomes very slow and the load average goes subitly from 1 to 70, until I restart Apache,
then the proccess begins again.

as It works fine first, I think It must be a configuration issue. (don't say me please again I need 1 Gb RAM, it's too expensive for me)


in the httpd.conf file :

Timeout 60
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
StartServers 8
MinSpareServers 10
MaxSpareServers 20
MaxClients 150
MaxRequestsPerChild 1000
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0

and my my.conf looks like that


[mysqld]

query-cache-type = 1
query-cache-size = 100M
default-character-set=latin1
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
skip-innodb
skip-networking
[mysql.server]
user=mysql
basedir=/var/lib
[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
max_connections=300


Can anybody help me ?

Thanks, Bernhard

xmlxp
07-01-2004, 09:05 PM
do you run vbulletin forum in your server ?

pizzaboy_au
07-01-2004, 09:32 PM
Hi berberber,

Can you run the command top in SSH when the load reaches anymore than 2.

Most likely the bottleneck in the setup is probably the RAM. If you are running any form of forums this can put a big dent in your setup of the server. My suggestion is if you could afford it, would be to upgrade the RAM & processor.

MyLOCA
07-01-2004, 09:36 PM
It's better for you to upgrade RAM.
What's the RAM status in top.

Thanks,

Steven
07-01-2004, 09:37 PM
mysqladmin status


Whats it say?

berberber
07-02-2004, 03:51 AM
Hello,
after months increasing problems,
I just found the bug yesterday, one of the scripts (4images)
had a known bug appearing when two many images, are in the DB.

I had just to disable Random Images in the script, and now the whole server works so fine,
many thanks for your answers....and I do not need more RAM.

Bernhard