Re: [DISCUSSION] Best of both Groovy worlds: compile and on the fly

2019-09-19 Thread Paul Foxworthy
Thanks Jacques,

Yes, on the fly rebuild is very cool. This will encourage and accelerate
moving Java services to Groovy, I think.

Big +1 from me.

Cheers

Paul

On Mon, 16 Sep 2019 at 20:29, Jacques Le Roux 
wrote:

> Hi Devs,
>
> While working on OFBIZ-10226 "Adds groovyScripts in the Gradle sourceSets"
> I discussed with Mathieu and we had some ideas.
>
> Mathieu suggested to move Groovy scripts from /groovyScripts/
> to/src/main/groovy/.
>
> I was initially reluctant because I love to be able to change things on
> the fly. That's why I liked Minilang and still like widgets, Freemarker
> templates and Groovy Scripts.
>
> We also know the advantages of compilation. But then I thought: why not
> have best of both Groovy worlds: compile and on the fly.
>
> I tried and it works. So here is the (simple) plan:
>
>  1. We move all Groovy scripts from /groovyScripts/ to /src/main/groovy/
>  2. We add the necessary packages names
>  3. Devs can then open "gradlew --continuous" in a terminal and let it
> like that. It will continuously build on any changes in Gradle sourcesets
>
> So, if you modify a Groovy scripts while running an OFBiz instance, the
> changes will be reflected in the instance and you can check possible syntax
> or
> alike issues in the terminal running the continuous build. It's very fast
> since only changes have an impact on the build.
>
> I'm sure there are other benefits to follow "the common convention of
> putting groovy compiled sources in ${COMPONENT}/src/main/groovy.", as
> suggested
> Mathieu.
>
> I see no disadvantages, do you? If nobody disagree with this idea, I'll
> create a Jira for that.
>
> Feedback welcome, thanks
>
> Jacques
>
>

-- 
Coherent Software Australia Pty Ltd
PO Box 2773
Cheltenham Vic 3192
Australia

Phone: +61 3 9585 6788
Web: http://www.coherentsoftware.com.au/
Email: i...@coherentsoftware.com.au


Re: Bug "scoreboard is full, not at MaxRequestWorkers" solved!

2019-09-19 Thread Jacques Le Roux

Thanks Nicolas,

Much appreciated!

Jacques

Le 19/09/2019 à 14:22, Nicola Mazzoni a écrit :

Hello All,

On a clustered installation we have two "front" nodes with OfBiz + Http2
(connected with Ajp). The system, even with modest loads, saturated the
memory and crashed the system signaling "scoreboard is full, not at
MaxRequestWorkers" in the logs.

Needless to say, the continuous cluster crashes and performance drops
caused us many problems with the customer!

Everything was due to a bug in Apache Http2 (Bug 53555), fixed in version
2.4.25.

After updating Apache http2 on all nodes, 3 months apart, after carrying
out several stress tests, the problem never reappeared.

I hope my "bad experience" can help anyone.

Regards



Bug "scoreboard is full, not at MaxRequestWorkers" solved!

2019-09-19 Thread Nicola Mazzoni
Hello All,

On a clustered installation we have two "front" nodes with OfBiz + Http2
(connected with Ajp). The system, even with modest loads, saturated the
memory and crashed the system signaling "scoreboard is full, not at
MaxRequestWorkers" in the logs.

Needless to say, the continuous cluster crashes and performance drops
caused us many problems with the customer!

Everything was due to a bug in Apache Http2 (Bug 53555), fixed in version
2.4.25.

After updating Apache http2 on all nodes, 3 months apart, after carrying
out several stress tests, the problem never reappeared.

I hope my "bad experience" can help anyone.

Regards

-- 
Nicola Mazzoni


*Mp Styl**e Srl*
via Meucci, 37
41019 Limidi di Soliera (MO)
T 059/684916
M 347/9905529

www.mpstyle.it