I've used small "local" virtual machines (both VM & recently
VirtualBox) in the past with memory as low as 512mb to run OfBiz (as
test), but recently when I deployed to a hosted VPS with 768Mb of ram
I encountered this same problem. I had modified the -Xmx setings to
512Mb and I cut out ever un-needed service on the VPS so that I had
>700Mb available before running the startofbiz.sh ofbiz but I always
received the out of memory error.  Experimenting I noticed I could
only allocated 256Mb (using -Xmx) before I would get the out or memory
error... even just doing a "java -Xmx 512M -version"!

>From googling what I could determine was there seemed to be problem
running java under some virtualisation ... I cannot remember the exact
details but it was something along the lines of java not
distinguishing correctly between real & virtualised memory totals
which caused things to go wrong. ??

Strangely ... in the end I manage to start ofbiz by dropping the
script and just running java -jar ofbiz.jar ... But I am guessing the
defaults are very low.. but it was just a test machine & it ran so I
figured I'd wasted enough time and just moved on.

Colin
ps. when I installed ofbiz on this system initially it had run with
512Mb.  but when I came back to it after a month or so it no longer
did.

On 13 December 2010 06:06, Raj Saini <[email protected]> wrote:
> It is not about how much memory is available or used. It is about how much
> you have allocated in -Xmx. If the -Xmx limit exceeds the total available on
> system (for example 32 bit machines have 3Gb limit), you will see this
> error.
>
> On Monday 13 December 2010 02:20 AM, BJ Freeman wrote:
>>
>>
>> thanks, of 1.7 gig only using 800 gig before starting.
>>
>> Raj Saini sent the following on 12/11/2010 10:09 PM:
>>
>>
>> =========================
>> BJ Freeman
>> Strategic Power Office with Supplier Automation
>> <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>> Specialtymarket.com <http://www.specialtymarket.com/>
>> Systems Integrator-- Glad to Assist
>>
>> Chat  Y! messenger: bjfr33man
>>
>>> Check the -Xms and -Xmx settings. This generally happens when -Xmx value
>>> is more than the system RAM.
>>>
>>>
>>> On Sunday 12 December 2010 08:39 AM, BJ Freeman wrote:
>>>>
>>>> using jdk1.6.0_19
>>>> version 104453
>>>> windows xp
>>>> .\ant run-install
>>>> sucessful
>>>> startofbiz
>>>> Error occurred during initialization of VM
>>>> Could not reserve enough space for object heap
>>>> Could not create the Java virtual machine.
>>>> .\ant run
>>>> works.
>>>>
>>>> any Ideas?
>>>>
>>>> =========================
>>>> BJ Freeman
>>>> Strategic Power Office with Supplier Automation
>>>> <http://www.businessesnetwork.com/automation/viewforum.php?f=52>
>>>> Specialtymarket.com <http://www.specialtymarket.com/>
>>>> Systems Integrator-- Glad to Assist
>>>>
>>>> Chat Y! messenger: bjfr33man
>>>>
>>>>
>>>
>>>
>>
>>
>
>

Reply via email to