On 4/15/2016 12:46 AM, Chris Buechler wrote:
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:

Yeah that's what 2.2.x and prior used.
https://redmine.pfsense.org/issues/6166
_______________________________________________
pfSense mailing list
https://lists.pfsense.org/mailman/listinfo/list
Support the project with Gold! https://pfsense.org/gold
Hi Chris,

I've checked the commit.
If you guys are going to use mutex, I think setInterval is better option.
I'm working on realtime software, implementing long polling. I found for my case setTimeout on the $.ajax.complete event was better option. But every project is different :)

I found similar calls on a few other places.
The dashboard for example. And any page that shows real time information too.

On the dashboard is actually worse, because each widget calls it's own data feed. On my embedded system, webConfigurator has Default Max Processes set to 2, which means, there will be blocking calls from the different collectors on the dashboard page. I know it's not easy to deliver all the data for the widgets with one single call.

I know that all the problems I have are because of the slow CPU on my system.
Unfortunately I'll have to roll back to 2.2.x version.

Thank you for the great job you guys are doing.

Rosen
_______________________________________________
pfSense mailing list
https://lists.pfsense.org/mailman/listinfo/list
Support the project with Gold! https://pfsense.org/gold

Reply via email to