agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] Re: [ANNOUNCE] ANN: PLJava 1.0.0 released
Date: Thu, 03 Feb 2005 20:35:37 +0100
Message-ID: <thhal-0kBXeAjfoxScMvy30Ba3NA+F1+LMoeX@mailblocks.com> (raw)
In-Reply-To: <42023C0B.7040204@chemaxon.hu>
References: <41F43B63.1080706@mailblocks.com>
<thhal-059PPAtNOxScMaa0y86Szyn+VNmQVuL@mailblocks.com>
<thhal-06NPPAtVOxScSkFGIAhRG0MDL8NPDP/@mailblocks.com>
<42023C0B.7040204@chemaxon.hu>
<42027D09.6060502@mailblocks.com>
<thhal-0jxXeAjXoxScL85Smp3icbgSNXK7HIZ@mailblocks.com>
P?ter,
> Are the java classes run in a bytecode-interpreted mode or are they
> compiled into native code using HotSpot or similar?
That depends on the JVM. The Sun JVM will detect hotspots and do JIT
compilations as needed. The same goes for JRockit.
If you use GCJ, then the current version will utilize native code for
pljava's own Java code and the stuff loaded with install_jar will be
interpreted. This is of course subject to improvement. You can preload
precompiled .so files also, the same way the pljava.so is loaded, but
that circumvents the normal classloader semantics.
> Does the one session - one JVM archticture means that a large number
> of sessions require large number of memory. E.g. 200 session needs ca.
> 200*30MB = 6GB memory?
Since the backend is single-threaded and starts a new process for each
session, there's no way to have multiple sessions running in one JVM
unless some inter-process communication protocoll is added. Please read
the rationale behind choice of technology here:
http://gborg.postgresql.org/project/pljava/genpage.php?jni_rationale.
The pl-j project at http://plj.codehaus.org took another approach. They
use one JVM and instead suffer from the IPC overhead.
From a pure "java-in-the-backend" perspective, it would have been
better if the postmaster spawned threads rather than processes. There
are many other perspectives though as you will find out if you bring the
subject up on one of the PostgreSQL mailing lists :-)
Regards,
Thomas Hallgren
view thread (3+ messages)
Message-ID: <thhal-0kBXeAjfoxScMvy30Ba3NA+F1+LMoeX@mailblocks.com>
Permalink: ../thhal-0kBXeAjfoxScMvy30Ba3NA+F1+LMoeX@mailblocks.com/
Also on: postgresql.org/message-id/thhal-0kBXeAjfoxScMvy30Ba3NA+F1+LMoeX@mailblocks.com
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
Subject: Re: [Pljava-dev] Re: [ANNOUNCE] ANN: PLJava 1.0.0 released
In-Reply-To: <thhal-0kBXeAjfoxScMvy30Ba3NA+F1+LMoeX@mailblocks.com>
* 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