nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

apache performance

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


Go Back   nixCraft Linux Forum > Mastering Linux > Web servers

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 05-14-2008, 10:34 AM
Member
User
 
Join Date: Jul 2006
Posts: 70
kasimani
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 05-15-2008, 04:10 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 838
nixcraft is an unknown quantity at this point
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 | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
  #3 (permalink)  
Old 05-15-2008, 04:22 PM
nixcraft's Avatar
Never say die
User
 
Join Date: Jan 2005
Location: BIOS
My distro: Any distro with shell
Posts: 838
nixcraft is an unknown quantity at this point
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 | My personal blog
Linux Evangelist
Play hard stay cool
Reply With Quote
Reply

Bookmarks

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 On


Similar Threads

Thread Thread Starter Forum Replies Last Post
reading log files (performance issue) subin Shell scripting 1 05-21-2008 06:48 PM
Optimize Performance of Proxy zakaferoz Mail Servers 0 01-24-2008 09:38 AM
PHP code performance zafar466 Linux software 1 04-22-2007 08:23 PM
regarding server performance lovewdhwa Linux software 1 09-21-2006 01:42 PM
Comparing MySQL Performance vivek The Hangout 0 02-11-2005 04:10 PM


All times are GMT +5.5. The time now is 12:52 AM.


Powered by vBulletin® Version 3.7.2 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

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