Forum Moderators: bakedjake

Message Too Old, No Replies

check system resource

         

manofwax

8:57 am on Jul 20, 2004 (gmt 0)

10+ Year Member



Hi everyone,

I'm doing some testings.

I'm "ssh-ing" to a linux machine.

let's say i have some php scripts, which take input from users, and then store those inputs into mysql. Is there any way i can check system resource(eg, CPU usage), when i'm running stress tool on these pages?

Any comments are appreciated.

Kev.

nobody

9:03 am on Jul 20, 2004 (gmt 0)

10+ Year Member



top

or

ps -aux ¦ grep httpd
ps -aux ¦ grep mysqld
perhaps?

SeanW

1:10 pm on Jul 20, 2004 (gmt 0)

10+ Year Member



uptime gives you the load average, top lets you watch it in real time and shows what processes are contending for the CPU along with the system and io utilizations.

If you really want to dig deeper, vmstat and iostat will watch your virtual memory statistics and disk io.

Sean

manofwax

10:26 pm on Jul 23, 2004 (gmt 0)

10+ Year Member



what does "top" give me?
cos the cpu of the linux machine that i'm "sshing" to is shared by other LPARs.

Does "top command" give me just how much my LPAR is using? THANKS A LOT... =)

SeanW

3:26 am on Jul 24, 2004 (gmt 0)

10+ Year Member



Oh... It'll probably be relative to your partition. A load average is just the average number of processes in the run queue over a certain period (1/5/15 min).

Out of interest, what sort of hardware is this? I'm woefully inexperienced in the midrange stuff.

Sean

manofwax

6:59 am on Jul 24, 2004 (gmt 0)

10+ Year Member



i'm not sure what hardware it is... haha, i will let you know later. wahaha... thanks

Kevin