The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Where is the confs

Discussion in 'General Discussion' started by jaymc, May 27, 2005.

  1. jaymc

    jaymc Well-Known Member

    Joined:
    Jan 5, 2005
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    im running red hat linux, my server load is out of control... so im gonna spend some time messin about with the confs...

    i know the names, php.ini, httpd.conf, my.cnf... ive found them via locate command, but it also returns the same file names but in numerous directories

    so, where is the live conf file for each of the above, as in when i edit it an restart service, the settings will be read in...

    i just wanted to be 100% sure on this

    Thank you

    Additionally. my severs memory is suffering... its reaching 90%... only have 512MB of ram, but at server peak, it never reached more than 35%...then 1 day out the blue, memory was at 90% even if their is only 5 clients connected (early hours of the morning) if i restart MYSQL or HTTP memory shoots down...

    the obvious answer would be to get more RAM, but trust me, the server has coped fine under enourmess load.... this has happened before, and it turned out to be the phpbb qorm virus. i have no idea how to check for it tho....

    Ive edited apache an mysql confs to try and sort, but hasnt done anythin

    ive made this so you can see all my confs (the 1s i think our correct and applied to each service)

    if you have any tips, please post

    http://www.jmchost.net/test

    Celeron 2.4
    512DDR

    now i know you our gonna say get a better server, but 2 weeks ago, at peak, load was 1.00-2.00 and memory never above 35%... so obviously its not time for upgrade

    TOP shown below, at same time service status = 0.04 load and 82% memory used

    1039 root 9 0 4948 4704 4476 S 3.3 0.9 4:08 0 httpd
    8036 root 18 0 1220 1220 904 R 1.1 0.2 0:00 0 top
    6923 mysql 9 0 3576 3576 1464 S 0.1 0.6 0:18 0 mysqld
    7048 root 9 0 1932 1920 1676 S 0.1 0.3 0:00 0 sshd
    1 root 8 0 400 364 348 S 0.0 0.0 0:06 0 init
    2 root 9 0 0 0 0 SW 0.0 0.0 0:00 0 keventd
    3 root 9 0 0 0 0 SW 0.0 0.0 0:03 0 kapmd
    4 root 19 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd_CPU0
    5 root 9 0 0 0 0 SW 0.0 0.0 1:05 0 kswapd
    6 root 9 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush
    7 root 9 0 0 0 0 SW 0.0 0.0 0:03 0 kupdated
    8 root -1 -20 0 0 0 SW< 0.0 0.0 0:00 0 mdrecoveryd
    60 root 9 0 0 0 0 SW 0.0 0.0 0:00 0 khubd
    299 root 9 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
    300 root 9 0 0 0 0 SW 0.0 0.0 0:13 0 kjournald
    301 root 9 0 0 0 0 SW 0.0 0.0 0:04 0 kjournald
    302 root 9 0 0 0 0 SW 0.0 0.0 0:04 0 kjournald
    303 root 9 0 0 0 0 SW 0.0 0.0 0:07 0 kjournald
    764 root 9 0 564 540 520 S 0.0 0.1 0:02 0 syslogd
    768 root 9 0 364 312 312 S 0.0 0.0 0:00 0 klogd
    854 root 9 0 556 516 516 S 0.0 0.1 0:00 0 smartd
    868 named 9 0 2128 1796 1700 S 0.0 0.3 0:03 0 named
    880 root 9 0 1136 940 940 S 0.0 0.1 0:00 0 bash
    891 root 8 0 1104 1020 988 S 0.0 0.1 0:01 0 sshd
    905 root 9 0 744 692 644 S 0.0 0.1 0:00 0 xinetd
    930 root 8 0 2912 1912 1872 S 0.0 0.3 0:03 0 chkservd
    992 root 9 0 14120 5240 5224 S 0.0 1.0 0:02 0 clamd
    998 mailnull 8 0 1064 912 856 S 0.0 0.1 0:00 0 exim
    1002 mailnull 9 0 980 748 748 S 0.0 0.1 0:00 0 exim
    1011 root 9 0 1464 1328 1240 S 0.0 0.2 0:08 0 antirelayd
    1059 root 9 0 22012 1772 1772 S 0.0 0.3 0:01 0 spamd
    1067 root 9 0 4560 1856 1692 S 0.0 0.3 0:00 0 cppop
    1089 root 8 0 588 560 516 S 0.0 0.1 0:00 0 crond
    1180 root 9 0 22576 15M 15500 S 0.0 3.0 0:07 0 spamd



    what the hell is eatin the memory ? and how can it be apache or mysql when the load is 0.04 with only a hand full of clients

    any help much appreicated, sorry about the huge post !
     
  2. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    /usr/local/apache/conf/httpd.conf
    Without Zend - /usr/local/lib/php.ini. With Zend installed - /usr/local/Zend/etc/php.ini
    /etc/my.cnf
     
  3. jaymc

    jaymc Well-Known Member

    Joined:
    Jan 5, 2005
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    cheers for the dir's

    any one have any suggestions for memory madness ?
     
  4. brentp

    brentp Well-Known Member

    Joined:
    Mar 11, 2004
    Messages:
    324
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Ayr, North Queensland, Australia
    get more memory
     
Loading...

Share This Page