Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #26854

Re: email from catch or exception

From Eric Sosman <esosman@comcast-dot-net.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: email from catch or exception
Date 2013-12-11 23:34 -0500
Organization A noiseless patient Spider
Message-ID <l8bed3$8vo$1@dont-email.me> (permalink)
References <d330148b-653c-4327-81a4-151de67a9e06@googlegroups.com> <625312cc-d71d-4a95-9b97-095fffe36599@googlegroups.com> <l8b5sf$3ta$1@dont-email.me>

Show all headers | View raw


On 12/11/2013 9:09 PM, Eric Sosman wrote:
> On 12/11/2013 6:23 PM, RVic wrote:
>> On Wednesday, December 11, 2013 5:55:34 PM UTC-5, RVic wrote:
>>> Is anyone aware of a public domain package that can email you on an
>>> error, include the stack trace or log, whenever an exception occurs?
>>> Thank you, RVic
>>
>> Looking to send an email on exceptions that are caught, and a general
>> one for those that are uncaught.
>>
>> I dont mind if there are a ton of emails!
>
>      I honestly do not know how many exceptions are thrown each
> second in a "typical" Java program.  [...]

... but I found a twelve-year-old paper about optimizing both
the exceptional and unexceptional execution paths ("A Study of
Exception Handling and Its Dynamic Optimization in Java," by
Ogasawara, Komatsu, and Nakatani).  It contains a table counting
how many exceptions are thrown by various programs.  Some excerpts:

     - Web browser opening one (2001-vintage) page: 2,892 exceptions
     - MP3 player starting and loading one file: 8,205 exceptions
     - Parse one XML file (size? complexity?): 17,640 exceptions
     - One program in SPECjvm98 (now obsolete): 242,318 exceptions

     Now: Speaking slowly, distinctly, and directly into the
carnation in my buttonhole, explain once again that you "dont
mind if there are a ton of emails."

-- 
Eric Sosman
esosman@comcast-dot-net.invalid

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

email from catch or exception RVic <rvince99@hotmail.com> - 2013-12-11 14:55 -0800
  Re: email from catch or exception Knute Johnson <september@knutejohnson.com> - 2013-12-11 15:12 -0800
  Re: email from catch or exception Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-12-11 18:13 -0500
    Re: email from catch or exception Arne Vajhøj <arne@vajhoej.dk> - 2013-12-11 19:08 -0500
      Re: email from catch or exception Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-12-13 12:44 -0400
        Re: email from catch or exception Arne Vajhøj <arne@vajhoej.dk> - 2013-12-14 16:36 -0500
          Re: email from catch or exception Arved Sandstrom <asandstrom2@eastlink.ca> - 2013-12-15 17:10 -0400
  Re: email from catch or exception RVic <rvince99@hotmail.com> - 2013-12-11 15:23 -0800
    Re: email from catch or exception Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-12-11 21:09 -0500
      Re: email from catch or exception Eric Sosman <esosman@comcast-dot-net.invalid> - 2013-12-11 23:34 -0500
    Re: email from catch or exception leif.roar@invalid.com (Leif Roar Moldskred) - 2013-12-12 00:41 -0600
  Re: email from catch or exception RVic <rvince99@hotmail.com> - 2013-12-11 15:26 -0800
  Re: email from catch or exception Arne Vajhøj <arne@vajhoej.dk> - 2013-12-11 19:06 -0500
  Re: email from catch or exception RVic <rvince99@hotmail.com> - 2013-12-11 16:28 -0800
    Re: email from catch or exception Arne Vajhøj <arne@vajhoej.dk> - 2013-12-11 19:50 -0500
      Re: email from catch or exception Arne Vajhøj <arne@vajhoej.dk> - 2013-12-11 19:52 -0500

csiph-web