homepage Welcome to WebmasterWorld Guest from 54.237.78.165
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
High Load Web Server
magicstar

5+ Year Member



 
Msg#: 3073045 posted 5:12 am on Sep 6, 2006 (gmt 0)

hi i was wondering if i could get some opinions on how to reduce my web server load with average memeory and and low CPU usage. am using a zend platform software with a dual processor for my server with 4 gig ram.

my webserver is running ont server on its own connected via LAN with my database server.

it all started when my web hdd crashed and all my settings were gone. upgraded to zend platform hoping to get it all fixed up. but nothing seems to help.

this is an example of my top

top - 13:09:16 up 2 days, 11:48, 2 users, load average: 352.27, 356.91, 339.97
Tasks: 732 total, 2 running, 729 sleeping, 0 stopped, 1 zombie
Cpu(s): 8.9% us, 2.5% sy, 0.0% ni, 48.2% id, 39.7% wa, 0.1% hi, 0.7% si
Mem: 4147240k total, 3230832k used, 916408k free, 227896k buffers
Swap: 2096472k total, 820k used, 2095652k free, 1163624k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
25107 fridae 16 0 155m 23m 14m D 4.2 0.6 0:01.04 httpd
25845 fridae 16 0 155m 23m 14m S 4.2 0.6 0:00.48 httpd
25622 fridae 16 0 154m 17m 9992 D 4.1 0.4 0:00.48 httpd

 

physics

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3073045 posted 11:20 pm on Sep 10, 2006 (gmt 0)

Welcome to WebmasterWorld.com magicstar!

That looks more like a bug than an actual serer load! Did you try rebooting in case it's just an error in the load average calculation?

magicstar

5+ Year Member



 
Msg#: 3073045 posted 3:36 am on Sep 11, 2006 (gmt 0)

hey there,

apparently this started after i installed zend platform. from waht ir ead from the knowledge base it says it has something to do with my caching. its missing all my cache and henceforth quering everything over and over again.

hence giving me a very high # of cache in my temp directory.

we rebooted before and its always the same.

my website slowed down by 1/2 of what it used to be.

any ideas? or info that you need to help?

mcavic

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3073045 posted 2:08 pm on Sep 11, 2006 (gmt 0)

25107 fridae 16 0 155m 23m 14m D 4.2 0.6 0:01.04 httpd

The D means that httpd is in disk wait, which is abnormal if it lasts for any length of time. A load average of 352 is also highly abnormal, but could happen if there are 352 httpd processes in disk wait.

I don't know what's really going on, though. Perpetual disk wait can be a hardware or kernel problem, or something else on the system interfering. Are you using NFS or Samba for file sharing? Any external hard drives?

Run df from the command line and see if it returns immediately, or if it locks up or takes a while. Also, look at the last 100 lines of /var/log/messages, and see if there are any kernel or disk errors.

physics

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3073045 posted 6:39 pm on Sep 11, 2006 (gmt 0)

What do you get if you do

ps auxww¦grep httpd¦wc -l

magicstar

5+ Year Member



 
Msg#: 3073045 posted 2:54 am on Sep 12, 2006 (gmt 0)

hi there...

this is what i got..

[root@web jody]# ps auxww¦grep httpd¦wc -l
ERROR: Unsupported option (BSD syntax)
********* simple selection ********* ********* selection by list *********
-A all processes -C by command name
-N negate selection -G by real group ID (supports names)
-a all w/ tty except session leaders -U by real user ID (supports names)
-d all except session leaders -g by session OR by effective group name
-e all processes -p by process ID
T all processes on this terminal -s processes in the sessions given
a all w/ tty, including other users -t by tty
g OBSOLETE -- DO NOT USE -u by effective user ID (supports names)
r only running processes U processes for specified users
x processes w/o controlling ttys t by tty
*********** output format ********** *********** long options ***********
-o,o user-defined -f full --Group --User --pid --cols --ppid
-j,j job control s signal --group --user --sid --rows --info
-O,O preloaded -o v virtual memory --cumulative --format --deselect
-l,l long u user-oriented --sort --tty --forest --version
-F extra full X registers --heading --no-heading --context
********* misc options *********
-V,V show version L list format codes f ASCII art forest
-m,m,-L,-T,H threads S children in sum -y change -l format
-M,Z security data c true command name -c scheduling class
-w,w wide output n numeric WCHAN,UID -H process hierarchy
[root@web jody]#

magicstar

5+ Year Member



 
Msg#: 3073045 posted 2:54 am on Sep 12, 2006 (gmt 0)

[root@web jody]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 275126716 185417128 75508532 72% /
/dev/sda1 101086 13009 82858 14% /boot
/dev/shm 2073620 0 2073620 0% /dev/shm
none 2073620 0 2073620 0% /sessions

mcavic

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3073045 posted 4:01 am on Sep 12, 2006 (gmt 0)

Try:

ps ax ¦ grep httpd ¦ wc -l
ps ax ¦ grep httpd ¦ grep " D " ¦ wc -l
grep "kernel.*sda" /var/log/messages ¦ tail -20

You have to type them though, not copy/paste, otherwise the ¦ is wrong.

[edited by: mcavic at 4:03 am (utc) on Sep. 12, 2006]

magicstar

5+ Year Member



 
Msg#: 3073045 posted 4:02 am on Sep 12, 2006 (gmt 0)

from the /var/log/messages i have found the following:-

Sep 10 04:13:17 localhost snmpd[13935]: /etc/snmp/snmpd.conf: line 15: Error: Blank line following trapsink token.
Sep 10 04:13:17 localhost snmpd[13935]: /etc/snmp/snmpd.conf: line 20: Error: Blank line following trap2sink token.
Sep 10 04:13:17 localhost snmpd[13935]: /etc/snmp/snmpd.conf: line 25: Error: Blank line following informsink token.
Sep 10 04:13:17 localhost snmpd[13935]: /etc/snmp/snmpd.conf: line 30: Error: Blank line following trapcommunity token.
Sep 10 04:13:17 localhost snmpd[13935]: /etc/snmp/snmpd.conf: line 116: Error: Blank line following proc token.
Sep 10 04:13:17 localhost snmpd[13935]: /etc/snmp/snmpd.conf: line 131: Error: Blank line following disk token.
Sep 10 04:13:17 localhost snmpd[13935]: /etc/snmp/snmpd.conf: line 157: Error: Blank line following file token.
Sep 10 04:13:17 localhost snmpd[13935]: net-snmp: 7 error(s) in config file(s)
Sep 10 04:13:20 localhost snmpd[13935]: /etc/snmp/snmpd.conf: line 15: Error: Blank line following trapsink token.
Sep 10 04:13:20 localhost snmpd[13935]: /etc/snmp/snmpd.conf: line 20: Error: Blank line following trap2sink token.
Sep 10 04:13:20 localhost snmpd[13935]: /etc/snmp/snmpd.conf: line 25: Error: Blank line following informsink token.
Sep 10 04:13:20 localhost snmpd[13935]: /etc/snmp/snmpd.conf: line 30: Error: Blank line following trapcommunity token.
Sep 10 04:13:20 localhost snmpd[13935]: /etc/snmp/snmpd.conf: line 116: Error: Blank line following proc token.
Sep 10 04:13:20 localhost snmpd[13935]: /etc/snmp/snmpd.conf: line 131: Error: Blank line following disk token.
Sep 10 04:13:20 localhost snmpd[13935]: /etc/snmp/snmpd.conf: line 157: Error: Blank line following file token.

the rest are just connections.

thanks!

magicstar

5+ Year Member



 
Msg#: 3073045 posted 4:07 am on Sep 12, 2006 (gmt 0)

hi
out of 3 commands only grep ran successfully

i ran grep "kernel.*sda" /var/log/messages ¦ tail -20 and got this..

/var/log/messages-Sep 12 04:40:04 localhost kernel: NET: Registered protocol family 17
/var/log/messages-Sep 12 04:40:04 localhost kernel: ACPI wakeup devices:
/var/log/messages-Sep 12 04:40:04 localhost kernel: PCI0 PALO PBLO PBHI VPR1 PICH
/var/log/messages-Sep 12 04:40:04 localhost kernel: ACPI: (supports S0 S4 S5)
/var/log/messages-Sep 12 04:40:04 localhost kernel: Freeing unused kernel memory: 232k freed
/var/log/messages-Sep 12 04:40:04 localhost kernel: input: PS/2 Generic Mouse on isa0060/serio1
/var/log/messages-Sep 12 04:40:04 localhost kernel: SCSI subsystem initialized
/var/log/messages-Sep 12 04:40:04 localhost kernel: megaraid cmm: 2.20.2.5 (Release Date: Fri Jan 21 00:01:03 EST 2005)
/var/log/messages-Sep 12 04:40:04 localhost kernel: megaraid: 2.20.4.5 (Release Date: Thu Feb 03 12:27:22 EST 2005)
/var/log/messages-Sep 12 04:40:04 localhost kernel: megaraid: probe new device 0x1028:0x0013:0x1028:0x016d: bus 2:slot 14:func 0
/var/log/messages-Sep 12 04:40:04 localhost kernel: ACPI: PCI Interrupt 0000:02:0e.0[A] -> GSI 46 (level, low) -> IRQ 193
/var/log/messages-Sep 12 04:40:04 localhost kernel: megaraid: fw version:[521X] bios version:[H430]
/var/log/messages-Sep 12 04:40:04 localhost kernel: scsi0 : LSI Logic MegaRAID driver
/var/log/messages-Sep 12 04:40:04 localhost kernel: scsi[0]: scanning scsi channel 0 [Phy 0] for non-raid devices
/var/log/messages-Sep 12 04:40:04 localhost kernel: Vendor: PE/PV Model: 1x6 SCSI BP Rev: 1.0
/var/log/messages-Sep 12 04:40:04 localhost kernel: Type: Processor ANSI SCSI revision: 02
/var/log/messages-Sep 12 04:40:04 localhost kernel: scsi[0]: scanning scsi channel 1 [Phy 1] for non-raid devices
/var/log/messages-Sep 12 04:40:04 localhost kernel: scsi[0]: scanning scsi channel 2 [virtual] for logical drives
/var/log/messages-Sep 12 04:40:04 localhost kernel: Vendor: MegaRAID Model: LD 0 RAID5 279G Rev: 521X
/var/log/messages-Sep 12 04:40:04 localhost kernel: Type: Direct-Access ANSI SCSI revision: 02
/var/log/messages:Sep 12 04:40:04 localhost kernel: SCSI device sda: 572456960 512-byte hdwr sectors (293098 MB)
/var/log/messages:Sep 12 04:40:04 localhost kernel: sda: asking for cache data failed
/var/log/messages:Sep 12 04:40:04 localhost kernel: sda: assuming drive cache: write through
/var/log/messages:Sep 12 04:40:04 localhost kernel: SCSI device sda: 572456960 512-byte hdwr sectors (293098 MB)
/var/log/messages:Sep 12 04:40:04 localhost kernel: sda: asking for cache data failed
/var/log/messages:Sep 12 04:40:04 localhost kernel: sda: assuming drive cache: write through
/var/log/messages:Sep 12 04:40:04 localhost kernel: sda: sda1 sda2 sda3
/var/log/messages:Sep 12 04:40:04 localhost kernel: Attached scsi disk sda at scsi0, channel 2, id 0, lun 0
/var/log/messages-Sep 12 04:40:04 localhost kernel: EXT3-fs: INFO: recovery required on readonly filesystem.
/var/log/messages-Sep 12 04:40:04 localhost kernel: EXT3-fs: write access will be enabled during recovery.
/var/log/messages-Sep 12 04:40:04 localhost kernel: cfq: depth 4 reached, tagging now on
/var/log/messages-Sep 12 04:40:04 localhost kernel: kjournald starting. Commit interval 5 seconds
/var/log/messages:Sep 12 04:40:04 localhost kernel: EXT3-fs: sda3: orphan cleanup on readonly fs
/var/log/messages:Sep 12 04:40:04 localhost kernel: EXT3-fs: sda3: 7 orphan inodes deleted
/var/log/messages-Sep 12 04:40:04 localhost kernel: EXT3-fs: recovery complete.
/var/log/messages-Sep 12 04:40:04 localhost kernel: EXT3-fs: mounted filesystem with ordered data mode.
/var/log/messages-Sep 12 04:40:04 localhost kernel: SELinux: Disabled at runtime.
/var/log/messages-Sep 12 04:40:04 localhost kernel: SELinux: Unregistering netfilter hooks
/var/log/messages-Sep 12 04:40:04 localhost kernel: Attached scsi generic sg0 at scsi0, channel 0, id 6, lun 0, type 3
/var/log/messages-Sep 12 04:40:04 localhost kernel: Attached scsi generic sg1 at scsi0, channel 2, id 0, lun 0, type 0
/var/log/messages-Sep 12 04:40:04 localhost kernel: Floppy drive(s): fd0 is 1.44M
/var/log/messages-Sep 12 04:40:04 localhost kernel: FDC 0 is a National Semiconductor PC87306
/var/log/messages-Sep 12 04:40:04 localhost kernel: Intel(R) PRO/1000 Network Driver - version 6.0.54-k2-NAPI
/var/log/messages-Sep 12 04:40:04 localhost kernel: Copyright (c) 1999-2004 Intel Corporation.
/var/log/messages-Sep 12 04:40:04 localhost kernel: ACPI: PCI Interrupt 0000:06:07.0[A] -> GSI 64 (level, low) -> IRQ 201
/var/log/messages-Sep 12 04:40:04 localhost kernel: e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
/var/log/messages-Sep 12 04:40:04 localhost kernel: ACPI: PCI Interrupt 0000:07:08.0[A] -> GSI 65 (level, low) -> IRQ 209
/var/log/messages-Sep 12 04:40:04 localhost kernel: e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network Connection
/var/log/messages-Sep 12 04:40:04 localhost kernel: ACPI: PCI Interrupt 0000:09:04.0[A] -> GSI 106 (level, low) -> IRQ 217
/var/log/messages-Sep 12 04:40:04 localhost kernel: e1000: eth2: e1000_probe: Intel(R) PRO/1000 Network Connection
/var/log/messages-Sep 12 04:40:04 localhost kernel: shpchp: Address64 -------- Resource unparsed
/var/log/messages-Sep 12 04:40:04 localhost kernel: shpchp: acpi_pciehprm:\_SB_.PCI0.PBLO OSHP fails=0x5
/var/log/messages-Sep 12 04:40:04 localhost kernel: shpchp: acpi_shpchprm: Slot sun(0) at s:b:d:f=0x00:04:1f:00
/var/log/messages-Sep 12 04:40:04 localhost kernel: shpchp: acpi_pciehprm:\_SB_.PCI0.PBLO OSHP fails=0x5
--
/var/log/messages-Sep 12 04:40:04 localhost kernel: hub 4-0:1.0: USB hub found
/var/log/messages-Sep 12 04:40:04 localhost kernel: hub 4-0:1.0: 2 ports detected
/var/log/messages-Sep 12 04:40:04 localhost kernel: usb 1-3: new high speed USB device using ehci_hcd and address 3
/var/log/messages-Sep 12 04:40:04 localhost kernel: hub 1-3:1.0: USB hub found
/var/log/messages-Sep 12 04:40:04 localhost kernel: hub 1-3:1.0: 2 ports detected
/var/log/messages-Sep 12 04:40:04 localhost kernel: usb 2-1: new full speed USB device using uhci_hcd and address 2
/var/log/messages-Sep 12 04:40:04 localhost kernel: input: USB HID v1.10 Keyboard [Dell DRAC4] on usb-0000:00:1d.0-1
/var/log/messages-Sep 12 04:40:04 localhost kernel: input: USB HID v1.10 Mouse [Dell DRAC4] on usb-0000:00:1d.0-1
/var/log/messages-Sep 12 04:40:04 localhost kernel: e1000: eth1: e1000_watchdog_task: NIC Link is Up 100 Mbps Full Duplex
/var/log/messages-Sep 12 04:40:04 localhost kernel: e1000: eth0: e1000_watchdog_task: NIC Link is Up 1000 Mbps Full Duplex
/var/log/messages-Sep 12 04:40:04 localhost kernel: ACPI: Power Button (FF) [PWRF]
/var/log/messages-Sep 12 04:40:04 localhost kernel: ibm_acpi: ec object not found
/var/log/messages-Sep 12 04:40:04 localhost kernel: ACPI: Video Device [EVGA] (multi-head: no rom: yes post: no)
/var/log/messages-Sep 12 04:40:04 localhost kernel: md: Autodetecting RAID arrays.
/var/log/messages-Sep 12 04:40:04 localhost kernel: md: autorun ...
/var/log/messages-Sep 12 04:40:04 localhost kernel: md: ... autorun DONE.
/var/log/messages-Sep 12 04:40:04 localhost kernel: device-mapper: 4.4.0-ioctl (2005-01-12) initialised: dm-devel@redhat.com
/var/log/messages-Sep 12 04:40:04 localhost kernel: hde: -141844kB, 11730/32/64 CHS, 0 kBps, 45763 sector size, 28795 rpm
/var/log/messages-Sep 12 04:40:04 localhost kernel: hde: The disk reports a capacity of 0 bytes, but the drive only handles -145248256
/var/log/messages-Sep 12 04:40:04 localhost kernel: hde: The disk reports a capacity of 0 bytes, but the drive only handles -145248256
/var/log/messages:Sep 12 04:40:04 localhost kernel: EXT3 FS on sda3, internal journal
/var/log/messages-Sep 12 04:40:04 localhost kernel: kjournald starting. Commit interval 5 seconds
/var/log/messages:Sep 12 04:40:04 localhost kernel: EXT3 FS on sda1, internal journal
/var/log/messages-Sep 12 04:40:04 localhost kernel: EXT3-fs: mounted filesystem with ordered data mode.
/var/log/messages:Sep 12 04:40:04 localhost kernel: Adding 2096472k swap on /dev/sda2. Priority:-1 extents:1
/var/log/messages-Sep 12 04:40:04 localhost auditd[2318]: Init complete, audit pid set to: 2318
/var/log/messages-Sep 12 04:40:21 localhost kernel: NET: Registered protocol family 10
/var/log/messages-Sep 12 04:40:21 localhost kernel: Disabled Privacy Extensions on device c037d640(lo)
/var/log/messages-Sep 12 04:40:21 localhost kernel: IPv6 over IPv4 tunneling driver
/var/log/messages-Sep 12 04:40:21 localhost snmpd[2386]: /etc/snmp/snmpd.conf: line 15: Error: Blank line following trapsink token.
/var/log/messages-Sep 12 04:40:21 localhost snmpd[2386]: /etc/snmp/snmpd.conf: line 20: Error: Blank line following trap2sink token.
/var/log/messages-Sep 12 04:40:21 localhost snmpd[2386]: /etc/snmp/snmpd.conf: line 25: Error: Blank line following informsink token.
/var/log/messages-Sep 12 04:40:21 localhost snmpd[2386]: /etc/snmp/snmpd.conf: line 30: Error: Blank line following trapcommunity token.
/var/log/messages-Sep 12 04:40:21 localhost snmpd[2386]: /etc/snmp/snmpd.conf: line 116: Error: Blank line following proc token.
/var/log/messages-Sep 12 04:40:21 localhost snmpd[2386]: /etc/snmp/snmpd.conf: line 131: Error: Blank line following disk token.
/var/log/messages-Sep 12 04:40:21 localhost snmpd[2386]: /etc/snmp/snmpd.conf: line 157: Error: Blank line following file token.
/var/log/messages-Sep 12 04:40:21 localhost snmpd[2386]: net-snmp: 7 error(s) in config file(s)
/var/log/messages-Sep 12 04:40:21 localhost xinetd[2439]: xinetd Version 2.3.13 started with libwrap loadavg options compiled in.
/var/log/messages-Sep 12 04:40:21 localhost xinetd[2439]: Started working: 1 available service
/var/log/messages-Sep 12 04:40:21 localhost proftpd[2446]: localhost - ProFTPD 1.2.10 (stable) (built Tue May 10 11:49:43 EDT 2005) standalone mode STARTUP
/var/log/messages-Sep 12 04:40:21 localhost snmpd[2386]: /etc/snmp/snmpd.conf: line 15: Error: Blank line following trapsink token.
/var/log/messages-Sep 12 04:40:21 localhost snmpd[2386]: /etc/snmp/snmpd.conf: line 20: Error: Blank line following trap2sink token.
/var/log/messages-Sep 12 04:40:21 localhost snmpd[2386]: /etc/snmp/snmpd.conf: line 25: Error: Blank line following informsink token.
/var/log/messages-Sep 12 04:40:21 localhost snmpd[2386]: /etc/snmp/snmpd.conf: line 30: Error: Blank line following trapcommunity token.
/var/log/messages-Sep 12 04:40:21 localhost snmpd[2386]: /etc/snmp/snmpd.conf: line 116: Error: Blank line following proc token.

magicstar

5+ Year Member



 
Msg#: 3073045 posted 6:21 am on Sep 12, 2006 (gmt 0)

[root@web ~]# ps ax ¦ grep httpd ¦ wc -l
517
[root@web ~]# ps ax ¦ grep httpd ¦ grep " D " ¦ wc -l
4

hope this helps

thanks

and yes, i removed zend monitoring from my server

now my averages are as follows-:

top - 14:21:17 up 17:42, 2 users, load average: 158.90, 153.42, 147.29
Tasks: 614 total, 1 running, 613 sleeping, 0 stopped, 0 zombie
Cpu(s): 7.3% us, 4.5% sy, 0.0% ni, 18.8% id, 68.4% wa, 0.2% hi, 0.8% si
Mem: 4147240k total, 3115968k used, 1031272k free, 277264k buffers
Swap: 2096472k total, 17332k used, 2079140k free, 1392848k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
20459 fridae 16 0 151m 20m 12m D 5.6 0.5 0:00.89 httpd
20728 fridae 15 0 150m 18m 11m S 1.0 0.5 0:00.97 httpd
20845 fridae 16 0 150m 19m 11m D 1.0 0.5 0:00.75 httpd
19166 root 16 0 2420 1352 784 S 0.7 0.0 0:42.83 top
20400 fridae 16 0 150m 18m 10m D 0.7 0.4 0:00.88 httpd
20484 fridae 16 0 151m 17m 9712 D 0.7 0.4 0:01.14 httpd
21556 root 16 0 2412 1308 780 R 0.7 0.0 0:00.10 top
194 root 15 0 0 0 0 S 0.5 0.0 2:51.19 pdflush
195 root 15 0 0 0 0 S 0.5 0.0 3:33.70 kswapd0
20404 fridae 15 0 151m 21m 13m S 0.5 0.5 0:01.31 httpd
20405 fridae 15 0 150m 16m 9648 D 0.5 0.4 0:01.09 httpd
20409 fridae 15 0 150m 15m 8692 D 0.5 0.4 0:00.30 httpd
20419 fridae 15 0 150m 18m 10m D 0.5 0.4 0:01.04 httpd
20518 fridae 15 0 151m 21m 13m D 0.5 0.5 0:01.32 httpd
20592 fridae 15 0 150m 18m 11m D 0.5 0.5 0:01.00 httpd
20596 fridae 15 0 151m 21m 13m S 0.5 0.5 0:01.17 httpd
20599 fridae 15 0 151m 23m 14m D 0.5 0.6 0:01.79 httpd
20616 fridae 15 0 150m 17m 9992 D 0.5 0.4 0:01.08 httpd
20618 fridae 15 0 150m 17m 10m D 0.5 0.4 0:01.09 httpd
20627 fridae 16 0 150m 17m 10m D 0.5 0.4 0:01.08 httpd
20636 fridae 15 0 150m 17m 10m D 0.5 0.4 0:00.82 httpd
20665 fridae 15 0 150m 15m 8748 D 0.5 0.4 0:00.96 httpd
20712 fridae 15 0 150m 17m 9.8m D 0.5 0.4 0:00.97 httpd

physics

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3073045 posted 9:21 pm on Sep 12, 2006 (gmt 0)

mcavic was right i think that the D in the ps ax output means the httpd processes are in i/o wait.
Try the command
netstat

I'm guessing you'll see most of those 517 httpd processes showing a code other than ESTABLISHED.

You probably need to fix the connection to your db server or do load balancing.

What do you see when you do netstat (plz don't post all 500 lines, just a sample).

magicstar

5+ Year Member



 
Msg#: 3073045 posted 2:58 am on Sep 13, 2006 (gmt 0)

Hey there,

i did the netstat as requested:-

-bash-3.00$ netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 ip245018.#*$!.com:http 210.17.***.*:32854 SYN_RECV
tcp 0 0 ip245018.#*$!.com:http ppp-58.9.**.***.revip2:1126 SYN_RECV
tcp 0 0 ip245018.#*$!.com:http 202-177-**-***.kdd.net:1777 SYN_RECV
tcp 0 0 ip245018.#*$!.com:http 59-114-***-**.dynamic.:2073 SYN_RECV
tcp 0 0 ip245018.#*$!.com:http 64-248-**-***.client.d:4542 SYN_RECV

my systems are running on 2 different servers all connected via a router of some sort protected by a firewall.

i have 1 db and 1 web server. how do i explaine this to my technicians that there is something wrong with the connection between my servers?

i had a quick check on my scripts, it only takes 1-2 second to run the queries but it takes 10 seconds to display the output? does that make sense? what could b causing it?

thks!

[edited by: tedster at 7:06 am (utc) on Sep. 13, 2006]
[edit reason] obscure the IP addresses [/edit]

physics

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3073045 posted 6:14 am on Sep 13, 2006 (gmt 0)

Hmm sorry I guess I asked for the wrong thing. What I really wanted to see were the connections from your web server to your db server...

In any case I think the best thing to do right now is show this thread to your techs. It might be the case though that the traffic is just too high and you need more hardware or to optimize your software.

magicstar

5+ Year Member



 
Msg#: 3073045 posted 8:09 am on Sep 13, 2006 (gmt 0)

alrights..

well i manage to bring the load down to < 20 by emptying the Zend cache folders..

but thanks alot! i learn a couple of new tricks now..

cheers!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved