LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-27-2006, 06:35 PM   #1
thachp
LQ Newbie
 
Registered: Feb 2005
Posts: 20

Rep: Reputation: 0
memory leak? Server loading slow.


I'm on F.C2 Celeron 2gh 2gb ram. It's a dedicated server.
Server is on 100mbs cable and 500gb bandwidth.
Site is not that popular. I'm getting like 500 visitors a day.
The problem is my site loading so slow. I can't figure what I did wrong.

Quote:
free -m
total used free shared buffers cached
Mem: 2018 2002 15 0 33 1575
-/+ buffers/cache: 392 1625
Swap: 2047 0 2047

my.cfg (3.23)
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
set-variable=max_connections=500

[mysql.server]
user=mysql
basedir=/var/lib

[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

admin status
Uptime: 4961 Threads: 13 Questions: 93844 Slow queries: 40 Opens: 1037 Flush tables: 1 Open tables: 64 Queries per second avg: 18.916

httpd.conf
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
MaxClients 512
MaxRequestsPerChild 4000
</IfModule>

# worker MPM
# StartServers: initial number of server processes to start
# MaxClients: maximum number of simultaneous client connections
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule worker.c>
StartServers 2
MaxClients 512
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
</IfModule>
My local computer is on T1. I don't think it's my connection. Please advices what to do.

Last edited by thachp; 01-27-2006 at 07:04 PM.
 
Old 01-27-2006, 06:38 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,678

Rep: Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439
Offhand, I would say that your site as-written is doing some ver-r-r-y expensive queries!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
memory leak? Server loading slow. thachp Linux - Newbie 0 01-27-2006 06:26 PM
Memory leak?! nyk Programming 10 01-24-2005 07:08 PM
Site loading slow on New server tommytomato Linux - General 4 08-31-2004 05:19 PM
Help me out on memory leak in Red Hat Advanced Server 2.1 prav_284 Red Hat 2 12-22-2003 03:55 AM
Memory Leak when using memory debugging C program on SuSE SLES8 babalina Linux - Distributions 0 10-06-2003 09:39 AM


All times are GMT -5. The time now is 08:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration