Different memory settings in the OFBiz scripts

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Different memory settings in the OFBiz scripts

Jacopo Cappellato-3
I have just noticed that the JVM memory settings in the startofbiz.bat  
script are:

-Xms256M -Xmx512M

while in the startofbiz.sh script are:

-Xms128M -Xmx256M

In the ant "run" task the memory setting is also different:

<property name="memory.max.param" value="-Xmx384M"/>

Should we unify the above settings?  We may use:

-Xms128M -Xmx512M

for all.

What do you think?

Jacopo

Reply | Threaded
Open this post in threaded view
|

Re: Different memory settings in the OFBiz scripts

Scott Gray
+1

-Scott

2008/6/19 Jacopo Cappellato <[hidden email]>:

> I have just noticed that the JVM memory settings in the startofbiz.bat
> script are:
>
> -Xms256M -Xmx512M
>
> while in the startofbiz.sh script are:
>
> -Xms128M -Xmx256M
>
> In the ant "run" task the memory setting is also different:
>
> <property name="memory.max.param" value="-Xmx384M"/>
>
> Should we unify the above settings?  We may use:
>
> -Xms128M -Xmx512M
>
> for all.
>
> What do you think?
>
> Jacopo
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Different memory settings in the OFBiz scripts

Ashish Vijaywargiya
On Thu, Jun 19, 2008 at 4:00 AM, Scott Gray <[hidden email]> wrote:

> +1
>
> -Scott
>
> 2008/6/19 Jacopo Cappellato <[hidden email]>:
>
> > I have just noticed that the JVM memory settings in the startofbiz.bat
> > script are:
> >
> > -Xms256M -Xmx512M
> >
> > while in the startofbiz.sh script are:
> >
> > -Xms128M -Xmx256M
> >
> > In the ant "run" task the memory setting is also different:
> >
> > <property name="memory.max.param" value="-Xmx384M"/>
> >
> > Should we unify the above settings?  We may use:
> >
> > -Xms128M -Xmx512M
> >
> > for all.
> >
> > What do you think?
> >
> > Jacopo
> >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Different memory settings in the OFBiz scripts

Ashish Vijaywargiya
In reply to this post by Scott Gray
+1

On Thu, Jun 19, 2008 at 4:00 AM, Scott Gray <[hidden email]> wrote:

> +1
>
> -Scott
>
> 2008/6/19 Jacopo Cappellato <[hidden email]>:
>
> > I have just noticed that the JVM memory settings in the startofbiz.bat
> > script are:
> >
> > -Xms256M -Xmx512M
> >
> > while in the startofbiz.sh script are:
> >
> > -Xms128M -Xmx256M
> >
> > In the ant "run" task the memory setting is also different:
> >
> > <property name="memory.max.param" value="-Xmx384M"/>
> >
> > Should we unify the above settings?  We may use:
> >
> > -Xms128M -Xmx512M
> >
> > for all.
> >
> > What do you think?
> >
> > Jacopo
> >
> >
>
Reply | Threaded
Open this post in threaded view
|

Re: Different memory settings in the OFBiz scripts

Jacques Le Roux
Administrator
In reply to this post by Jacopo Cappellato-3
There is also the rc.ofbiz file.
I think that today -Xms256M -Xmx512M is OK : +1

Jacques

From: "Jacopo Cappellato" <[hidden email]>

>I have just noticed that the JVM memory settings in the startofbiz.bat  
> script are:
>
> -Xms256M -Xmx512M
>
> while in the startofbiz.sh script are:
>
> -Xms128M -Xmx256M
>
> In the ant "run" task the memory setting is also different:
>
> <property name="memory.max.param" value="-Xmx384M"/>
>
> Should we unify the above settings?  We may use:
>
> -Xms128M -Xmx512M
>
> for all.
>
> What do you think?
>
> Jacopo
>
Reply | Threaded
Open this post in threaded view
|

Re: Different memory settings in the OFBiz scripts

Sumit Pandit-3
+1.

On Jun 19, 2008, at 4:46 PM, Jacques Le Roux wrote:

> There is also the rc.ofbiz file. I think that today -Xms256M -
> Xmx512M is OK : +1
>
> Jacques
>
> From: "Jacopo Cappellato" <[hidden email]>
>> I have just noticed that the JVM memory settings in the  
>> startofbiz.bat  script are:
>> -Xms256M -Xmx512M
>> while in the startofbiz.sh script are:
>> -Xms128M -Xmx256M
>> In the ant "run" task the memory setting is also different:
>> <property name="memory.max.param" value="-Xmx384M"/>
>> Should we unify the above settings?  We may use:
>> -Xms128M -Xmx512M
>> for all.
>> What do you think?
>> Jacopo
>>

Reply | Threaded
Open this post in threaded view
|

Re: Different memory settings in the OFBiz scripts

Bruno Busco
+1

About the rc.ofbiz, is it working?
If I well remember I had to do some changes to use it with ubuntu...
I think the files:

# Source function library
. /etc/rc.d/init.d/functions
# Source networking configuration
. /etc/sysconfig/network

were missing, but may be I need to double check...

-Bruno

2008/6/19 Sumit Pandit <[hidden email]>:

> +1.
>
>
> On Jun 19, 2008, at 4:46 PM, Jacques Le Roux wrote:
>
>  There is also the rc.ofbiz file. I think that today -Xms256M -Xmx512M is
>> OK : +1
>>
>> Jacques
>>
>> From: "Jacopo Cappellato" <[hidden email]>
>>
>>> I have just noticed that the JVM memory settings in the startofbiz.bat
>>>  script are:
>>> -Xms256M -Xmx512M
>>> while in the startofbiz.sh script are:
>>> -Xms128M -Xmx256M
>>> In the ant "run" task the memory setting is also different:
>>> <property name="memory.max.param" value="-Xmx384M"/>
>>> Should we unify the above settings?  We may use:
>>> -Xms128M -Xmx512M
>>> for all.
>>> What do you think?
>>> Jacopo
>>>
>>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Different memory settings in the OFBiz scripts

Jacques Le Roux
Administrator
It works well and is supposed to be adapted (some comments in file help), hey this is Linux world... ;o)

Jacques

From: "Bruno Busco" <[hidden email]>

> +1
>
> About the rc.ofbiz, is it working?
> If I well remember I had to do some changes to use it with ubuntu...
> I think the files:
>
> # Source function library
> . /etc/rc.d/init.d/functions
> # Source networking configuration
> . /etc/sysconfig/network
>
> were missing, but may be I need to double check...
>
> -Bruno
>
> 2008/6/19 Sumit Pandit <[hidden email]>:
>
>> +1.
>>
>>
>> On Jun 19, 2008, at 4:46 PM, Jacques Le Roux wrote:
>>
>>  There is also the rc.ofbiz file. I think that today -Xms256M -Xmx512M is
>>> OK : +1
>>>
>>> Jacques
>>>
>>> From: "Jacopo Cappellato" <[hidden email]>
>>>
>>>> I have just noticed that the JVM memory settings in the startofbiz.bat
>>>>  script are:
>>>> -Xms256M -Xmx512M
>>>> while in the startofbiz.sh script are:
>>>> -Xms128M -Xmx256M
>>>> In the ant "run" task the memory setting is also different:
>>>> <property name="memory.max.param" value="-Xmx384M"/>
>>>> Should we unify the above settings?  We may use:
>>>> -Xms128M -Xmx512M
>>>> for all.
>>>> What do you think?
>>>> Jacopo
>>>>
>>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Different memory settings in the OFBiz scripts

Jacques Le Roux
Administrator
Bruno,

I had a second look. You were right. I remember now : on Ubuntu, I tried to replace /etc/rc.d/init.d/functions by
/lib/lsb/init-functions but noway. Then I simply replaced echo_failure by echo failure, same for success.
I just commited a comment about that but it's a very minor issue anyway (just not showing gracefully on screen, not blocking
anything).
I also replaced
OFBIZ_LOG=$OFBIZ_HOME/logs/console.log
by
OFBIZ_LOG=$OFBIZ_HOME/runtime/logs/console.log

Do you see anything else ?

Thanks

Jacques

From: "Jacques Le Roux" <[hidden email]>

> It works well and is supposed to be adapted (some comments in file help), hey this is Linux world... ;o)
>
> Jacques
>
> From: "Bruno Busco" <[hidden email]>
>> +1
>>
>> About the rc.ofbiz, is it working?
>> If I well remember I had to do some changes to use it with ubuntu...
>> I think the files:
>>
>> # Source function library
>> . /etc/rc.d/init.d/functions
>> # Source networking configuration
>> . /etc/sysconfig/network
>>
>> were missing, but may be I need to double check...
>>
>> -Bruno
>>
>> 2008/6/19 Sumit Pandit <[hidden email]>:
>>
>>> +1.
>>>
>>>
>>> On Jun 19, 2008, at 4:46 PM, Jacques Le Roux wrote:
>>>
>>>  There is also the rc.ofbiz file. I think that today -Xms256M -Xmx512M is
>>>> OK : +1
>>>>
>>>> Jacques
>>>>
>>>> From: "Jacopo Cappellato" <[hidden email]>
>>>>
>>>>> I have just noticed that the JVM memory settings in the startofbiz.bat
>>>>>  script are:
>>>>> -Xms256M -Xmx512M
>>>>> while in the startofbiz.sh script are:
>>>>> -Xms128M -Xmx256M
>>>>> In the ant "run" task the memory setting is also different:
>>>>> <property name="memory.max.param" value="-Xmx384M"/>
>>>>> Should we unify the above settings?  We may use:
>>>>> -Xms128M -Xmx512M
>>>>> for all.
>>>>> What do you think?
>>>>> Jacopo
>>>>>
>>>>>
>>>
>>
>

Reply | Threaded
Open this post in threaded view
|

Re: Different memory settings in the OFBiz scripts

Bruno Busco
Those are the changes I did to rc.ofbiz to make it work on ubuntu:

1) comment the two lines:
# . /etc/rc.d/init.d/functions
#. /etc/sysconfig/network

2) change
OFBIZ_LOG=$OFBIZ_HOME/logs/console.log
to
OFBIZ_LOG=$OFBIZ_HOME/runtime/logs/console.log

3) change
echo_failure
to
echo failure

4) change echo_success
to
echo success

5) change
if [ "$UID" = "0" ]; then
to
if [ "$USER" = "root" ]; then


-Bruno


2008/6/20 Jacques Le Roux <[hidden email]>:

> Bruno,
>
> I had a second look. You were right. I remember now : on Ubuntu, I tried to
> replace /etc/rc.d/init.d/functions by /lib/lsb/init-functions but noway.
> Then I simply replaced echo_failure by echo failure, same for success.
> I just commited a comment about that but it's a very minor issue anyway
> (just not showing gracefully on screen, not blocking anything).
> I also replaced
> OFBIZ_LOG=$OFBIZ_HOME/logs/console.log
> by
> OFBIZ_LOG=$OFBIZ_HOME/runtime/logs/console.log
>
> Do you see anything else ?
>
> Thanks
>
> Jacques
>
> From: "Jacques Le Roux" <[hidden email]>
>
>  It works well and is supposed to be adapted (some comments in file help),
>> hey this is Linux world... ;o)
>>
>> Jacques
>>
>> From: "Bruno Busco" <[hidden email]>
>>
>>> +1
>>>
>>> About the rc.ofbiz, is it working?
>>> If I well remember I had to do some changes to use it with ubuntu...
>>> I think the files:
>>>
>>> # Source function library
>>> . /etc/rc.d/init.d/functions
>>> # Source networking configuration
>>> . /etc/sysconfig/network
>>>
>>> were missing, but may be I need to double check...
>>>
>>> -Bruno
>>>
>>> 2008/6/19 Sumit Pandit <[hidden email]>:
>>>
>>>  +1.
>>>>
>>>>
>>>> On Jun 19, 2008, at 4:46 PM, Jacques Le Roux wrote:
>>>>
>>>>  There is also the rc.ofbiz file. I think that today -Xms256M -Xmx512M
>>>> is
>>>>
>>>>> OK : +1
>>>>>
>>>>> Jacques
>>>>>
>>>>> From: "Jacopo Cappellato" <[hidden email]>
>>>>>
>>>>>  I have just noticed that the JVM memory settings in the startofbiz.bat
>>>>>>  script are:
>>>>>> -Xms256M -Xmx512M
>>>>>> while in the startofbiz.sh script are:
>>>>>> -Xms128M -Xmx256M
>>>>>> In the ant "run" task the memory setting is also different:
>>>>>> <property name="memory.max.param" value="-Xmx384M"/>
>>>>>> Should we unify the above settings?  We may use:
>>>>>> -Xms128M -Xmx512M
>>>>>> for all.
>>>>>> What do you think?
>>>>>> Jacopo
>>>>>>
>>>>>>
>>>>>>
>>>>
>>>
>>
>
Reply | Threaded
Open this post in threaded view
|

Re: Different memory settings in the OFBiz scripts

Jacques Le Roux
Administrator
Hi Bruno,

Yes right, I forgot
#. /etc/sysconfig/network
I have added one more comment.

I did not cross any problem with
if [ "$UID" = "0" ]; then
since I'm using my own login. But I will comment this change too

Thanks

Jacques

From: "Bruno Busco" <[hidden email]>

> Those are the changes I did to rc.ofbiz to make it work on ubuntu:
>
> 1) comment the two lines:
> # . /etc/rc.d/init.d/functions
> #. /etc/sysconfig/network
>
> 2) change
> OFBIZ_LOG=$OFBIZ_HOME/logs/console.log
> to
> OFBIZ_LOG=$OFBIZ_HOME/runtime/logs/console.log
>
> 3) change
> echo_failure
> to
> echo failure
>
> 4) change echo_success
> to
> echo success
>
> 5) change
> if [ "$UID" = "0" ]; then
> to
> if [ "$USER" = "root" ]; then
>
>
> -Bruno
>
>
> 2008/6/20 Jacques Le Roux <[hidden email]>:
>
>> Bruno,
>>
>> I had a second look. You were right. I remember now : on Ubuntu, I tried to
>> replace /etc/rc.d/init.d/functions by /lib/lsb/init-functions but noway.
>> Then I simply replaced echo_failure by echo failure, same for success.
>> I just commited a comment about that but it's a very minor issue anyway
>> (just not showing gracefully on screen, not blocking anything).
>> I also replaced
>> OFBIZ_LOG=$OFBIZ_HOME/logs/console.log
>> by
>> OFBIZ_LOG=$OFBIZ_HOME/runtime/logs/console.log
>>
>> Do you see anything else ?
>>
>> Thanks
>>
>> Jacques
>>
>> From: "Jacques Le Roux" <[hidden email]>
>>
>>  It works well and is supposed to be adapted (some comments in file help),
>>> hey this is Linux world... ;o)
>>>
>>> Jacques
>>>
>>> From: "Bruno Busco" <[hidden email]>
>>>
>>>> +1
>>>>
>>>> About the rc.ofbiz, is it working?
>>>> If I well remember I had to do some changes to use it with ubuntu...
>>>> I think the files:
>>>>
>>>> # Source function library
>>>> . /etc/rc.d/init.d/functions
>>>> # Source networking configuration
>>>> . /etc/sysconfig/network
>>>>
>>>> were missing, but may be I need to double check...
>>>>
>>>> -Bruno
>>>>
>>>> 2008/6/19 Sumit Pandit <[hidden email]>:
>>>>
>>>>  +1.
>>>>>
>>>>>
>>>>> On Jun 19, 2008, at 4:46 PM, Jacques Le Roux wrote:
>>>>>
>>>>>  There is also the rc.ofbiz file. I think that today -Xms256M -Xmx512M
>>>>> is
>>>>>
>>>>>> OK : +1
>>>>>>
>>>>>> Jacques
>>>>>>
>>>>>> From: "Jacopo Cappellato" <[hidden email]>
>>>>>>
>>>>>>  I have just noticed that the JVM memory settings in the startofbiz.bat
>>>>>>>  script are:
>>>>>>> -Xms256M -Xmx512M
>>>>>>> while in the startofbiz.sh script are:
>>>>>>> -Xms128M -Xmx256M
>>>>>>> In the ant "run" task the memory setting is also different:
>>>>>>> <property name="memory.max.param" value="-Xmx384M"/>
>>>>>>> Should we unify the above settings?  We may use:
>>>>>>> -Xms128M -Xmx512M
>>>>>>> for all.
>>>>>>> What do you think?
>>>>>>> Jacopo
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>
>>>>
>>>
>>
>