0

What problem can happen on my server? I'm monitoring a server and that keep occurring on the log file from some web app.

Nothing is show for the users, only on the log file. More than 10 erros when some user open some report pages.

Does this error can crash the server? These errors make the server slow?

Thanks

saulob
  • 615
  • 1
  • 10
  • 25
  • 1
    Yes, you should fix it. – Fatal Error May 10 '16 at 13:18
  • 1
    Scripting languages largely do not crash with such errors. Use a profiler to test performance implications. Fix it for ensuring correct results anyway. – mario May 10 '16 at 13:19
  • 2
    Yes, always write code so that you handle errors and warnings. Suppressing them isn't a good idea, fixing them is much better. Check if it's zero before you do the division. `if ($denominator != 0) { echo $numerator / $denominator; } else { /* Division by zero, can't divide */ }` – Qirel May 10 '16 at 13:24
  • 1
    There is an article about it, in french I believe and someone made a quick translation that with 10000 errors it took about 100 ms longer if I recall correct – Andreas May 10 '16 at 13:29

1 Answers1

0

The errors won't make the server slower, but will clog up your log files and cause visitors to see 500 errors on the pages affected by the problem. Fixing this kind of error should be easy, can you post your code?

Evan McMahon
  • 55
  • 1
  • 9