Why cannot I allocate more than -Xmx700M

Sharkie shark.fin.soup at mac.com
Mon Aug 18 19:44:33 UTC 2008


It's very odd that I have been getting this error.

%/usr/local/jruby/bin/jruby -J-Xmx1000M --server /usr/local/bin/ 
glassfish_rails /home/www/app
Error occurred during initialization of VM
Could not reserve enough space for object heap
#
# An unexpected error has been detected by Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x88102a19, pid=3183, tid=0x8103200
#
# Java VM: Diablo Java HotSpot(TM) Server VM (10.0-b23 mixed mode bsd- 
x86)
# Problematic frame:
# C  [libc.so.7+0x62a19]  free+0x49
#
# An error report file with more information is saved as:
# /home/www/hs_err_pid3183.log
#
# Please submit bug reports to freebsd-java at FreeBSD.org
#
Abort (core dumped)





On Aug 19, 2008, at 1:36 AM, Kees Jan Koster wrote:

> Dear Sharkie,
>
>> My machine does have more than 700M available when I try to start  
>> my Java app, but I could only do at most 700M.
>
> What error did you get when you tried it?
>
>> Is there an artificial limit or something that I cannot see here? I  
>> have 1506M remaining, which I cannot use in this single java app?
>
> I should not think so.
> --
> Kees Jan
>
> http://java-monitor.com/forum/
> kjkoster at kjkoster.org
> 06-51838192
>
> Rule 1 for being in a hole: stop digging.
>



More information about the freebsd-java mailing list