Re: Shared memory

Поиск
Список
Период
Сортировка
От Thomas Hallgren
Тема Re: Shared memory
Дата
Msg-id 44298A73.9090303@tada.se
обсуждение исходный текст
Ответ на Re: Shared memory  (Dave Cramer <pg@fastcrypt.com>)
Список pgsql-hackers
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



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [GENERAL] PANIC: heap_update_redo: no block
Следующее
От: "Larry Rosenman"
Дата:
Сообщение: Exposing DEFAULT_PGSOCKET_DIR via a libpq function?