Cost of creating exception compared to cost of logging it
Posted
by Sebastien Lorber
on Stack Overflow
See other posts from Stack Overflow
or by Sebastien Lorber
Published on 2010-04-06T16:29:21Z
Indexed on
2010/04/06
16:33 UTC
Read the original article
Hit count: 515
Hello,
Just wonder how much cost to raise a java exception (or to call native fillInStackTrace() of Throwable) compared to what it cost to log it with log4j (in a file, with production hard drive)...
Asking myself, when exceptions are raised, does it worth to often log them even if they are not necessary significant... (i work in a high load environment)
Thanks
© Stack Overflow or respective owner