Linux slow to serve after reboot

Posted on 2008-11-11
Last Modified: 2012-06-27
A long serving Linux 2.2.18 server had to be rebooted at the weekend. It has served Perl/MySql pages from httpd for goodness knows how many years and the chap who wrote it all has moved on.

My problem is it is really slow to serve the http, maybe 30 secs for the opening page with a sidebar. Images are fine but the layout takes forever to appear.

Using top the server appears to be doing nothing, I've fsck'ed and run myisamchk on the Dbs just in case but to no avail.

Any help would be greatfully received...
Question by:paulm987
    LVL 68

    Accepted Solution

    does all the content come from the local machine?
    Anyway, this sounds like some kind of name resolution or routing problem.
    Perhaps there is more than one nameserver entry in your /etc/resolv.conf and the first of them doesn't exist any more?
    In your /etc/netsvc.conf, take care to have 'bind4' in the 'hosts=' statement, (or 'bind6', if you're using IPv6), and not 'bind' alone.
    And, please check your gateway settings.

    Author Comment

    Thanks for the response wmp.
    All content is local and the only entry in resolv.conf is, however I have entries in the hosts file to resolve the machine name to it's fixed IP. I can ping by name and IP from the network with <1ms replies.
    This server is an intranet server and has no public presence.
    I do not have a netsvc.conf file in /etc but I only use IPv4. possibly an older version of the build?
    My g/way is as required
    Any more ideas?

    Author Comment


    The server had been plugged into a new Gigabit switch, when I plugged it into an older switch it was restored to it's former glory.

    The new switch supports IPv6 the older one does not so maybe that was the problem.

    Thanks wmp you deserve the points as you gave me the clue with the IPv4/IPv6 question.

    Author Closing Comment

    Thanks again.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
    Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now