views:

28

answers:

0

Hello guys!

Im moving my site from webfaction to linode VPS.

My VPS have 512MB of ram with Fedora Core 13, and when i start apache/mysql and access the site from browser, my site take MINUTES to load, and memory looks like this


Mem:    510652k total,   504652k used,     6000k free,     3460k buffers
Swap:  1048568k total,     5260k used,  1043308k free,   393468k cached

its bad, because in webfaction my site was all fast ... So, what is happen ?? have a way to 'debug' this to see what is happen ?

here is my conf's

my.cnf

[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
key_buffer = 16K
max_allowed_packet = 1M
thread_stack = 64K
table_cache = 4
sort_buffer = 64K
net_buffer_length = 2K

[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

http.conf (using mod_wsgi)


LoadModule dir_module modules/mod_dir.so
LoadModule env_module modules/mod_env.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule log_config_module modules/mod_log_config.so
LoadModule mime_module modules/mod_mime.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule wsgi_module modules/mod_wsgi.so
LoadModule expires_module modules/mod_expires.so

#------------
# Django tune
#------------
KeepAlive off
StartServers 1
MinSpareServers 3
MaxSpareServers 6
ServerLimit 24
MaxClients 24
MaxRequestsPerChild 3000
#------------

.
.
.
and more
.
.
.

thank you !