Monday, April 24, 2006

Linux - Info......

Command to check if the Machine is 32bit or 64bit architecture.
#file /sbin/init
/sbin/init: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
for GNU/Linux 2.2.5, dynamically linked (uses shared libs), stripped

==========================================================
In apache u can configure to know the apaches cpu usage, memory, hits etc and the apache configuration i.e., modules loaded and configured for apache by editing the following entries.

#
# ExtendedStatus controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
#
ExtendedStatus On

# Allow server status reports generated by mod_status,
# with the URL of http://servername/server-status
# Change the ".example.com" to match your domain to enable.
#

SetHandler server-status
Order deny,allow
Deny from all
Allow from x.x.x.x


#
# Allow remote server configuration reports, with the URL of
# http://servername/server-info (requires that mod_info.c be loaded).
# Change the ".example.com" to match your domain to enable.
#

SetHandler server-info
Order deny,allow
Deny from all
Allow from x.x.x.x


System Performance checking utilities in linux.
free(1) man page - Displays free and used memory statistics.
top(1) man page - Displays CPU utilization and process-level statistics.
watch(1) man page - Periodically executes the specified program, displaying fullscreen output.
GNOME System Monitor Help menu entry - Graphically displays process, CPU, memory, and
disk space utilization statistics.
vmstat(8) man page - Displays a concise overview of process, memory, swap, I/O, system, and
CPU utilization.
iostat(1) man page - Displays CPU and I/O statistics.
mpstat(1) man page - Displays individual CPU statistics on multiprocessor systems.
sadc(8) man page - Collects system utilization data.
sa1(8) man page - A script that runs sadc periodically.
sar(1) man page - Produces system resource utilization reports.
sa2(8) man page - Produces daily system resource utilization report files.
nice(1) man page - Changes process scheduling priority.
oprofile(1) man page - Profiles system performance.
op_visualise(1) man page - Graphically displays OProfile data.