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


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

Re: Java program "debugging" itself...

Path csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Martin Gregorie <martin@address-in-sig.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Java program "debugging" itself...
Date Thu, 2 Jun 2016 22:22:12 -0000 (UTC)
Organization A noiseless patient Spider
Lines 20
Message-ID <niqbik$7a1$1@dont-email.me> (permalink)
References <slrnnl0dj5.456.avl@login.logic.tuwien.ac.at> <98c956a8-ae76-415d-9347-2c7ff4e1775a@googlegroups.com> <slrnnl0k5o.456.avl@login.logic.tuwien.ac.at>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
Injection-Date Thu, 2 Jun 2016 22:22:12 -0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="e5160e2be48f1ea550cf61512446f525"; logging-data="7489"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19nr6jt15qxZ6rvnyNlPSTUxsldnLF2Z2c="
User-Agent Pan/0.140 (Chocolate Salty Balls; GIT 3663720 git://git.gnome.org/pan2)
Cancel-Lock sha1:OkSXmIlH6oCrdYwynRPBOgPEQgU=
Xref csiph.com comp.lang.java.programmer:34447

Show key headers only | View raw


On Thu, 02 Jun 2016 15:28:56 +0000, Andreas Leitgeb wrote:

> How can I set/configure limits for array size to cause custom exceptions
> to be thrown for "threspassing" threads?

Who writes these tasks? IOW, is there any way you could force all memory 
acquisition and release by these tasks to go through your main process 
which could then keep track of memory used by each task and kill them if 
they break agreed quotas? 

I know this is a bit of a faff in Java (it would be easy to handle in C 
with just the one malloc()/free() mechanism), but it is a way to enforce 
memory use limits on multiple tasks/threads in a single JVM. Its biggest 
drawback is probably that it relies on all programmers obeying the rules.


-- 
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


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