Ofbiz Development

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

Ofbiz Development

anon-2
Hello List,
I have been looking at the tutorials on youtube of the ofbiz framework
and I was wondering what the development experience look like. I noticed
in the vid that the server has to be restarted frequently and that the
startup time can take more that 5 min. Is that really what is going on?
After seeing that, I tried the moqui framework, because I am looking for
a fully loaded opensource ecommerce framework. Sadly, moqui uses gradle
and I do not have a good experience with gradle. It is just too slow for
my taste. Is there any trick that you guys use to speed up thae ofbiz
startup time or do you guys just live with it? I left Javaland years ago
because of that issue...
Thanks.
Reply | Threaded
Open this post in threaded view
|

RE: Ofbiz Development

Nick Rosser-2
You could check-out BigFish -- an open-source eCommerce framework that complements OFBiz. Bigfish.solveda.com.
Nick

-----Original Message-----
From: anon [mailto:[hidden email]]
Sent: Wednesday, April 13, 2016 3:12 PM
To: [hidden email]
Subject: Ofbiz Development

Hello List,
I have been looking at the tutorials on youtube of the ofbiz framework and I was wondering what the development experience look like. I noticed in the vid that the server has to be restarted frequently and that the startup time can take more that 5 min. Is that really what is going on?
After seeing that, I tried the moqui framework, because I am looking for a fully loaded opensource ecommerce framework. Sadly, moqui uses gradle and I do not have a good experience with gradle. It is just too slow for my taste. Is there any trick that you guys use to speed up thae ofbiz startup time or do you guys just live with it? I left Javaland years ago because of that issue...
Thanks.
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Development

Pierre Smits
Hi anon <[hidden email]>.

Jumpstarting development is easy:

   1.  Use the ./ant create-component task to create a complete skeleton of
   a hot-deployment component. And after an ./ant build start you are ready to
   use the skeleton. Just make sure that you load the component's permissions
   after the startup (in webtools)
   2. You can create widgets (screens, forms) without it requiring a restart
   3. You can can create freemarker templates and groovy scripts without it
   requiring a restart
   4. You can create request-map and view-map URI's without it requiring a
   restart

The elements of a component requiring a restart is services and Java code
(as it needs to be compiled. Adding new labels to the Label.xml files of
the component doesn't require a restart, but the cache needs to be flushed
to see the effects (again this is done in the webtools component).

I trust the above will help you jumpstart your development.

Best regards,

Pierre Smits

ORRTIZ.COM <http://www.orrtiz.com>
OFBiz based solutions & services

OFBiz Extensions Marketplace
http://oem.ofbizci.net/oci-2/

On Wed, Apr 13, 2016 at 9:23 PM, Nick Rosser <[hidden email]> wrote:

> You could check-out BigFish -- an open-source eCommerce framework that
> complements OFBiz. Bigfish.solveda.com.
> Nick
>
> -----Original Message-----
> From: anon [mailto:[hidden email]]
> Sent: Wednesday, April 13, 2016 3:12 PM
> To: [hidden email]
> Subject: Ofbiz Development
>
> Hello List,
> I have been looking at the tutorials on youtube of the ofbiz framework and
> I was wondering what the development experience look like. I noticed in the
> vid that the server has to be restarted frequently and that the startup
> time can take more that 5 min. Is that really what is going on?
> After seeing that, I tried the moqui framework, because I am looking for a
> fully loaded opensource ecommerce framework. Sadly, moqui uses gradle and I
> do not have a good experience with gradle. It is just too slow for my
> taste. Is there any trick that you guys use to speed up thae ofbiz startup
> time or do you guys just live with it? I left Javaland years ago because of
> that issue...
> Thanks.
>
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Development

anon-2
Wow... Interesting and refreshing. I had the feeling, I would have had
to restart after every single change.
Thanks a lot Pierre for the clarification. I like that.

I will also take a look at Bigfish.


Regards.
On 04/13/2016 09:39 PM, Pierre Smits wrote:

> Hi anon <[hidden email]>.
>
> Jumpstarting development is easy:
>
>     1.  Use the ./ant create-component task to create a complete skeleton of
>     a hot-deployment component. And after an ./ant build start you are ready to
>     use the skeleton. Just make sure that you load the component's permissions
>     after the startup (in webtools)
>     2. You can create widgets (screens, forms) without it requiring a restart
>     3. You can can create freemarker templates and groovy scripts without it
>     requiring a restart
>     4. You can create request-map and view-map URI's without it requiring a
>     restart
>
> The elements of a component requiring a restart is services and Java code
> (as it needs to be compiled. Adding new labels to the Label.xml files of
> the component doesn't require a restart, but the cache needs to be flushed
> to see the effects (again this is done in the webtools component).
>
> I trust the above will help you jumpstart your development.
>
> Best regards,
>
> Pierre Smits
>
> ORRTIZ.COM <http://www.orrtiz.com>
> OFBiz based solutions & services
>
> OFBiz Extensions Marketplace
> http://oem.ofbizci.net/oci-2/
>
> On Wed, Apr 13, 2016 at 9:23 PM, Nick Rosser <[hidden email]> wrote:
>
>> You could check-out BigFish -- an open-source eCommerce framework that
>> complements OFBiz. Bigfish.solveda.com.
>> Nick
>>
>> -----Original Message-----
>> From: anon [mailto:[hidden email]]
>> Sent: Wednesday, April 13, 2016 3:12 PM
>> To: [hidden email]
>> Subject: Ofbiz Development
>>
>> Hello List,
>> I have been looking at the tutorials on youtube of the ofbiz framework and
>> I was wondering what the development experience look like. I noticed in the
>> vid that the server has to be restarted frequently and that the startup
>> time can take more that 5 min. Is that really what is going on?
>> After seeing that, I tried the moqui framework, because I am looking for a
>> fully loaded opensource ecommerce framework. Sadly, moqui uses gradle and I
>> do not have a good experience with gradle. It is just too slow for my
>> taste. Is there any trick that you guys use to speed up thae ofbiz startup
>> time or do you guys just live with it? I left Javaland years ago because of
>> that issue...
>> Thanks.
>>

Reply | Threaded
Open this post in threaded view
|

RE: Ofbiz Development

SkipDever
I have servers running a month or more without restart and then usually because of a change in java code.

-----Original Message-----
From: anon [mailto:[hidden email]]
Sent: Wednesday, April 13, 2016 12:47 PM
To: [hidden email]
Subject: Re: Ofbiz Development


Wow... Interesting and refreshing. I had the feeling, I would have had
to restart after every single change.
Thanks a lot Pierre for the clarification. I like that.

I will also take a look at Bigfish.


Regards.
On 04/13/2016 09:39 PM, Pierre Smits wrote:

> Hi anon <[hidden email]>.
>
> Jumpstarting development is easy:
>
>     1.  Use the ./ant create-component task to create a complete skeleton of
>     a hot-deployment component. And after an ./ant build start you are ready to
>     use the skeleton. Just make sure that you load the component's permissions
>     after the startup (in webtools)
>     2. You can create widgets (screens, forms) without it requiring a restart
>     3. You can can create freemarker templates and groovy scripts without it
>     requiring a restart
>     4. You can create request-map and view-map URI's without it requiring a
>     restart
>
> The elements of a component requiring a restart is services and Java code
> (as it needs to be compiled. Adding new labels to the Label.xml files of
> the component doesn't require a restart, but the cache needs to be flushed
> to see the effects (again this is done in the webtools component).
>
> I trust the above will help you jumpstart your development.
>
> Best regards,
>
> Pierre Smits
>
> ORRTIZ.COM <http://www.orrtiz.com>
> OFBiz based solutions & services
>
> OFBiz Extensions Marketplace
> http://oem.ofbizci.net/oci-2/
>
> On Wed, Apr 13, 2016 at 9:23 PM, Nick Rosser <[hidden email]> wrote:
>
>> You could check-out BigFish -- an open-source eCommerce framework that
>> complements OFBiz. Bigfish.solveda.com.
>> Nick
>>
>> -----Original Message-----
>> From: anon [mailto:[hidden email]]
>> Sent: Wednesday, April 13, 2016 3:12 PM
>> To: [hidden email]
>> Subject: Ofbiz Development
>>
>> Hello List,
>> I have been looking at the tutorials on youtube of the ofbiz framework and
>> I was wondering what the development experience look like. I noticed in the
>> vid that the server has to be restarted frequently and that the startup
>> time can take more that 5 min. Is that really what is going on?
>> After seeing that, I tried the moqui framework, because I am looking for a
>> fully loaded opensource ecommerce framework. Sadly, moqui uses gradle and I
>> do not have a good experience with gradle. It is just too slow for my
>> taste. Is there any trick that you guys use to speed up thae ofbiz startup
>> time or do you guys just live with it? I left Javaland years ago because of
>> that issue...
>> Thanks.
>>


Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Development

John Spikowski
I'm glad this conversation is openly being discussed. I'm glad there's a
dedicated group of Java pros associated with the project and not just
the author.

Confession: I'm still afraid of the monster and don't feel comfortable
if a customer was screaming at me the system is down and asking what is
wrong?

I hope through this list my comfort level will improve.


On Wed, 2016-04-13 at 13:37 -0700, Skip wrote:

> I have servers running a month or more without restart and then usually because of a change in java code.
>
> -----Original Message-----
> From: anon [mailto:[hidden email]]
> Sent: Wednesday, April 13, 2016 12:47 PM
> To: [hidden email]
> Subject: Re: Ofbiz Development
>
>
> Wow... Interesting and refreshing. I had the feeling, I would have had
> to restart after every single change.
> Thanks a lot Pierre for the clarification. I like that.
>
> I will also take a look at Bigfish.
>
>
> Regards.
> On 04/13/2016 09:39 PM, Pierre Smits wrote:
> > Hi anon <[hidden email]>.
> >
> > Jumpstarting development is easy:
> >
> >     1.  Use the ./ant create-component task to create a complete skeleton of
> >     a hot-deployment component. And after an ./ant build start you are ready to
> >     use the skeleton. Just make sure that you load the component's permissions
> >     after the startup (in webtools)
> >     2. You can create widgets (screens, forms) without it requiring a restart
> >     3. You can can create freemarker templates and groovy scripts without it
> >     requiring a restart
> >     4. You can create request-map and view-map URI's without it requiring a
> >     restart
> >
> > The elements of a component requiring a restart is services and Java code
> > (as it needs to be compiled. Adding new labels to the Label.xml files of
> > the component doesn't require a restart, but the cache needs to be flushed
> > to see the effects (again this is done in the webtools component).
> >
> > I trust the above will help you jumpstart your development.
> >
> > Best regards,
> >
> > Pierre Smits
> >
> > ORRTIZ.COM <http://www.orrtiz.com>
> > OFBiz based solutions & services
> >
> > OFBiz Extensions Marketplace
> > http://oem.ofbizci.net/oci-2/
> >
> > On Wed, Apr 13, 2016 at 9:23 PM, Nick Rosser <[hidden email]> wrote:
> >
> >> You could check-out BigFish -- an open-source eCommerce framework that
> >> complements OFBiz. Bigfish.solveda.com.
> >> Nick
> >>
> >> -----Original Message-----
> >> From: anon [mailto:[hidden email]]
> >> Sent: Wednesday, April 13, 2016 3:12 PM
> >> To: [hidden email]
> >> Subject: Ofbiz Development
> >>
> >> Hello List,
> >> I have been looking at the tutorials on youtube of the ofbiz framework and
> >> I was wondering what the development experience look like. I noticed in the
> >> vid that the server has to be restarted frequently and that the startup
> >> time can take more that 5 min. Is that really what is going on?
> >> After seeing that, I tried the moqui framework, because I am looking for a
> >> fully loaded opensource ecommerce framework. Sadly, moqui uses gradle and I
> >> do not have a good experience with gradle. It is just too slow for my
> >> taste. Is there any trick that you guys use to speed up thae ofbiz startup
> >> time or do you guys just live with it? I left Javaland years ago because of
> >> that issue...
> >> Thanks.
> >>
>
>


Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Development

james_sg
In reply to this post by Pierre Smits
Hi anon,

To add on, if you are using Eclipse IDE for development, check out https://dcevm.github.io/. DCEVM allows you to code java and test the change without restarting the whole application. Eclipse IDE prompts you whenever DCEVM cannot push the change properly, and you will know the application requires a restart.

Regards,
James

Pierre Smits wrote
Hi anon <[hidden email]>.

Jumpstarting development is easy:

   1.  Use the ./ant create-component task to create a complete skeleton of
   a hot-deployment component. And after an ./ant build start you are ready to
   use the skeleton. Just make sure that you load the component's permissions
   after the startup (in webtools)
   2. You can create widgets (screens, forms) without it requiring a restart
   3. You can can create freemarker templates and groovy scripts without it
   requiring a restart
   4. You can create request-map and view-map URI's without it requiring a
   restart

The elements of a component requiring a restart is services and Java code
(as it needs to be compiled. Adding new labels to the Label.xml files of
the component doesn't require a restart, but the cache needs to be flushed
to see the effects (again this is done in the webtools component).

I trust the above will help you jumpstart your development.

Best regards,

Pierre Smits

ORRTIZ.COM <http://www.orrtiz.com>
OFBiz based solutions & services

OFBiz Extensions Marketplace
http://oem.ofbizci.net/oci-2/

On Wed, Apr 13, 2016 at 9:23 PM, Nick Rosser <[hidden email]> wrote:

> You could check-out BigFish -- an open-source eCommerce framework that
> complements OFBiz. Bigfish.solveda.com.
> Nick
>
> -----Original Message-----
> From: anon [mailto:[hidden email]]
> Sent: Wednesday, April 13, 2016 3:12 PM
> To: [hidden email]
> Subject: Ofbiz Development
>
> Hello List,
> I have been looking at the tutorials on youtube of the ofbiz framework and
> I was wondering what the development experience look like. I noticed in the
> vid that the server has to be restarted frequently and that the startup
> time can take more that 5 min. Is that really what is going on?
> After seeing that, I tried the moqui framework, because I am looking for a
> fully loaded opensource ecommerce framework. Sadly, moqui uses gradle and I
> do not have a good experience with gradle. It is just too slow for my
> taste. Is there any trick that you guys use to speed up thae ofbiz startup
> time or do you guys just live with it? I left Javaland years ago because of
> that issue...
> Thanks.
>
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Development

Jeremy Olmstead
In reply to this post by anon-2
It probably depends on your system, but when I restart, it is back up and
running in about 15 seconds.
On Apr 13, 2016 2:11 PM, "anon" <[hidden email]> wrote:

> Hello List,
> I have been looking at the tutorials on youtube of the ofbiz framework and
> I was wondering what the development experience look like. I noticed in the
> vid that the server has to be restarted frequently and that the startup
> time can take more that 5 min. Is that really what is going on?
> After seeing that, I tried the moqui framework, because I am looking for a
> fully loaded opensource ecommerce framework. Sadly, moqui uses gradle and I
> do not have a good experience with gradle. It is just too slow for my
> taste. Is there any trick that you guys use to speed up thae ofbiz startup
> time or do you guys just live with it? I left Javaland years ago because of
> that issue...
> Thanks.
>
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Development

marcopaul
Also make sure you have a beefy amount of RAM. Eclipse on its own needs at least 2 GB on top of your regular OS overhead, and if you’re running OFbiz locally you want at least an additional gig or two. Your initial compile when you will always take much longer as well.

These days I wouldn’t touch an ofbiz project with a development machine that has less than 8 GB.

> On Apr 13, 2016, at 4:50 PM, Jeremy Olmstead <[hidden email]> wrote:
>
> It probably depends on your system, but when I restart, it is back up and
> running in about 15 seconds.
> On Apr 13, 2016 2:11 PM, "anon" <[hidden email]> wrote:
>
>> Hello List,
>> I have been looking at the tutorials on youtube of the ofbiz framework and
>> I was wondering what the development experience look like. I noticed in the
>> vid that the server has to be restarted frequently and that the startup
>> time can take more that 5 min. Is that really what is going on?
>> After seeing that, I tried the moqui framework, because I am looking for a
>> fully loaded opensource ecommerce framework. Sadly, moqui uses gradle and I
>> do not have a good experience with gradle. It is just too slow for my
>> taste. Is there any trick that you guys use to speed up thae ofbiz startup
>> time or do you guys just live with it? I left Javaland years ago because of
>> that issue...
>> Thanks.
>>

Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Development

Ashish Vijaywargiya-4
In reply to this post by anon-2
Hello,

We are managing so many servers here at HotWax. All our server starts ofbiz
based instance within 15-30 seconds at max.

If we talk about restart of server following points needs to be considered.

-- If infra setup is good like Xmx, Xms settings are good for JAVA and you
have enough memory(RAM) on the server then server doesn't need a restart
for any number of days.

-- Apache Connection settings plays important role and if your settings are
good then you are good on that front. There is a formula to find out the
limit of connections that your server can handle, it basically consider
server processor and RAM. Sometime there can be bot attack as well which
can make your server unresponsive so you can control those settings as well
in Apache Server.

-- Sometime due to memory leaks, bad code server creates issues. Log4j api
is integrated with OFBiz so you can check the logs and identify the actual
problem which makes your server unresponsive.

-- If we talk about Development box then now a days computers are powerful
and you get SSD(Solid State Drives) as a default storage in your laptops.
So if you have SSD and more than 8GB of RAM then you are safe to do good
and fast development with Apache OFBiz project.

Thanks!

--
Kind Regards
Ashish Vijaywargiya
HotWax Systems - est. 1997

On Thu, Apr 14, 2016 at 12:41 AM, anon <[hidden email]> wrote:

> Hello List,
> I have been looking at the tutorials on youtube of the ofbiz framework and
> I was wondering what the development experience look like. I noticed in the
> vid that the server has to be restarted frequently and that the startup
> time can take more that 5 min. Is that really what is going on?
> After seeing that, I tried the moqui framework, because I am looking for a
> fully loaded opensource ecommerce framework. Sadly, moqui uses gradle and I
> do not have a good experience with gradle. It is just too slow for my
> taste. Is there any trick that you guys use to speed up thae ofbiz startup
> time or do you guys just live with it? I left Javaland years ago because of
> that issue...
> Thanks.
>
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Development

John Spikowski
In reply to this post by marcopaul
"These days I wouldn’t touch an ofbiz project with a development machine
that has less than 8 GB. "

Thanks. You just redefined the 'monster' for me. Java is a resource hog
and always has been. The only reason OFBiz runs as fast as it does is
because the complete ERP system is cached in memory. No one has admitted
to all cores pegging at 100% when a request is made.

This is a painted elephant that is expense to feed and keep healthy.

I'm sure there is salvageable business logic stored in the JAR but I'm
not going to try and flush it out from the framework.


On Wed, 2016-04-13 at 17:15 -0700, Paul Mandeltort wrote:

> Also make sure you have a beefy amount of RAM. Eclipse on its own needs at least 2 GB on top of your regular OS overhead, and if you’re running OFbiz locally you want at least an additional gig or two. Your initial compile when you will always take much longer as well.
>
> These days I wouldn’t touch an ofbiz project with a development machine that has less than 8 GB.
>
> > On Apr 13, 2016, at 4:50 PM, Jeremy Olmstead <[hidden email]> wrote:
> >
> > It probably depends on your system, but when I restart, it is back up and
> > running in about 15 seconds.
> > On Apr 13, 2016 2:11 PM, "anon" <[hidden email]> wrote:
> >
> >> Hello List,
> >> I have been looking at the tutorials on youtube of the ofbiz framework and
> >> I was wondering what the development experience look like. I noticed in the
> >> vid that the server has to be restarted frequently and that the startup
> >> time can take more that 5 min. Is that really what is going on?
> >> After seeing that, I tried the moqui framework, because I am looking for a
> >> fully loaded opensource ecommerce framework. Sadly, moqui uses gradle and I
> >> do not have a good experience with gradle. It is just too slow for my
> >> taste. Is there any trick that you guys use to speed up thae ofbiz startup
> >> time or do you guys just live with it? I left Javaland years ago because of
> >> that issue...
> >> Thanks.
> >>
>


Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Development

marcopaul
Sounds like you are making the common amatuer mistake of confusing enterprise java systems for desktop java apps. Please don’t show up and start bashing a technology on its users list without understanding the technology, it’s unprofessional.

The majority of customizable business logic in OFBiz lives in groovy scripts or simple XML-based scripts and definitions.

Read the tutorial to see how:
https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide <https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Tutorial+-+A+Beginners+Development+Guide>

A development machine is a modest modern desktop workstation running a modern OS (Win 10, Mac OS, etc) running both a massive IDE like Eclipse AND the complete OFBiz application+database on the same machine, working with relatively complex data sets of a modestly-sized business. You need 4GB just to open an internet browser these days.

Hell, a modern cell phones have 2GB of RAM.

There are tons of resources to learn how OFBiz and other enterprise java applications fit together.
https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Related+Books <https://cwiki.apache.org/confluence/display/OFBIZ/OFBiz+Related+Books>

If you are doing solely an e-commerce application, just go use magento, squarespace, or hell even GoDaddy. Ofbiz is far more powerful and covers an order of magnitude more functionality across over a dozens more business areas than standard e-commerce packages, but it does take longer to get comfortable in, especially when you’re new to Java enterprise development.

—P


> On Apr 13, 2016, at 10:39 PM, John Spikowski <[hidden email]> wrote:
>
> "These days I wouldn’t touch an ofbiz project with a development machine
> that has less than 8 GB. "
>
> Thanks. You just redefined the 'monster' for me. Java is a resource hog
> and always has been. The only reason OFBiz runs as fast as it does is
> because the complete ERP system is cached in memory. No one has admitted
> to all cores pegging at 100% when a request is made.
>
> This is a painted elephant that is expense to feed and keep healthy.
>
> I'm sure there is salvageable business logic stored in the JAR but I'm
> not going to try and flush it out from the framework.
>
>
> On Wed, 2016-04-13 at 17:15 -0700, Paul Mandeltort wrote:
>> Also make sure you have a beefy amount of RAM. Eclipse on its own needs at least 2 GB on top of your regular OS overhead, and if you’re running OFbiz locally you want at least an additional gig or two. Your initial compile when you will always take much longer as well.
>>
>> These days I wouldn’t touch an ofbiz project with a development machine that has less than 8 GB.
>>
>>> On Apr 13, 2016, at 4:50 PM, Jeremy Olmstead <[hidden email]> wrote:
>>>
>>> It probably depends on your system, but when I restart, it is back up and
>>> running in about 15 seconds.
>>> On Apr 13, 2016 2:11 PM, "anon" <[hidden email]> wrote:
>>>
>>>> Hello List,
>>>> I have been looking at the tutorials on youtube of the ofbiz framework and
>>>> I was wondering what the development experience look like. I noticed in the
>>>> vid that the server has to be restarted frequently and that the startup
>>>> time can take more that 5 min. Is that really what is going on?
>>>> After seeing that, I tried the moqui framework, because I am looking for a
>>>> fully loaded opensource ecommerce framework. Sadly, moqui uses gradle and I
>>>> do not have a good experience with gradle. It is just too slow for my
>>>> taste. Is there any trick that you guys use to speed up thae ofbiz startup
>>>> time or do you guys just live with it? I left Javaland years ago because of
>>>> that issue...
>>>> Thanks.
>>>>
>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Development

Jacques Le Roux
Administrator
In reply to this post by John Spikowski
FYI: we run 3 OFBiz instances (trunk, stable - aka R13.07 branch - and old - aka R12.04 branch) on the ASF OFBiz-VM machine with only *4GB*, try it
yourself:
https://demo-trunk-ofbiz.apache.org/catalog/control/main?USERNAME=admin&PASSWORD=ofbiz&JavaScriptEnabled=Y
https://demo-stable-ofbiz.apache.org/catalog/control/main?USERNAME=admin&PASSWORD=ofbiz&JavaScriptEnabled=Y
https://demo-old-ofbiz.apache.org/catalog/control/main?USERNAME=admin&PASSWORD=ofbiz&JavaScriptEnabled=Y

They automatically restart every Europe night with a complete DBs reinstall.

But it's right that for developing it's better to use more memory because you have other tools around.

And I'd not use the configuration above on a production server!
For a serious project you might even need a cluster with several webapp machines and several DBMS machines.
Then be sure to use the "Distributed Entity Cache Clear (DCC) Mechanism"
https://cwiki.apache.org/confluence/display/OFBIZ/Distributed+Entity+Cache+Clear+%28DCC%29+Mechanism

The reason the Java ecosystem is so widespread is also because it easily scales well...

Jacques


Le 14/04/2016 07:39, John Spikowski a écrit :

> "These days I wouldn’t touch an ofbiz project with a development machine
> that has less than 8 GB. "
>
> Thanks. You just redefined the 'monster' for me. Java is a resource hog
> and always has been. The only reason OFBiz runs as fast as it does is
> because the complete ERP system is cached in memory. No one has admitted
> to all cores pegging at 100% when a request is made.
>
> This is a painted elephant that is expense to feed and keep healthy.
>
> I'm sure there is salvageable business logic stored in the JAR but I'm
> not going to try and flush it out from the framework.
>
>
> On Wed, 2016-04-13 at 17:15 -0700, Paul Mandeltort wrote:
>> Also make sure you have a beefy amount of RAM. Eclipse on its own needs at least 2 GB on top of your regular OS overhead, and if you’re running OFbiz locally you want at least an additional gig or two. Your initial compile when you will always take much longer as well.
>>
>> These days I wouldn’t touch an ofbiz project with a development machine that has less than 8 GB.
>>
>>> On Apr 13, 2016, at 4:50 PM, Jeremy Olmstead <[hidden email]> wrote:
>>>
>>> It probably depends on your system, but when I restart, it is back up and
>>> running in about 15 seconds.
>>> On Apr 13, 2016 2:11 PM, "anon" <[hidden email]> wrote:
>>>
>>>> Hello List,
>>>> I have been looking at the tutorials on youtube of the ofbiz framework and
>>>> I was wondering what the development experience look like. I noticed in the
>>>> vid that the server has to be restarted frequently and that the startup
>>>> time can take more that 5 min. Is that really what is going on?
>>>> After seeing that, I tried the moqui framework, because I am looking for a
>>>> fully loaded opensource ecommerce framework. Sadly, moqui uses gradle and I
>>>> do not have a good experience with gradle. It is just too slow for my
>>>> taste. Is there any trick that you guys use to speed up thae ofbiz startup
>>>> time or do you guys just live with it? I left Javaland years ago because of
>>>> that issue...
>>>> Thanks.
>>>>
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Development

Jacques Le Roux
Administrator
In reply to this post by james_sg
Hi James,

Interesting notably in debugging cases!
Is it better than what is OOTB in Eclipse? Is it better than what it forked http://ssw.jku.at/dcevm/ ?

Thanks

Jacques

Le 14/04/2016 00:38, james_sg a écrit :

> Hi anon,
>
> To add on, if you are using Eclipse IDE for development, check out
> https://dcevm.github.io/. DCEVM allows you to code java and test the change
> without restarting the whole application. Eclipse IDE prompts you whenever
> DCEVM cannot push the change properly, and you will know the application
> requires a restart.
>
> Regards,
> James
>
>
> Pierre Smits wrote
>> Hi anon &lt;
>> sa_reminder@
>> &gt;.
>>
>> Jumpstarting development is easy:
>>
>>     1.  Use the ./ant create-component task to create a complete skeleton
>> of
>>     a hot-deployment component. And after an ./ant build start you are
>> ready to
>>     use the skeleton. Just make sure that you load the component's
>> permissions
>>     after the startup (in webtools)
>>     2. You can create widgets (screens, forms) without it requiring a
>> restart
>>     3. You can can create freemarker templates and groovy scripts without
>> it
>>     requiring a restart
>>     4. You can create request-map and view-map URI's without it requiring a
>>     restart
>>
>> The elements of a component requiring a restart is services and Java code
>> (as it needs to be compiled. Adding new labels to the Label.xml files of
>> the component doesn't require a restart, but the cache needs to be flushed
>> to see the effects (again this is done in the webtools component).
>>
>> I trust the above will help you jumpstart your development.
>>
>> Best regards,
>>
>> Pierre Smits
>>
>> ORRTIZ.COM &lt;http://www.orrtiz.com&gt;
>> OFBiz based solutions & services
>>
>> OFBiz Extensions Marketplace
>> http://oem.ofbizci.net/oci-2/
>>
>> On Wed, Apr 13, 2016 at 9:23 PM, Nick Rosser &lt;
>> nrosser@
>> &gt; wrote:
>>
>>> You could check-out BigFish -- an open-source eCommerce framework that
>>> complements OFBiz. Bigfish.solveda.com.
>>> Nick
>>>
>>> -----Original Message-----
>>> From: anon [mailto:
>> sa_reminder@
>> ]
>>> Sent: Wednesday, April 13, 2016 3:12 PM
>>> To:
>> user@.apache
>>> Subject: Ofbiz Development
>>>
>>> Hello List,
>>> I have been looking at the tutorials on youtube of the ofbiz framework
>>> and
>>> I was wondering what the development experience look like. I noticed in
>>> the
>>> vid that the server has to be restarted frequently and that the startup
>>> time can take more that 5 min. Is that really what is going on?
>>> After seeing that, I tried the moqui framework, because I am looking for
>>> a
>>> fully loaded opensource ecommerce framework. Sadly, moqui uses gradle and
>>> I
>>> do not have a good experience with gradle. It is just too slow for my
>>> taste. Is there any trick that you guys use to speed up thae ofbiz
>>> startup
>>> time or do you guys just live with it? I left Javaland years ago because
>>> of
>>> that issue...
>>> Thanks.
>>>
>
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/Ofbiz-Development-tp4679376p4679405.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>

Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Development

John Spikowski
In reply to this post by marcopaul
On Wed, 2016-04-13 at 23:49 -0700, Paul Mandeltort wrote:
> Sounds like you are making the common amatuer mistake of confusing
> enterprise java systems for desktop java apps. Please don’t show up and
> start bashing a technology on its users list without understanding the
> technology, it’s unprofessional.

I will be happy to give you a lesson what an 'amateur' can do. While
you're playing with yourself in a JAR, I'll show you how it's suppose to
be done.




Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Development

james_sg
In reply to this post by Jacques Le Roux
Hi Jacques,

The forked project supports recent Java version 8, while the original project is no longer in development.
I uses it with Eclipse so that changed .java files are built automatically into .class files, while
DCEVM detects changed class files and load it directly into the JVM.

Eclipse will warn me whenever .class files and JVM is not up to date. So I know when I need to restart OFBiz from Eclipse.

DCEVM is a time-saver for me since I code mostly in Java :)

Regards,
James

Jacques Le Roux wrote
Hi James,

Interesting notably in debugging cases!
Is it better than what is OOTB in Eclipse? Is it better than what it forked http://ssw.jku.at/dcevm/ ?

Thanks

Jacques

Le 14/04/2016 00:38, james_sg a écrit :
> Hi anon,
>
> To add on, if you are using Eclipse IDE for development, check out
> https://dcevm.github.io/. DCEVM allows you to code java and test the change
> without restarting the whole application. Eclipse IDE prompts you whenever
> DCEVM cannot push the change properly, and you will know the application
> requires a restart.
>
> Regards,
> James
>
>
> Pierre Smits wrote
>> Hi anon <
>> sa_reminder@
>> >.
>>
>> Jumpstarting development is easy:
>>
>>     1.  Use the ./ant create-component task to create a complete skeleton
>> of
>>     a hot-deployment component. And after an ./ant build start you are
>> ready to
>>     use the skeleton. Just make sure that you load the component's
>> permissions
>>     after the startup (in webtools)
>>     2. You can create widgets (screens, forms) without it requiring a
>> restart
>>     3. You can can create freemarker templates and groovy scripts without
>> it
>>     requiring a restart
>>     4. You can create request-map and view-map URI's without it requiring a
>>     restart
>>
>> The elements of a component requiring a restart is services and Java code
>> (as it needs to be compiled. Adding new labels to the Label.xml files of
>> the component doesn't require a restart, but the cache needs to be flushed
>> to see the effects (again this is done in the webtools component).
>>
>> I trust the above will help you jumpstart your development.
>>
>> Best regards,
>>
>> Pierre Smits
>>
>> ORRTIZ.COM <http://www.orrtiz.com>
>> OFBiz based solutions & services
>>
>> OFBiz Extensions Marketplace
>> http://oem.ofbizci.net/oci-2/
>>
>> On Wed, Apr 13, 2016 at 9:23 PM, Nick Rosser <
>> nrosser@
>> > wrote:
>>
>>> You could check-out BigFish -- an open-source eCommerce framework that
>>> complements OFBiz. Bigfish.solveda.com.
>>> Nick
>>>
>>> -----Original Message-----
>>> From: anon [mailto:
>> sa_reminder@
>> ]
>>> Sent: Wednesday, April 13, 2016 3:12 PM
>>> To:
>> user@.apache
>>> Subject: Ofbiz Development
>>>
>>> Hello List,
>>> I have been looking at the tutorials on youtube of the ofbiz framework
>>> and
>>> I was wondering what the development experience look like. I noticed in
>>> the
>>> vid that the server has to be restarted frequently and that the startup
>>> time can take more that 5 min. Is that really what is going on?
>>> After seeing that, I tried the moqui framework, because I am looking for
>>> a
>>> fully loaded opensource ecommerce framework. Sadly, moqui uses gradle and
>>> I
>>> do not have a good experience with gradle. It is just too slow for my
>>> taste. Is there any trick that you guys use to speed up thae ofbiz
>>> startup
>>> time or do you guys just live with it? I left Javaland years ago because
>>> of
>>> that issue...
>>> Thanks.
>>>
>
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/Ofbiz-Development-tp4679376p4679405.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Development

Jacques Le Roux
Administrator
Great, I'll try it, thanks!

Jacques

Le 14/04/2016 10:15, james_sg a écrit :

> Hi Jacques,
>
> The forked project supports recent Java version 8, while the original
> project is no longer in development.
> I uses it with Eclipse so that changed .java files are built automatically
> into .class files, while
> DCEVM detects changed class files and load it directly into the JVM.
>
> Eclipse will warn me whenever .class files and JVM is not up to date. So I
> know when I need to restart OFBiz from Eclipse.
>
> DCEVM is a time-saver for me since I code mostly in Java :)
>
> Regards,
> James
>
>
> Jacques Le Roux wrote
>> Hi James,
>>
>> Interesting notably in debugging cases!
>> Is it better than what is OOTB in Eclipse? Is it better than what it
>> forked http://ssw.jku.at/dcevm/ ?
>>
>> Thanks
>>
>> Jacques
>>
>> Le 14/04/2016 00:38, james_sg a écrit :
>>> Hi anon,
>>>
>>> To add on, if you are using Eclipse IDE for development, check out
>>> https://dcevm.github.io/. DCEVM allows you to code java and test the
>>> change
>>> without restarting the whole application. Eclipse IDE prompts you
>>> whenever
>>> DCEVM cannot push the change properly, and you will know the application
>>> requires a restart.
>>>
>>> Regards,
>>> James
>>>
>>>
>>> Pierre Smits wrote
>>>> Hi anon &lt;
>>>> sa_reminder@
>>>> &gt;.
>>>>
>>>> Jumpstarting development is easy:
>>>>
>>>>      1.  Use the ./ant create-component task to create a complete
>>>> skeleton
>>>> of
>>>>      a hot-deployment component. And after an ./ant build start you are
>>>> ready to
>>>>      use the skeleton. Just make sure that you load the component's
>>>> permissions
>>>>      after the startup (in webtools)
>>>>      2. You can create widgets (screens, forms) without it requiring a
>>>> restart
>>>>      3. You can can create freemarker templates and groovy scripts
>>>> without
>>>> it
>>>>      requiring a restart
>>>>      4. You can create request-map and view-map URI's without it
>>>> requiring a
>>>>      restart
>>>>
>>>> The elements of a component requiring a restart is services and Java
>>>> code
>>>> (as it needs to be compiled. Adding new labels to the Label.xml files of
>>>> the component doesn't require a restart, but the cache needs to be
>>>> flushed
>>>> to see the effects (again this is done in the webtools component).
>>>>
>>>> I trust the above will help you jumpstart your development.
>>>>
>>>> Best regards,
>>>>
>>>> Pierre Smits
>>>>
>>>> ORRTIZ.COM &lt;http://www.orrtiz.com&gt;
>>>> OFBiz based solutions & services
>>>>
>>>> OFBiz Extensions Marketplace
>>>> http://oem.ofbizci.net/oci-2/
>>>>
>>>> On Wed, Apr 13, 2016 at 9:23 PM, Nick Rosser &lt;
>>>> nrosser@
>>>> &gt; wrote:
>>>>
>>>>> You could check-out BigFish -- an open-source eCommerce framework that
>>>>> complements OFBiz. Bigfish.solveda.com.
>>>>> Nick
>>>>>
>>>>> -----Original Message-----
>>>>> From: anon [mailto:
>>>> sa_reminder@
>>>> ]
>>>>> Sent: Wednesday, April 13, 2016 3:12 PM
>>>>> To:
>>>> user@.apache
>>>>> Subject: Ofbiz Development
>>>>>
>>>>> Hello List,
>>>>> I have been looking at the tutorials on youtube of the ofbiz framework
>>>>> and
>>>>> I was wondering what the development experience look like. I noticed in
>>>>> the
>>>>> vid that the server has to be restarted frequently and that the startup
>>>>> time can take more that 5 min. Is that really what is going on?
>>>>> After seeing that, I tried the moqui framework, because I am looking
>>>>> for
>>>>> a
>>>>> fully loaded opensource ecommerce framework. Sadly, moqui uses gradle
>>>>> and
>>>>> I
>>>>> do not have a good experience with gradle. It is just too slow for my
>>>>> taste. Is there any trick that you guys use to speed up thae ofbiz
>>>>> startup
>>>>> time or do you guys just live with it? I left Javaland years ago
>>>>> because
>>>>> of
>>>>> that issue...
>>>>> Thanks.
>>>>>
>>>
>>>
>>>
>>> --
>>> View this message in context:
>>> http://ofbiz.135035.n4.nabble.com/Ofbiz-Development-tp4679376p4679405.html
>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>>
>
>
>
>
> --
> View this message in context: http://ofbiz.135035.n4.nabble.com/Ofbiz-Development-tp4679376p4679420.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
>

Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Development

taher
In reply to this post by John Spikowski
Hi John,

Most of the users in the mailing list were trying to give you constructive
feedback (in their unpaid time) to try and help you out in understanding
the technology behind ofbiz to which you have been confrontational.

It is definitely okay for your to be unhappy with Java or ofbiz or any
other technology. I would kindly suggest however that you maintain email
etiquette for your fellow colleagues on the list. We are all here as a
community trying to help each other and learn something in the process.

Thank you for your understanding.

Taher Alkhateeb

On Thu, Apr 14, 2016 at 11:27 AM, John Spikowski <[hidden email]>
wrote:

> On Wed, 2016-04-13 at 23:49 -0700, Paul Mandeltort wrote:
> > Sounds like you are making the common amatuer mistake of confusing
> > enterprise java systems for desktop java apps. Please don’t show up and
> > start bashing a technology on its users list without understanding the
> > technology, it’s unprofessional.
>
> I will be happy to give you a lesson what an 'amateur' can do. While
> you're playing with yourself in a JAR, I'll show you how it's suppose to
> be done.
>
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Development

John Spikowski
Taher,

I think it's best I unsubscribe from the list as I don't want to hurt
this project with my views about Java. Thank you everyone for putting up
with my sour face.

John


On Thu, 2016-04-14 at 13:14 +0300, Taher Alkhateeb wrote:

> Hi John,
>
> Most of the users in the mailing list were trying to give you constructive
> feedback (in their unpaid time) to try and help you out in understanding
> the technology behind ofbiz to which you have been confrontational.
>
> It is definitely okay for your to be unhappy with Java or ofbiz or any
> other technology. I would kindly suggest however that you maintain email
> etiquette for your fellow colleagues on the list. We are all here as a
> community trying to help each other and learn something in the process.
>
> Thank you for your understanding.
>
> Taher Alkhateeb
>
> On Thu, Apr 14, 2016 at 11:27 AM, John Spikowski <[hidden email]>
> wrote:
>
> > On Wed, 2016-04-13 at 23:49 -0700, Paul Mandeltort wrote:
> > > Sounds like you are making the common amatuer mistake of confusing
> > > enterprise java systems for desktop java apps. Please don’t show up and
> > > start bashing a technology on its users list without understanding the
> > > technology, it’s unprofessional.
> >
> > I will be happy to give you a lesson what an 'amateur' can do. While
> > you're playing with yourself in a JAR, I'll show you how it's suppose to
> > be done.
> >
> >
> >
> >
> >


Reply | Threaded
Open this post in threaded view
|

Re: Ofbiz Development

taher
Hi John,

Everyone is entitled to their opinion on any technology and we get many
heated discussions on the mailing list. I love these debates because I
learn so much in the process. I am only suggesting that we maintain a
friendly exchange and perhaps avoiding taking things personal.

We do not like losing people in the community and we always welcome new
comers.

Taher Alkhateeb
On Apr 14, 2016 6:05 PM, "John Spikowski" <[hidden email]> wrote:

> Taher,
>
> I think it's best I unsubscribe from the list as I don't want to hurt
> this project with my views about Java. Thank you everyone for putting up
> with my sour face.
>
> John
>
>
> On Thu, 2016-04-14 at 13:14 +0300, Taher Alkhateeb wrote:
> > Hi John,
> >
> > Most of the users in the mailing list were trying to give you
> constructive
> > feedback (in their unpaid time) to try and help you out in understanding
> > the technology behind ofbiz to which you have been confrontational.
> >
> > It is definitely okay for your to be unhappy with Java or ofbiz or any
> > other technology. I would kindly suggest however that you maintain email
> > etiquette for your fellow colleagues on the list. We are all here as a
> > community trying to help each other and learn something in the process.
> >
> > Thank you for your understanding.
> >
> > Taher Alkhateeb
> >
> > On Thu, Apr 14, 2016 at 11:27 AM, John Spikowski <
> [hidden email]>
> > wrote:
> >
> > > On Wed, 2016-04-13 at 23:49 -0700, Paul Mandeltort wrote:
> > > > Sounds like you are making the common amatuer mistake of confusing
> > > > enterprise java systems for desktop java apps. Please don’t show up
> and
> > > > start bashing a technology on its users list without understanding
> the
> > > > technology, it’s unprofessional.
> > >
> > > I will be happy to give you a lesson what an 'amateur' can do. While
> > > you're playing with yourself in a JAR, I'll show you how it's suppose
> to
> > > be done.
> > >
> > >
> > >
> > >
> > >
>
>
>
12