access "Home" very slow

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: access "Home" very slow

Post by cdienger »

I've attached a modified home.php file(/var/www/html/nagioslogserver/application/views/home.php) which removes the graphs and counts it does on the home page. Replace the existing one with the one attached and make sure the permissions are set:

Code: Select all

chown root:root /var/www/html/nagioslogserver/application/views/home.php
chown 644 /var/www/html/nagioslogserver/application/views/home.php
You'll need to do this on each machine in the cluster. Let us know if this fixes the slowness issue. It will help us determine what may be causing the slowness and if there is something we can do about it.

Note: the file attached is named home.txt due to extension restrictions on this board. Make sure to rename it to home.php after downloading it.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
winsonlee
Posts: 42
Joined: Tue Mar 05, 2019 10:38 pm

Re: access "Home" very slow

Post by winsonlee »

cdienger wrote:I've attached a modified home.php file(/var/www/html/nagioslogserver/application/views/home.php) which removes the graphs and counts it does on the home page. Replace the existing one with the one attached and make sure the permissions are set:

Code: Select all

chown root:root /var/www/html/nagioslogserver/application/views/home.php
chown 644 /var/www/html/nagioslogserver/application/views/home.php
You'll need to do this on each machine in the cluster. Let us know if this fixes the slowness issue. It will help us determine what may be causing the slowness and if there is something we can do about it.

Note: the file attached is named home.txt due to extension restrictions on this board. Make sure to rename it to home.php after downloading it.
i replace new home.php it's same
then i remove all content from home.php, just type "blank page" only, it's still slow.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: access "Home" very slow

Post by cdienger »

Please provide a copy of the home.php you are using to make the page blank.

How long does it take to load the page?

Does the browser's dev tools show any points of slowness? Open it by hitting F12 while in the browser, go to the network section, and then load the home page. I should give you information regarding the items it loads for that page and how loing it takes for each item.

In Chrome you can export the data. Please do this and provide the HAR file.
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
winsonlee
Posts: 42
Joined: Tue Mar 05, 2019 10:38 pm

Re: access "Home" very slow

Post by winsonlee »

cdienger wrote:Please provide a copy of the home.php you are using to make the page blank.

How long does it take to load the page?

Does the browser's dev tools show any points of slowness? Open it by hitting F12 while in the browser, go to the network section, and then load the home page. I should give you information regarding the items it loads for that page and how loing it takes for each item.

In Chrome you can export the data. Please do this and provide the HAR file.
all info in attached file, thans for your help
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: access "Home" very slow

Post by cdienger »

Instead of going to imp-log-p04.fetcp.net.tw/nagioslogserver, try using the IP: http://172.17.38.121/nagioslogserver
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
winsonlee
Posts: 42
Joined: Tue Mar 05, 2019 10:38 pm

Re: access "Home" very slow

Post by winsonlee »

cdienger wrote:Instead of going to imp-log-p04.fetcp.net.tw/nagioslogserver, try using the IP: http://172.17.38.121/nagioslogserver
it's fast more a little today better then yesterday, but it still need about 7 sec
and in blank page, press F5 reflash "Blank Page" still need 7 sec too

it look like didn't fix for this problem for use ip in browser
You do not have the required permissions to view the files attached to this post.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: access "Home" very slow

Post by cdienger »

Run a tcpdump on the NLS server while you login and load the home page:

Code: Select all

yum -y install tcpdump
tcpdump -s 0 -i any -w output.pcap
Let this run just long enough for you to login and load the page and use CTRL+C to stop it. PM me the output.pcap(zip it first) and note how many seconds it took to load.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
winsonlee
Posts: 42
Joined: Tue Mar 05, 2019 10:38 pm

Re: access "Home" very slow

Post by winsonlee »

cdienger wrote:Run a tcpdump on the NLS server while you login and load the home page:

Code: Select all

yum -y install tcpdump
tcpdump -s 0 -i any -w output.pcap
Let this run just long enough for you to login and load the page and use CTRL+C to stop it. PM me the output.pcap(zip it first) and note how many seconds it took to load.
already send file via pm, thanks
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: access "Home" very slow

Post by cdienger »

I do see huge delay with one of the requests, but the tcpdump was filtered to capture only the port 80 traffic and I was hoping to see this and port 9200 traffic at least. Can you run it again without the filter or filter it so that we capture both port 80 traffic and port 9200?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked