agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
From: Thomas Hallgren <thomas@tada.se>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Simon Riggs <simon@2ndquadrant.com>
Cc: Martijn van Oosterhout <kleptog@svana.org>
Cc: PostgreSQL-development <pgsql-hackers@postgresql.org>
Cc: PL/Java Development <Pljava-dev@gborg.postgresql.org>
Subject: Re: Shared memory
Date: Tue, 28 Mar 2006 21:11:47 +0200
Message-ID: <44298A73.9090303@tada.se> (raw)
In-Reply-To: <27F0779D-C696-4A39-9CA9-0228C6BABF56@fastcrypt.com>
References: <4423CF32.3060406@tada.se>
	<20060324125851.GC8718@svana.org>
	<4427A8F1.3020009@tada.se>
	<14559.1143473507@sss.pgh.pa.us>
	<4428125D.7000707@tada.se>
	<1143541439.3839.323.camel@localhost.localdomain>
	<44295AB0.5060203@tada.se>
	<2966.1143563883@sss.pgh.pa.us>
	<44296E24.5010602@tada.se>
	<27F0779D-C696-4A39-9CA9-0228C6BABF56@fastcrypt.com>

Dave Cramer wrote:
>
>>
>> I'm not too keen on the term FENCED, since it, in the PL/Java case 
>> will lead to poorer isolation. Multiple threads running in the same 
>> JVM will be able to share data and a JVM crash will affect all 
>> connected sessions.
> When was the last time you saw a JVM crash ? These are very rare now.
I think that's somewhat dependent on what JVM you're using. For the 
commercial ones, BEA, IBM, and Sun, i fully agree.

> In any case if it does fail, it's a JVM bug and can happen to any code 
> running and take the server down if it is in process.
Crash is perhaps not the right word. My point concerned level of 
isolation. Code that is badly written may have serious impact on other 
threads in the same JVM. Let's say you cause an OutOfMemoryException or 
an endless loop. The former will render the JVM completely useless and 
the latter will cause low scheduling prio. If the same thing happens 
using an in-process JVM, the problem is isolated to that one session.

Regards,
Thomas Hallgren




view thread (22+ messages)  latest in thread

Message-ID: <44298A73.9090303@tada.se>
Permalink:  ../44298A73.9090303@tada.se/
Also on:    postgresql.org/message-id/44298A73.9090303@tada.se

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pljava-dev@postgresql.org
  Cc: thomas@tada.se, pg@fastcrypt.com, tgl@sss.pgh.pa.us, simon@2ndquadrant.com, kleptog@svana.org, pgsql-hackers@postgresql.org, Pljava-dev@gborg.postgresql.org
  Subject: Re: Shared memory
  In-Reply-To: <44298A73.9090303@tada.se>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox