Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Apache shoots to ~100%; vendor-ezyang-No such file or directory, Permission denied #5561
DO NOT DELETE THIS INFORMATION.
GitHub issues is for feature requests or bugs, please do not post issues asking for help or how to do X, Y or Z.
Please confirm each of the sections below by putting an
LibreNMS | 3807ec9
I had an issue with a client on 14.04 and Apache just crawling. There were < 10 devices being monitored, all Cisco gear.. almost all modules turned off. It was a PC, not a server, so the first thing I did was add RRDCACHED, verified it was working. Still, just terribly slow.
We started over with a real server (I have this running on servers for about 10 of my clients right now, so this was not my first time installing or tweaking). It is still terrible! Very slow to bring up some pages??
I am a network guy, not really a software guy, so I started searching for troubleshooting Apache issues. Then I remember I have NFSen also running on this box.. and it runs great??
So I watch 'top' and get the process ID of Apache skyrocketing. I do a "strace -p XXXX" and BOOM.. here is what I see:
stat("/opt/librenms/vendor/ezyang/htmlpurifier/library/HTMLPurifier/DefinitionCache/Serializer/HTML", 0x7fff27ef0820) = -1 ENOENT (No such file or directory)
There are hundreds of these lines every time I click on a device. I have access to one of my older clients and their LibreNMS install (that is also up to date). There is a directory missing in the newer install (I have verified twice, by just starting on a totally new install):
I can copy over the HTML directory from the old server and put it on the new server.. the performance improves.. but it is still slower.
What to do here?
Can you try this patch:
I am sorry to be such a beginner here.. but I tried to do some reading and did this:
Am I even close??
It was the line at the bottom! Thanks!
...so now this server has that directory. If I pause over the device and let the 6 mini-graphs fill out, the click is almost instantaneous.. but not all the time. I am starting to think this might have something to do with their internal network. The performance is just a little better than when it was on an old PC. NONE of my other customers are experiencing anything like this. And one of my customers has over 10,000 ports now.
I would like to test back and forth.. how do I remove that patch? Thanks for your help. This is a new customer and I have had such good luck with Nacho that this is my standard offering. The guys is being cool about it, though.. he loves the interface. Everyone does!