[Bug 215286] [java/openjdk8] Java crashes/exits on i386 as soon as kernel options KVA_PAGES = 512 and KSTACK_PAGES = 4 set for ZFS

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Sun May 7 10:48:05 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=215286

Konstantin Belousov <kib at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kib at FreeBSD.org

--- Comment #3 from Konstantin Belousov <kib at FreeBSD.org> ---
The message from the JVM allocator is clear enough, isn't it ?

KVA_PAGES=512 option re-partitions the kernel/user virtual address space split
into 2G/2G, while the default partition is 3G/1G.  Among the 2G space, at least
512M is reserved for the binary and sbrk, rest is fragmented by the loaded
libraries and other mappings.

This probably lefts around 700-800M, in the best case, for the Java heap. 
Since JDK 7 and 8 have different GCs, it is not surprising that things start to
break.  I suspect that you use copying GC with JVM 8, which requires
approximately twice as many address space as compacting collector, and 800Mb
only allows for 400Mb max heap size.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-java mailing list