Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #34439
| From | Martin Gregorie <martin@address-in-sig.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Java program "debugging" itself... |
| Date | 2016-06-02 14:17 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <nipf58$ova$1@dont-email.me> (permalink) |
| References | <slrnnl0dj5.456.avl@login.logic.tuwien.ac.at> |
On Thu, 02 Jun 2016 13:36:37 +0000, Andreas Leitgeb wrote: > My application is a server that runs separate tasks as requested by > clients. > > Rarely it happens, that one of the tasks goes awry, due to some bug in > the task's code itself. Latest incident was a loop that accidentally > didn't terminate but grew a StringBuilder's buffer beyond any bounds. > Are these tasks running in their own address space or are they sharing an address space with your server and its other children? If the former is the case, can you use the -Xmx command line option to trap and kill off the misbehaving task? In the past I've had the opposite effect when bulk loading data into a Postgres database on a Linux system: my Java application, when run on a smaller system than I have now, kept being killed off, initially when it exceeded the -Xmx default value and then several more times until I finally got an -Xmx setting that was big enough to let it run to completion. My current system has 8 times the memory and the so the default -Xmx setting is now big enough not to interfere. -- martin@ | Martin Gregorie gregorie. | Essex, UK org |
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Java program "debugging" itself... Andreas Leitgeb <avl@logic.at> - 2016-06-02 13:36 +0000
Re: Java program "debugging" itself... Martin Gregorie <martin@address-in-sig.invalid> - 2016-06-02 14:17 +0000
Re: Java program "debugging" itself... Andreas Leitgeb <avl@logic.at> - 2016-06-02 15:06 +0000
Re: Java program "debugging" itself... Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-06-02 11:14 -0400
Re: Java program "debugging" itself... Andreas Leitgeb <avl@logic.at> - 2016-06-02 15:43 +0000
Re: Java program "debugging" itself... "comp.lang.coffee" <kirandesai84@gmail.com> - 2016-06-02 07:21 -0700
Re: Java program "debugging" itself... Eric Sosman <esosman@comcast-dot-net.invalid> - 2016-06-02 10:38 -0400
Re: Java program "debugging" itself... Robert Klemme <shortcutter@googlemail.com> - 2016-06-02 22:24 +0200
Re: Java program "debugging" itself... Andreas Leitgeb <avl@logic.at> - 2016-06-02 15:28 +0000
Re: Java program "debugging" itself... Martin Gregorie <martin@address-in-sig.invalid> - 2016-06-02 22:22 +0000
Re: Java program "debugging" itself... Andreas Leitgeb <avl@logic.at> - 2016-06-03 15:58 +0000
Re: Java program "debugging" itself... Wanja Gayk <brixomatic@yahoo.com> - 2016-06-04 21:32 +0200
csiph-web