Website Running Slow

Posted on 2011-10-10
Last Modified: 2012-08-14
We have a Drupal website that runs on Apache 2.2 and uses mysql database and php. It runs on a VmWare server with 1gb of Ram and 4 processors. But we are experiencing slowness when connecting to the website, we believe it's a network issue because we did a lot of testing on those servers, the database server running mysql and application server running the drupal website, but everything seemed normal.  Those apps running on windows server 2008.

What could cause the network traffic to slowdown?
Question by:klajdi
    LVL 5

    Expert Comment

    by:Prashant Shrivastava
    If you are running with 1GB RAM then I will suggest to increase this ASAP as if more and more people will connect this will become slower.However I am not sure if have done already but you need to consider many things before running MySQL on a virtual platform.

    For Now I suggest just add RAM and enjoy :).

    Author Comment


    I meant 4gb already on the server not 1gb my mistake. What should i consider running MySql on a virtual platform. With still 4gb and it still runs slow. What could be the issue?
    LVL 9

    Accepted Solution

    How many computers on the network? Connection speed down/up? What tests have you run on the network itself? Anything fishy in the router logs?

    Drupal sites are awesome but do require a bit of tweaking for performance. Going through all the steps really does help. I've noticed the major performance buff is achieved by turning enabling JS/CSS caching:

    Enable CSS and JavaScript caching
    1.Log in as a user with the admin role.
    2.Go to Administer > Site Configuration > Performance (admin/settings/performance).
    3.Set both Optimize CSS and Optimize JavaScript to Enabled.
    This will aggregate and cache CSS and JavaScript files to reduce the number of requests made to your web server. (it's slow at first until th ecache is built)

    Other performance enhancements are using http compression (mod_deflat, mod_gzip, etc.) on the Apache end
    eAccelerator, APC, or xcache will tune performance on the PHP side

    I have an Open Atrium (drupal) install running on a Ubuntu virtual server on an ubuntu host. I noticed the more I started to flesh out the site, the slower it got even on the LAN, so I knew it wasn't a network issue. The above tunes smoothed things out greatly.

    If you're still not convinced it's a drupal thing, then your only other network considerations would be overall LAN traffic (a rouge workstation somewhere spamming the network) and bandwidth.

    Author Comment


    The changes you already mentioned are done. And also we are using eAccelerator and some other optimization changes in Mysql. We run the same setup on a testing environment but on physical servers and not on virtual environment with VmWare.

    So we are thinking it's more of a network issue. What is a good open source to monitor the lan traffic and debug the issue?


    LVL 5

    Expert Comment

    by:Prashant Shrivastava

    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    Suggested Solutions

    I use MySQL for many of my development projects in a Windows environment. To manage my databases (and perform queries) for years I used a tool called MySQL administrator.  This tool has since been replaced by MySQL Workbench. So I decided to m…
    Both Easy and Powerful How easy is PHP? (  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
    Sending a Secure fax is easy with eFax Corporate ( First, Just open a new email message.  In the To field, type your recipient's fax number You can even send a secure international fax — just include t…
    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.

    728 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

    22 Experts available now in Live!

    Get 1:1 Help Now