Results 1 to 8 of 8
Thread: Apache or MySQL slow?
-
01-06-2010, 10:11 AM #1Temporarily Suspended
- Join Date
- Jan 2010
- Posts
- 12
Apache or MySQL slow?
Hello.
I installed a VPS without control panel.
yum install httpd php php-devel php-gd php-imap php-ldap php-mysql php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-mhash gettext
yum install mysql mysql-server
I change from apache to lighttpd but first load is slow
Please help a solution.
-
01-06-2010, 01:50 PM #2Junior Guru
- Join Date
- Jan 2010
- Location
- India
- Posts
- 214
Does the VPS has enough free memory allocated ?
-
01-06-2010, 02:07 PM #3Newbie
- Join Date
- Dec 2009
- Location
- New Hampshire
- Posts
- 14
PHP+MySQL+Apache can be a really heavy burden on a server. I was just hosting some static content with Apache2 and RAM usage (without optimization) shot up well past 50Mb.
I would look at apache VPS optimizations at http://www.agnivo.com/tech/vps-mysql...-guide-27.html or switch to something like lighttpd.
-
01-06-2010, 02:19 PM #4WHT Addict
- Join Date
- Aug 2009
- Posts
- 171
He did change to lighttpd according to the first post, but it loads slowly the first time around. If its loading slow, I suggest you take a peek at the CPU usage, maybe thats why its taking quite a bit to process and then it processes much faster the second time around cause its making use cache. But yes, I definetly agree you should do some Apache + MySQL Optimization base on your usage and specs.
-
01-06-2010, 11:20 PM #5Temporarily Suspended
- Join Date
- Jan 2010
- Posts
- 12
I installed VPS with min 512Mb Ram and shared CPU is 1 core. And VPS isn't high load. All is normal!
-
01-07-2010, 08:15 AM #6Disabled
- Join Date
- Dec 2009
- Posts
- 162
What is the server load and number of http connections.
-
01-07-2010, 02:48 PM #7Junior Guru
- Join Date
- Jan 2010
- Location
- India
- Posts
- 214
Hi,
Can you please post the result of the following command here?
"cat /proc/user_beancounters"
-
01-10-2010, 06:37 AM #8Web Hosting Guru
- Join Date
- Oct 2009
- Posts
- 276
Hello,
Try disabling server firewall and test it. If it is the issue, we can dig into the rules further.
Similar Threads
-
Apache 2 + php + mysql very slow performance
By Abadon in forum Hosting Security and TechnologyReplies: 10Last Post: 11-26-2009, 07:18 AM -
VPS incredibly slow, huge numbers of slow MySQL queries for Plesk/Watchdog
By lumpysimon in forum Hosting Security and TechnologyReplies: 3Last Post: 11-11-2008, 12:31 PM -
How to match Apache URLs with MySQL slow queries
By guarriman in forum Dedicated ServerReplies: 4Last Post: 11-19-2007, 11:26 PM -
Very slow apache/mysql performance
By albano in forum Dedicated ServerReplies: 5Last Post: 11-11-2005, 09:32 PM -
apache slow, help
By jason216 in forum Dedicated ServerReplies: 1Last Post: 09-15-2004, 06:15 PM