WebDawg wrote on 4/14/2016 8:54 AM:
On Wed, Apr 13, 2016 at 6:11 PM, Rosen Iliev <[email protected]> wrote:
Hi guys,
Just upgraded my embedded pfsense to 2.3.
I have problems getting to the box (web or ssh) it just time outs.
On the web I sometime I get Nginx 504, sometime, just nothing.
Eventually I got logged in, try to check what's going on.
I have open Diagnostics->System Activity page, and start monitoring the
network traffic.
There is Java Script that updates the page content every 2.5, but actual
response in my case was more then 15 sec.
So I ended up with +20 pending requests to /diag_system_activity.php.
I don't think that setInterval is a good option here. Especially when you
don't know how long it will take for the request to complete.
My suggestion is to use setTimeout like this:
<script type="text/javascript">
//<![CDATA[
function getcpuactivity() {
$.ajax(
'/diag_system_activity.php',
{
method: 'post',
data: {
getactivity: 'yes'
},
dataType: "html",
success: function (data) {
$('#xhrOutput').html(data);
+ setTimeout('getcpuactivity()', 2500);
},
}
);
}
events.push(function() {
- setInterval('getcpuactivity()', 2500);
+ setTimeout('getcpuactivity()', 2500);
getcpuactivity();
});
//]]>
</script>
Regards,
Rosen
What device are you using?
_______________________________________________
pfSense mailing list
https://lists.pfsense.org/mailman/listinfo/list
Support the project with Gold! https://pfsense.org/gold
It's VIA Eden Processor 500MHz (500.03-MHz 686-class CPU) brick.
I'm attaching dmesg.
Rosen
Copyright (c) 1992-2016 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 10.3-RELEASE #5 05adf0a(RELENG_2_3_0): Mon Apr 11 19:14:12 CDT 2016
root@ce23-i386-builder:/builder/pfsense-230/tmp/obj/builder/pfsense-230/tmp/FreeBSD-src/sys/pfSense_wrap_vga
i386
FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512
CPU: VIA Eden Processor 500MHz (500.03-MHz 686-class CPU)
Origin="CentaurHauls" Id=0x6d0 Family=0x6 Model=0xd Stepping=0
Features=0xa7c9bbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,CMOV,PAT,CLFLUSH,ACPI,MMX,FXSR,SSE,SSE2,TM,PBE>
Features2=0x4181<SSE3,EST,TM2,xTPR>
AMD Features=0x100000<NX>
VIA Padlock Features=0xffcc<RNG,AES,AES-CTR,SHA1,SHA256,RSA>
real memory = 1073741824 (1024 MB)
avail memory = 999239680 (952 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <CN700 AWRDACPI>
random: <Software, Yarrow> initialized
ioapic0 <Version 0.3> irqs 0-23 on motherboard
wlan: mac acl policy registered
iwi_bss: You need to read the LICENSE file in /usr/share/doc/legal/intel_iwi/.
iwi_bss: If you agree with the license, set legal.intel_iwi.license_ack=1 in
/boot/loader.conf.
module_register_init: MOD_LOAD (iwi_bss_fw, 0xc083efc0, 0) error 1
iwi_ibss: You need to read the LICENSE file in /usr/share/doc/legal/intel_iwi/.
iwi_ibss: If you agree with the license, set legal.intel_iwi.license_ack=1 in
/boot/loader.conf.
module_register_init: MOD_LOAD (iwi_ibss_fw, 0xc083f070, 0) error 1
iwi_monitor: You need to read the LICENSE file in
/usr/share/doc/legal/intel_iwi/.
iwi_monitor: If you agree with the license, set legal.intel_iwi.license_ack=1
in /boot/loader.conf.
module_register_init: MOD_LOAD (iwi_monitor_fw, 0xc083f120, 0) error 1
kbd1 at kbdmux0
cryptosoft0: <software crypto> on motherboard
padlock0: <AES-CBC,SHA1,SHA256> on motherboard
acpi0: <CN700 AWRDACPI> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
attimer0: <AT timer> port 0x40-0x43 irq 0 on acpi0
Timecounter "i8254" frequency 1193182 Hz quality 0
Event timer "i8254" frequency 1193182 Hz quality 100
atrtc0: <AT realtime clock> port 0x70-0x73 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
acpi_button0: <Power Button> on acpi0
acpi_button1: <Sleep Button> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
agp0: <VIA 3314 (P4M800CE) host to PCI bridge> on hostb0
agp0: aperture size is 128M
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
vgapci0: <VGA-compatible display> mem
0xf4000000-0xf7ffffff,0xfb000000-0xfbffffff irq 16 at device 0.0 on pci1
vgapci0: Boot video device
rl0: <RealTek 8139 10/100BaseTX> port 0xf600-0xf6ff mem 0xfdfff000-0xfdfff0ff
irq 16 at device 5.0 on pci0
miibus0: <MII bus> on rl0
rlphy0: <RealTek internal media interface> PHY 0 on miibus0
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:30:18:4b:a7:96
rl1: <RealTek 8139 10/100BaseTX> port 0xf400-0xf4ff mem 0xfdffe000-0xfdffe0ff
irq 17 at device 6.0 on pci0
miibus1: <MII bus> on rl1
rlphy1: <RealTek internal media interface> PHY 0 on miibus1
rlphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl1: Ethernet address: 00:30:18:4b:a7:95
rl2: <RealTek 8139 10/100BaseTX> port 0xf800-0xf8ff mem 0xfdffd000-0xfdffd0ff
irq 18 at device 7.0 on pci0
miibus2: <MII bus> on rl2
rlphy2: <RealTek internal media interface> PHY 0 on miibus2
rlphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl2: Ethernet address: 00:30:18:4b:a7:94
ral0: <Ralink Technology RT2860> mem 0xfdfe0000-0xfdfeffff irq 20 at device 9.0
on pci0
ral0: MAC/BBP RT2860 (rev 0x0102), RF RT2850 (MIMO 2T3R), address
00:0e:8e:26:0e:48
atapci0: <VIA 8237 UDMA133 controller> port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xff00-0xff0f at device 15.0 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
uhci0: <VIA 83C572 USB controller> port 0xfe00-0xfe1f at device 16.0 on pci0
usbus0 on uhci0
uhci1: <VIA 83C572 USB controller> port 0xfd00-0xfd1f at device 16.1 on pci0
usbus1 on uhci1
uhci2: <VIA 83C572 USB controller> port 0xfc00-0xfc1f at device 16.2 on pci0
usbus2 on uhci2
uhci3: <VIA 83C572 USB controller> port 0xfb00-0xfb1f at device 16.3 on pci0
usbus3 on uhci3
ehci0: <VIA VT6202 USB 2.0 controller> mem 0xfdffc000-0xfdffc0ff at device 16.4
on pci0
usbus4: EHCI version 1.0
usbus4 on ehci0
isab0: <PCI-ISA bridge> at device 17.0 on pci0
isa0: <ISA bus> on isab0
pcm0: <VIA VT8237> port 0xf200-0xf2ff irq 22 at device 17.5 on pci0
pcm0: <VIA Technologies VIA1612A AC97 Codec>
pcm0: <VIA DXS Enabled: DXS 4 / SGD 1 / REC 1>
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: console (115200,n,8,1)
uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xcffff,0xd0000-0xd3fff pnpid ORM0000
on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
ppc0: parallel port not found.
est0: <Enhanced SpeedStep Frequency Control> on cpu0
est: CPU supports Enhanced Speedstep, but is not recognized.
est: cpu_vendor CentaurHauls, msr 400050004000500
device_attach: est0 attach returned 6
Timecounters tick every 1.000 msec
IPsec: Initialized Security Association Processing.
random: unblocking device.
usbus0: 12Mbps Full Speed USB v1.0
usbus1: 12Mbps Full Speed USB v1.0
usbus2: 12Mbps Full Speed USB v1.0
usbus3: 12Mbps Full Speed USB v1.0
ugen0.1: <VIA> at usbus0
uhub0: <VIA UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
ugen1.1: <VIA> at usbus1
uhub1: <VIA UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus1
ugen2.1: <VIA> at usbus2
uhub2: <VIA UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus2
ugen3.1: <VIA> at usbus3
uhub3: <VIA UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus3
usbus4: 480Mbps High Speed USB v2.0
ugen4.1: <VIA> at usbus4
uhub4: <VIA EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus4
ada0 at ata1 bus 0 scbus1 target 0 lun 0
ada0: <CF CARD 4GB Ver3.06K> ATA-5 device
ada0: Serial Number 5B0A072B0
ada0: 100.000MB/s transfers (UDMA5, PIO 512bytes)
ada0: 3811MB (7806960 512 byte sectors)
ada0: Previously was known as ad2
Timecounter "TSC" frequency 500030053 Hz quality 800
uhub0: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
uhub2: 2 ports with 2 removable, self powered
uhub3: 2 ports with 2 removable, self powered
Root mount waiting for: usbus4
Root mount waiting for: usbus4
Root mount waiting for: usbus4
Root mount waiting for: usbus4
uhub4: 8 ports with 8 removable, self powered
Trying to mount root from ufs:/dev/ufs/pfsense1 [ro,sync,noatime]...
rl0: link state changed to DOWN
rl1: link state changed to DOWN
rl2: link state changed to DOWN
ng0: changing name to 'pppoe0'
rl0: link state changed to UP
rl1: link state changed to UP
rl2: link state changed to UP
pflog0: promiscuous mode enabled
_______________________________________________
pfSense mailing list
https://lists.pfsense.org/mailman/listinfo/list
Support the project with Gold! https://pfsense.org/gold