Find the answer to your Linux question:
Results 1 to 5 of 5
Hi My server would get to load 10 and the pages would still load in a good time. but now when the server is at load 2.00 the pages take ...
  1. #1
    Just Joined!
    Join Date
    Mar 2007
    Posts
    23

    Why is the site so slow?

    Hi

    My server would get to load 10 and the pages would still load in a good time. but now when the server is at load 2.00 the pages take forever to load, the server's hdd got 98% full and I deleted some files and now its 91% Full, does that have to do with it being so slow? How can I find out if its the hard drive that is causing the pages to load slow?


    Thank You!

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    a full harddrive will definitly affect things. your system is constantly writing log files and when the drive fills up and it can't write logs anymore it kinda chokes.

    after clearing up drive space is it better?

    here is a nice command to show the 10 largest folders
    Code:
    du -k /folder/you/want/to/search/ | sort -n | tail -10

  3. #3
    Just Joined!
    Join Date
    Mar 2007
    Posts
    23
    Quote Originally Posted by jledhead View Post
    a full harddrive will definitly affect things. your system is constantly writing log files and when the drive fills up and it can't write logs anymore it kinda chokes.

    after clearing up drive space is it better?

    here is a nice command to show the 10 largest folders
    Code:
    du -k /folder/you/want/to/search/ | sort -n | tail -10
    I deleted user uploaded files and managed to get it to 88% full, its a bid better now, but I have never deleted any logs, what are these logs?

  4. #4
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    no, I wasn't suggesting to delete logs. I was just saying the stuff is constantly getting written to the disk, even if you are just using a web server. so a full disk will make lots of things choke.

  5. #5
    Linux Enthusiast meton_magis's Avatar
    Join Date
    Oct 2006
    Location
    arizona
    Posts
    665
    just an FYI,

    I've found
    du -kx | sort -n
    to be supperior, because the -x switch to du keeps the search on the root partition. That way, your not analyzing files on a disk that's 1&#37; full, trying to fix a drive that's 99% full .......... I learned the hard way ><
    New to the internet, technical forums, or the hacker / open source community??
    Read this to learn good posting habits http://www.catb.org/~esr/faqs/smart-questions.html

    RHCE for RHEL version 5
    RHCT for RHEL version 4

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •