nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

apache performance

This is a discussion on apache performance within the Web servers forums, part of the Mastering Servers category; I have a webserver and all are on load-balancing by Netscaler. some times load increases so much, even a single ...


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 14-05-2008, 10:34 AM
kasimani's Avatar
Senior Member
User
 
Join Date: Jul 2006
Location: India, Delhi
OS: CentOS, RedHat, Fedora, Ubuntu
Posts: 151
Thanks: 3
Thanked 1 Time in 1 Post
Rep Power: 4
kasimani is on a distinguished road
Send a message via Yahoo to kasimani
Question apache performance

I have a webserver and all are on load-balancing by Netscaler.
some times load increases so much, even a single HTTPD process consumes 100% CPU
and cpu usages fluctuates 10% to 99%.

Even the rsync processes consumes 80 - 90 % of CPU and Memory

so Is there any way to know which php file is consuming most CPU and Memory

Thanks In Advance

Regards
Manish
Reply With Quote
  #2 (permalink)  
Old 15-05-2008, 04:10 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 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

Use top and ps commands
How do I find out Linux CPU utilization?
Linux find the memory used by a program / process using pmap command
__________________
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
  #3 (permalink)  
Old 15-05-2008, 04:22 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash and Python
Posts: 2,710
Thanks: 11
Thanked 245 Times in 184 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

To know the top 5 memory consuming process

Code:
ps auxf | sort -nr -k 4 | head -5
and top 3 cpu consuming process

Code:
ps auxf | sort -nr -k 3 | head -5
__________________
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
reading log files (performance issue) subin Shell scripting 1 21-05-2008 06:48 PM
Optimize Performance of Proxy zakaferoz Mail Servers 0 24-01-2008 09:38 AM
PHP code performance zafar466 Linux software 1 22-04-2007 08:23 PM
regarding server performance lovewdhwa Linux software 1 21-09-2006 01:42 PM
Comparing MySQL Performance vivek The Hangout 0 11-02-2005 04:10 PM


All times are GMT +5.5. The time now is 04:12 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 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