nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Apache2 performance is awful

This is a discussion on Apache2 performance is awful within the Web servers forums, part of the Mastering Servers category; Greetings - I'm running a gentoo based Drupal 6.6 system with Apache2. Most of the time the system runs fine ...

Register free or login to your existing account and remove all advertisements.


Go Back   nixCraft Linux Forum > Mastering Servers > Web servers

Linux answers from nixCraft.


Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-31-2008, 11:38 PM
Junior Member
User
 
Join Date: Oct 2008
OS: freebsd, gentoo
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jdenniss is on a distinguished road
Default Apache2 performance is awful

Greetings - I'm running a gentoo based Drupal 6.6 system with Apache2. Most of the time the system runs fine - apache uses about 15% cpu most of the time (light load on the system). However this changes dramatically whenever I load create (upload) a 'file' node in Drupal.

When I upload a file (pdf, doc,...) I get my first response from apache after it chews through about 6.25 minutes of cpu time. It then continues to chugg through to about 11.25 Minutes of cpu before sending the final postback to the submitting page. It all works - creates the file node, etc and Drupal is 'happy' with the results - it just takes forever.

The only errors that I'm seeing are ntlm response errors, but apparently those are somewhat common (timing issue?) even on properly configured and running systems (ntlm logins are working fine).

I see no evidence of paging, swapping or thrashing. Does anyone have any suggestions?

thx.
Reply With Quote
  #2 (permalink)  
Old 11-01-2008, 02:14 AM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,680
Thanks: 11
Thanked 241 Times in 181 Posts
Rep Power: 10
nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute nixcraft has a reputation beyond repute
Default

I've no idea about you server hardware / network or client internet connection speed. But, try following

  1. Install xcache
  2. Tune both Apache and MySQL especially query cache
  3. Tune php and provide bigger upload slots i.e. set upload limit editing the file php.ini
  4. Disable unnecessary Apache2 modules
  5. Make sure dns is properly working
__________________
Vivek Gite
Linux Evangelist
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Always use CODE tags for posting system output and commands!
Do you run a Linux? Let's face it, you need help
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Debian Apache2 Enable PHP and Perl pansarevai Web servers 3 11-21-2008 01:11 AM
Apache2 has a proxy emdeded !?!? permalac Networking, Firewalls and Security 6 05-22-2008 07:25 PM
How to start Apache2 automatically at boot satimis Web servers 2 02-03-2008 06:03 PM
VirtualHost Problems on Apache2 rcordeiro Linux software 3 11-08-2006 10:30 PM
debian apache2 cgi-bin location Linux software 1 01-24-2006 06:44 PM


All times are GMT +5.5. The time now is 08:49 PM.


Powered by vBulletin® Version 3.8.4 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2009 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38