Have high TTFB on any page

Hello all
Some time ago i expecting very slow TTFB… Every page load time starting from 6.3 seconds when i athorize in LNMS
This test
[email protected]:/tmp/librenms/librenms# time curl -v --cookie “laravel_session=eyJpdiI6IkpaSGxiajNCQ3A0OUk1N1BSc1wvZHJ3PT0iLCJ2YWx1ZSI6Ik5uTW1mYWlCR0RPdUZiRk5ndUNGNytDUUl5dldySERwTDBQYTVEQUkwazF4bWJlcmFEczB1VXNNdVdcL3VEUW12IiwibWFjIjoiYTJjYzdmYWI1MWJjYmI4ZDc0OGQyZmE3MTg5MGZjNjVhZDBhZTE0NDU3MjQ5MGRiYTcwNzNhNjBjYzRhZDc0ZCJ9” http://nms/ajax_table.php

  • Trying…
  • Connected to nms.vidnoe.net ( port 80 (#0)

GET /ajax_table.php HTTP/1.1
Host: nms
User-Agent: curl/7.47.0
Accept: /
Cookie: laravel_session=eyJpdiI6IkpaSGxiajNCQ3A0OUk1N1BSc1wvZHJ3PT0iLCJ2YWx1ZSI6Ik5uTW1mYWlCR0RPdUZiRk5ndUNGNytDUUl5dldySERwTDBQYTVEQUkwazF4bWJlcmFEczB1VXNNdVdcL3VEUW12IiwibWFjIjoiYTJjYzdmYWI1MWJjYmI4ZDc0OGQyZmE3MTg5MGZjNjVhZDBhZTE0NDU3MjQ5MGRiYTcwNzNhNjBjYzRhZDc0ZCJ9

< HTTP/1.1 200 OK
< Server: nginx/1.10.3 (Ubuntu)
< Date: Sat, 05 Oct 2019 19:36:18 GMT
< Content-Type: text/html; charset=UTF-8
< Set-Cookie: PHPSESSID=brcp2b67k1tso5bidgc3c0d87j; path=/
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: max-age=300
< X-Varnish: 524508
< Age: 0
< Via: 1.1 varnish-v4
< Accept-Ranges: bytes
< Content-Length: 0
< Connection: keep-alive

  • Connection #0 to host nms left intact

real 0m6.365s
user 0m0.008s
sys 0m0.004s

Tried NGINX/PHP_FPM, apache, varnish - no result. Stopped poller, restarted all services - no result.
How to debug this? Looks like laravel waits for something before send response

Found bug in my plugin…
Close theme

I am encountering the same issue. All my pages are taking about the 6-7 seconds to load, tried all the things you listed.
What was the bug that you encountered ?

I made custom plugin and activate it. Plugin code loads on every page. Code did some snmp requests to device, that was offline, so timeout occurs every time on every page)