Why cannot I allocate more than -Xmx700M

Sharkie shark.fin.soup at mac.com
Tue Aug 19 02:46:59 UTC 2008


%limit
cputime      unlimited
filesize     unlimited
datasize     2097152 kbytes
stacksize    262144 kbytes
coredumpsize unlimited
memoryuse    unlimited
vmemoryuse   unlimited
descriptors  11095
memorylocked unlimited
maxproc      5547
sbsize       unlimited


%cat loader.conf
kern.maxdsiz="2G"
kern.dfldsiz="2G"
kern.maxssiz="256M"
geom_mirror_load="YES"


My other apps have no problem allocating greater than that.

On Aug 19, 2008, at 3:04 AM, Nicklas Johnson wrote:

> Can you start ANY program in your environment that needs to allocate  
> larger
> than a 700MB heap, or with a total process of a size greater than  
> about
> 1000MB (accounting for the size of the JVM itself)?
>
> Does "limits" say anything interesting about datasize?
>
>   Nick
>
> 2008/8/18 Sharkie <shark.fin.soup at mac.com>
>
>> 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
>>
>>
> -- 
> "Courage isn't just a matter of not being frightened, you know. It's  
> being
> afraid and doing what you have to do anyway."
> -- Doctor Who - Planet of the Daleks
> This message has been brought to you by Nick Johnson 2.3b1 and the  
> number 6.
> http://healerNick.com/ http://morons.org/ http://spatula.net/
> _______________________________________________
> freebsd-java at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-java
> To unsubscribe, send any mail to "freebsd-java- 
> unsubscribe at freebsd.org"



More information about the freebsd-java mailing list