From: | johann at myrkraverk(dot)com (Johann 'Myrkraverk' Oskarsson) |
---|---|
To: | |
Subject: | [Pljava-dev] Java VM stalls during |
Date: | 2010-12-17 09:52:06 |
Message-ID: | AANLkTimEu8GFtyHNiEzHu=w9fHu1qB9BUuj7NwmuiSVN@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pljava-dev |
Hi Anantha,
I've just started to work for 2ndquadrant.com and if you need prompt
support you may be able to work out a contract through them.
Otherwise/until then I'll help you out as much as I can through email.
On Thu, Dec 16, 2010 at 5:05 PM, Anantha <chantanand at gmail.com> wrote:
>>> Does the following JNI application work? ?You'll need to adjust the
>>> Makefile. ?And please excuse the cut&paste instead of attachments.
> This worked for me. Now, please guide what should i do? Thanks in advance!
Ok, we then know that 64 bit applications can create virtual machines.
You can of course double check that with something like
asuka% file invoke
invoke: ELF 64-bit LSB executable AMD64 Version 1 [SSE FXSR FPU],
dynamically linked, not stripped
asuka% ./invoke
Hello World from C!
When the JNI_CreateJavaVM() stalls/hangs, what does pldd say? You can
johann=# SELECT PG_BACKEND_PID();
pg_backend_pid
----------------
2980
(1 row)
and get the pid before you try to run any Java code to feed it to pldd
(or BSD equivalent). You may have to do this as the user (id) that
runs the server.
postgres9 at asuka:~$ pldd 2980
2980: /opt/myrkraverk/postgresql-9.0.1/bin/amd64/postgres
<snip>
/export/home/johann/src/external/pljava-head/build/objs/pljava.so
/opt/myrkraverk/jdk1.5.0_22/jre/lib/amd64/server/libjvm.so
<snip>
/opt/myrkraverk/jdk1.5.0_22/jre/lib/amd64/native_threads/libhpi.so
/opt/myrkraverk/solstudio12.2/lib/dbx/amd64/runtime/libdbx_agent.so
/opt/myrkraverk/jdk1.5.0_22/jre/lib/amd64/libverify.so
/opt/myrkraverk/jdk1.5.0_22/jre/lib/amd64/libjava.so
/opt/myrkraverk/jdk1.5.0_22/jre/lib/amd64/libzip.so
<snip>
That is, are you linking agains the libjvm you expect to? Note that
although in my example above it links to JRE 1.5 it also works to link
at run time with JRE 1.6. It is only at compile time you have to use
1.4 or 1.5.
Johann
From | Date | Subject | |
---|---|---|---|
Next Message | Anantha | 2010-12-17 12:45:40 | [Pljava-dev] Java VM stalls during |
Previous Message | Anantha | 2010-12-16 17:05:52 | [Pljava-dev] Java VM stalls during |