jdk15 and SMP: are libmap.conf hacks needed on FreeBSD 5.4 and
higher (both i386 and amd64)?
freebsd at spatula.net
Thu Oct 6 14:36:50 PDT 2005
On Thu, 6 Oct 2005, Tomaz Borstnar wrote:
> Did not find anything recent enough in archives so I decided to ask
> here. So here it goes... I want to utilize SMP on FreeBSD 5.4 (both i386 and
> amd64) as much as possible with jdk1.5. So I was wondering whether I still
> need to mess with libmap.conf to map threading libs to kse or not? It appears
> that I do not need to do that since my limited testing showed that machine
> was easily overloaded by severely hammering JBoss/jdk15 combination. Also top
> -H shows many java threads in ksesig and similar states. So does that mean I
> should keep the defaults and be happy with them?
In my experience, the Java port simply does not work reliably with libkse
at all. I've opened a number of bug reports on libekse for things which
are trivial to reproduce and really quite obvious problems, but nobody's
touched them that I know of. It appears that at least some of these
problems are caused by bugs in signal handling and forking.
See for example:
The only way I've been able to get stable behaviour from the FreeBSD JVM
is to map to libc_r, which of course isn't going to take advantage of SMP
at all. This is what I have in libmap.conf:
I've gone so far as to offer to give money to the FreeBSD Foundtain to pay
for someone to look at these problems, but got no response.
More information about the freebsd-java