TurnKey Linux Virtual Appliance Library

SOLVED slow http: response after four to six page views.

william's picture

  If anybody has any suggestions or information on what could be causing this  please let me know.

 I have moved and set up our site.  for several days it work great even under load of switching the A records to the new server from the shared hosting it is on now. A records were moved back after site slowed to almost a halt with no load showing to cpu or memory or users  but before changing name servers and completing the move, I feel the config on the new server should be correct.  snagadeal.net  would be the name of our site to see how the site is currently running on shared hosting  and is a mirror image. 

 

http://98.197.132.231/

comcast /linksys wrt54g

hp proliant DL585 / 8 gig ram/ 4 - 2.4 amd  Opteron cpu  (deticated server)

 turnkey-joomla-2009.10-hardy-x86 installed with no OS

webmin update to 1.50

lastest virtualmin installed  (currently no errors)

bind9 installed

running postfix

Jeremy's picture

Seems strange, any errors in the logs?

I tried your link and the initial page loaded as you'd expect, but any link within that just sits there loading but doesn't seem to time out at all! Very strange! Then for kicks I refreshed the main page and it got stuck half way "Waiting for 98.197.132.231..." (but it did eventually load). I could not get any other page to load but as yet no time out!?

I'd definately check all the logs for errors and also might be worth seeing what processes are running and what they're up to while its stalled. There is obviously a bug or something there somewhere as surely that hardware should breeze through even a fairly heavy load.

william's picture

a few logs may help you to point me in the right direction.

Thanks Jed for the interest.  Here are some of the logs maybe you can see some errors

let me know if any other logs could be helpful. The database is large, let me know if there are any changes to stock database to deal with the size. 

/var/log/kern.log   

Feb 17 20:09:39 ns1 kernel: [   61.403557] ohci_hcd 0000:01:00.0: irq 17, io mem 0xf7ef0000
Feb 17 20:09:39 ns1 kernel: [   61.461458] usb usb1: configuration #1 chosen from 1 choice
Feb 17 20:09:39 ns1 kernel: [   61.461482] hub 1-0:1.0: USB hub found
Feb 17 20:09:39 ns1 kernel: [   61.461491] hub 1-0:1.0: 3 ports detected
Feb 17 20:09:39 ns1 kernel: [   61.567337] ACPI: PCI Interrupt 0000:01:00.1[D] -> GSI 19 (level, low) -> IRQ 17
Feb 17 20:09:39 ns1 kernel: [   61.567349] ohci_hcd 0000:01:00.1: OHCI Host Controller
Feb 17 20:09:39 ns1 kernel: [   61.567369] ohci_hcd 0000:01:00.1: new USB bus registered, assigned bus number 2
Feb 17 20:09:39 ns1 kernel: [   61.567381] ohci_hcd 0000:01:00.1: irq 17, io mem 0xf7ee0000
Feb 17 20:09:39 ns1 kernel: [   61.621319] usb usb2: configuration #1 chosen from 1 choice
Feb 17 20:09:39 ns1 kernel: [   61.621337] hub 2-0:1.0: USB hub found
Feb 17 20:09:39 ns1 kernel: [   61.621344] hub 2-0:1.0: 3 ports detected
Feb 17 20:09:39 ns1 kernel: [   61.723322] tg3.c:v3.86 (November 9, 2007)
Feb 17 20:09:39 ns1 kernel: [   61.723365] ACPI: PCI Interrupt 0000:02:06.0[A] -> GSI 25 (level, low) -> IRQ 18
Feb 17 20:09:39 ns1 kernel: [   61.766025] eth0: Tigon3 [partno(349321-001) rev 2100 PHY(5704)] (PCIX:100MHz:64-bit) 10/100/1000Base-T Ethernet 00:11:85:13:60:99
Feb 17 20:09:39 ns1 kernel: [   61.766033] eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[1] WireSpeed[1] TSOcap[0]
Feb 17 20:09:39 ns1 kernel: [   61.766035] eth0: dma_rwctrl[769f4000] dma_mask[64-bit]
Feb 17 20:09:39 ns1 kernel: [   61.766067] ACPI: PCI Interrupt 0000:02:06.1[B] -> GSI 24 (level, low) -> IRQ 19
Feb 17 20:09:39 ns1 kernel: [   61.804252] eth1: Tigon3 [partno(349321-001) rev 2100 PHY(5704)] (PCIX:100MHz:64-bit) 10/100/1000Base-T Ethernet 00:11:85:13:60:98
Feb 17 20:09:39 ns1 kernel: [   61.804257] eth1: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] WireSpeed[1] TSOcap[1]
Feb 17 20:09:39 ns1 kernel: [   61.804259] eth1: dma_rwctrl[769f4000] dma_mask[64-bit]
Feb 17 20:09:39 ns1 kernel: [   61.805786] PCI: Setting latency timer of device 0000:00:04.1 to 64
Feb 17 20:09:39 ns1 kernel: [   61.807255] pata_amd 0000:00:04.1: version 0.3.10
Feb 17 20:09:39 ns1 kernel: [   61.807987] scsi0 : pata_amd
Feb 17 20:09:39 ns1 kernel: [   61.808452] scsi1 : pata_amd
Feb 17 20:09:39 ns1 kernel: [   61.808474] ata1: PATA max UDMA/133 cmd 0x1f0 ctl 0x3f6 bmdma 0x2000 irq 14
Feb 17 20:09:39 ns1 kernel: [   61.808476] ata2: PATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0x2008 irq 15
Feb 17 20:09:39 ns1 kernel: [   62.127247] ata1.00: ATAPI: CD-224E, 9.9A, max MWDMA2
Feb 17 20:09:39 ns1 kernel: [   62.299076] ata1.00: configured for MWDMA2
Feb 17 20:09:39 ns1 kernel: [   62.299300] ata2: port disabled. ignoring.
Feb 17 20:09:39 ns1 kernel: [   62.301089] scsi 0:0:0:0: CD-ROM            TEAC     CD-224E          9.9A PQ: 0 ANSI: 5
Feb 17 20:09:39 ns1 kernel: [   62.307501] Driver 'sr' needs updating - please use bus_type methods
Feb 17 20:09:39 ns1 kernel: [   62.315153] sr0: scsi3-mmc drive: 24x/24x cd/rw xa/form2 cdda tray
Feb 17 20:09:39 ns1 kernel: [   62.315159] Uniform CD-ROM driver Revision: 3.20
Feb 17 20:09:39 ns1 kernel: [   62.315215] sr 0:0:0:0: Attached scsi CD-ROM sr0
Feb 17 20:09:39 ns1 kernel: [   62.319402] sr 0:0:0:0: Attached scsi generic sg0 type 5
Feb 17 20:09:39 ns1 kernel: [   62.385149] kjournald starting.  Commit interval 5 seconds
Feb 17 20:09:39 ns1 kernel: [   62.385164] EXT3-fs: mounted filesystem with ordered data mode.
Feb 17 20:09:39 ns1 kernel: [   63.924745] input: PC Speaker as /devices/platform/pcspkr/input/input2
Feb 17 20:09:39 ns1 kernel: [   63.972239] pci_hotplug: PCI Hot Plug PCI Core version: 0.5
Feb 17 20:09:39 ns1 kernel: [   63.973984] shpchp: HPC vendor_id 1022 device_id 7460 ss_vid 0 ss_did 0
Feb 17 20:09:39 ns1 kernel: [   63.973988] shpchp: shpc_init: cannot reserve MMIO region
Feb 17 20:09:39 ns1 kernel: [   63.974080] shpchp: HPC vendor_id 1022 device_id 7450 ss_vid 0 ss_did 0
Feb 17 20:09:39 ns1 kernel: [   63.974082] shpchp: shpc_init: cannot reserve MMIO region
Feb 17 20:09:39 ns1 kernel: [   63.974162] shpchp: HPC vendor_id 1022 device_id 7450 ss_vid 0 ss_did 0
Feb 17 20:09:39 ns1 kernel: [   63.974164] shpchp: shpc_init: cannot reserve MMIO region
Feb 17 20:09:39 ns1 kernel: [   63.974254] shpchp: HPC vendor_id 1022 device_id 7450 ss_vid 0 ss_did 0
Feb 17 20:09:39 ns1 kernel: [   63.974256] shpchp: shpc_init: cannot reserve MMIO region
Feb 17 20:09:39 ns1 kernel: [   63.974336] shpchp: HPC vendor_id 1022 device_id 7450 ss_vid 0 ss_did 0
Feb 17 20:09:39 ns1 kernel: [   63.974338] shpchp: shpc_init: cannot reserve MMIO region
Feb 17 20:09:39 ns1 kernel: [   63.974423] shpchp: HPC vendor_id 1022 device_id 7450 ss_vid 0 ss_did 0
Feb 17 20:09:39 ns1 kernel: [   63.974425] shpchp: shpc_init: cannot reserve MMIO region
Feb 17 20:09:39 ns1 kernel: [   63.974504] shpchp: HPC vendor_id 1022 device_id 7450 ss_vid 0 ss_did 0
Feb 17 20:09:39 ns1 kernel: [   63.974506] shpchp: shpc_init: cannot reserve MMIO region
Feb 17 20:09:39 ns1 kernel: [   63.974587] shpchp: Standard Hot Plug PCI Controller Driver version: 0.4
Feb 17 20:09:39 ns1 kernel: [   64.010723] AMD768 RNG detected
Feb 17 20:09:39 ns1 kernel: [   64.119175] input: Power Button (FF) as /devices/virtual/input/input3
Feb 17 20:09:39 ns1 kernel: [   64.230279] ACPI: Power Button (FF) [PWRF]
Feb 17 20:09:39 ns1 kernel: [   64.535183] input: ImPS/2 Generic Wheel Mouse as /devices/platform/i8042/serio1/input/input4
Feb 17 20:09:39 ns1 kernel: [   64.584108] NET: Registered protocol family 17
Feb 17 20:09:39 ns1 kernel: [   66.095123] tg3: eth0: Link is up at 100 Mbps, full duplex.
Feb 17 20:09:39 ns1 kernel: [   66.095129] tg3: eth0: Flow control is on for TX and on for RX.
Feb 17 20:09:39 ns1 kernel: [   66.321627] Adding 2939852k swap on /dev/cciss/c0d0p5.  Priority:-1 extents:1 across:2939852k
Feb 17 20:09:39 ns1 kernel: [   66.546683] tg3: eth1: Link is up at 100 Mbps, full duplex.
Feb 17 20:09:39 ns1 kernel: [   66.546690] tg3: eth1: Flow control is on for TX and on for RX.
Feb 17 20:09:39 ns1 kernel: [   66.552394] EXT3 FS on cciss/c0d0p1, internal journal
Feb 17 20:09:39 ns1 kernel: [   67.635238] NET: Registered protocol family 10
Feb 17 20:09:39 ns1 kernel: [   67.635523] lo: Disabled Privacy Extensions
Feb 17 20:09:49 ns1 kernel: [   77.890273] eth0: no IPv6 routers present
Feb 17 20:09:50 ns1 kernel: [   78.275096] eth1: no IPv6 routers present
Feb 18 22:52:16 ns1 kernel: [96180.811101] ip_tables: (C) 2000-2006 Netfilter Core Team

 

/var/log/debug   

Feb 17 20:09:39 ns1 kernel: [   60.060161] Switched to high resolution mode on CPU 0
Feb 17 20:09:39 ns1 kernel: [   60.060261] Switched to high resolution mode on CPU 1
Feb 17 20:09:39 ns1 kernel: [   60.060317] Switched to high resolution mode on CPU 2
Feb 17 20:09:39 ns1 kernel: [   60.060357] Switched to high resolution mode on CPU 3
Feb 17 20:09:39 ns1 kernel: [   60.603855] Boot video device is 0000:01:03.0
Feb 17 20:09:39 ns1 kernel: [   61.261588] ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
Feb 17 20:09:39 ns1 kernel: [   61.261677] libata version 3.00 loaded.
Feb 17 20:09:39 ns1 kernel: [   61.805786] PCI: Setting latency timer of device 0000:00:04.1 to 64
Feb 17 20:09:39 ns1 kernel: [   61.807255] pata_amd 0000:00:04.1: version 0.3.10
Feb 17 20:09:39 ns1 kernel: [   62.299300] ata2: port disabled. ignoring.
Feb 17 20:09:39 ns1 kernel: [   62.315215] sr 0:0:0:0: Attached scsi CD-ROM sr0
Feb 17 20:09:39 ns1 udhcpc[3024]: Sending select for 192.168.1.101...
Feb 17 20:09:39 ns1 udhcpc[3045]: Sending select for 192.168.1.105...
Feb 17 20:09:49 ns1 kernel: [   77.890273] eth0: no IPv6 routers present
Feb 17 20:09:50 ns1 kernel: [   78.275096] eth1: no IPv6 routers present
Feb 18 08:09:40 ns1 udhcpc[4365]: Sending renew...
Feb 18 08:09:40 ns1 udhcpc[4367]: Sending renew...
Feb 18 20:09:40 ns1 udhcpc[4367]: Sending renew...
Feb 18 20:09:40 ns1 udhcpc[4365]: Sending renew...
Feb 19 00:39:40 ns1 udhcpc[4365]: Sending renew...

/var/log/daemon.log

Feb 18 22:32:02 ns1 named[4152]: client 127.0.0.1#36427: RFC 1918 response from Internet for 101.1.168.192.in-addr.arpa
Feb 18 23:04:49 ns1 named[4152]: loading configuration from '/etc/bind/named.conf'
Feb 18 23:04:49 ns1 named[4152]: zone snagadeal.net/IN: NS 'ns1.snagadeal.net.snagadeal.net' has no address records (A or AAAA)
Feb 18 23:04:49 ns1 named[4152]: zone snagadeal.net/IN: loaded serial 1264856813
Feb 18 23:04:49 ns1 named[4152]: zone snagadeal.net/IN: sending notifies (serial 1264856813)
Feb 18 23:05:21 ns1 named[4152]: loading configuration from '/etc/bind/named.conf'
Feb 18 23:17:13 ns1 named[4152]: client 92.243.14.172#41902: zone transfer 'snagadeal.net/AXFR/IN' denied
Feb 18 23:21:43 ns1 named[4152]: unexpected RCODE (SERVFAIL) resolving 'rs.internic.net/A/IN': 198.41.3.39#53
Feb 19 00:08:27 ns1 named[4152]: client 127.0.0.1#52069: RFC 1918 response from Internet for 104.1.168.192.in-addr.arpa
Feb 19 00:09:18 ns1 named[4152]: client 127.0.0.1#58399: RFC 1918 response from Internet for 104.1.168.192.in-addr.arpa
Feb 19 00:09:19 ns1 named[4152]: client 127.0.0.1#50148: RFC 1918 response from Internet for 104.1.168.192.in-addr.arpa
Feb 19 00:09:19 ns1 named[4152]: client 127.0.0.1#57043: RFC 1918 response from Internet for 104.1.168.192.in-addr.arpa
Feb 19 00:09:19 ns1 named[4152]: client 127.0.0.1#56368: RFC 1918 response from Internet for 104.1.168.192.in-addr.arpa
Feb 19 00:09:19 ns1 named[4152]: client 127.0.0.1#39396: RFC 1918 response from Internet for 104.1.168.192.in-addr.arpa
Feb 19 00:09:19 ns1 named[4152]: client 127.0.0.1#50186: RFC 1918 response from Internet for 104.1.168.192.in-addr.arpa
Feb 19 00:09:20 ns1 named[4152]: client 127.0.0.1#58655: RFC 1918 response from Internet for 104.1.168.192.in-addr.arpa
Feb 19 00:09:20 ns1 named[4152]: client 127.0.0.1#36084: RFC 1918 response from Internet for 104.1.168.192.in-addr.arpa
Feb 19 00:09:20 ns1 named[4152]: client 127.0.0.1#37573: RFC 1918 response from Internet for 104.1.168.192.in-addr.arpa
Feb 19 00:09:20 ns1 named[4152]: client 127.0.0.1#36584: RFC 1918 response from Internet for 104.1.168.192.in-addr.arpa
Feb 19 00:25:21 ns1 named[4152]: client 87.98.164.164#18344: zone transfer 'snagadeal.net/AXFR/IN' denied

 

/var/log/messages   

Feb 18 19:09:39 ns1 -- MARK --
Feb 18 19:29:39 ns1 -- MARK --
Feb 18 19:49:39 ns1 -- MARK --
Feb 18 20:09:39 ns1 -- MARK --
Feb 18 20:09:40 ns1 udhcpc[4367]: Lease of 192.168.1.101 obtained, lease time 86400
Feb 18 20:29:39 ns1 -- MARK --
Feb 18 20:49:39 ns1 -- MARK --
Feb 18 21:09:39 ns1 -- MARK --
Feb 18 21:29:39 ns1 -- MARK --
Feb 18 21:49:39 ns1 -- MARK --
Feb 18 22:09:39 ns1 -- MARK --
Feb 18 22:29:39 ns1 -- MARK --
Feb 18 22:49:39 ns1 -- MARK --
Feb 18 22:52:16 ns1 kernel: [96180.811101] ip_tables: (C) 2000-2006 Netfilter Core Team
Feb 18 23:09:39 ns1 -- MARK --
Feb 18 23:29:39 ns1 -- MARK --
Feb 18 23:49:39 ns1 -- MARK --
Feb 19 00:09:39 ns1 -- MARK --
Feb 19 00:29:39 ns1 -- MARK --
Feb 19 00:39:40 ns1 udhcpc[4365]: Lease of 192.168.1.105 obtained, lease time 86400

 

 

Jeremy's picture

Don't know how much help I can give, but here goes...

Sorry if I gave you the impression that I would be able to interpret your logs for you.

I can't see anything obvious but that doesn't really mean anything! If there were anything obvious to me, you would've probably seen it yourself! But until we get someone who knows what they're doing to help you out

Having said that, the apache log would be worth looking at as it may contain an obvious error. Acording to my search online it should be /var/log/apache2/error.log but I don't currently have a TKL LAMP running (I am only serving intranet so am using lighttpd) so can't confirm whether TKL use the default or not. There should also be an access.log there too, which may be worth a look too. If there are no apache logs then double check logging is enabled in the apache2.conf file (/etc/apache2/apache2.conf by default).

Comparing events with timestamps (in access logs, error logs, etc) that match a point in time where the error/problem is occuring may help to pinpoint what may be happening.

Out of interest, have you run apt-get upgrade on this system? I'm not sure if its related but others were previously having problems with smilar TKL appliances after upgrading (I think it may be different though as you're not having the out of memory errors). Still it may be worth trying on a clean install if you can be bothered.

william's picture

Found the problem: it's not in the turnkey lamp. but in joomla

I have corrected this problem it was a plugin in the joomla program sef sitemap  pingback plugin we have had installed for a while. 

 

Jeremy's picture

Glad you got it sorted

and thanks for letting us know what your problem was. Good luck with your website!

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)