Thank you Artur, it make sense.
oVirt itself recommend a small set of supported browsers.
I will try this approach on building the ovirt-engine rpm package.

Regards,
Marcos

From: Artur Socha <aso...@redhat.com>
Sent: quarta-feira, 27 de outubro de 2021 05:20
To: Sandro Bonazzola <sbona...@redhat.com>
Cc: Marcos Sungaila <marcos.sunga...@oracle.com>; Martin Perina 
<mper...@redhat.com>; oVirt development list <devel@ovirt.org>
Subject: [External] : Re: [ovirt-devel] Java Xmx limit building ovirt-engine 
package

Hi Marcos,
I believe you hit the issue because of gwt 'compiler' which by default tries to 
prepare gwt distro for all defined browsers(user agents). It will literally eat 
all the memory that is available :/.
If you need it for development purposes then you can use "ovirt_build_minimal 
1" make the build much faster and not that memory hungry:
$ rm ovirt-engine-*_master.tar.gz ; make clean && make dist && time rpmbuild 
-D"ovirt_build_minimal 1" -tb     ovirt-engine-*_master.tar.gz

If you want more user agents supported you can define them as [1]:
-D"ovirt_build_user_agent <comma separated list of user agents>"

[1] 
https://github.com/oVirt/ovirt-engine/blob/master/README.adoc<https://urldefense.com/v3/__https:/github.com/oVirt/ovirt-engine/blob/master/README.adoc__;!!ACWV5N9M2RV99hQ!Y5huICYJkjTbHFH3MijuB0wkD0JeAKhPU8eGqCkwZAw4bhzr69guAL1YD_cJPK2nauU$>

I hope that helps.
Artur



On Tue, Oct 26, 2021 at 7:14 PM Sandro Bonazzola 
<sbona...@redhat.com<mailto:sbona...@redhat.com>> wrote:
+Martin Perina<mailto:mper...@redhat.com> , +Artur 
Socha<mailto:aso...@redhat.com> ?

Il giorno mar 26 ott 2021 alle ore 17:01 Marcos Sungaila 
<marcos.sunga...@oracle.com<mailto:marcos.sunga...@oracle.com>> ha scritto:
Hello,

I’m facing a weird behave when rebuilding the ovirt-engine rpm package.
When I run a rpmbuild -ba ovirt-engine.spec, it fails with the following error:

[ERROR] Out of memory; to increase the amount of memory
Also, it indicates the option -Xmx8192M in the pom.xml file.
The weird part is that building the application in the command line works fine 
but not in the rpmbuild, neither using a mock build system.
I checked this page 
https://github.com/oVirt/ovirt-engine<https://urldefense.com/v3/__https:/github.com/oVirt/ovirt-engine__;!!ACWV5N9M2RV99hQ!Y5huICYJkjTbHFH3MijuB0wkD0JeAKhPU8eGqCkwZAw4bhzr69guAL1YD_cJ4bJ-drk$>
 from GitHub and tested those variables with no success.

Can anyone point me where I can find how to use those variables when building 
the package or have experience building this package/application to explain it?

Thank you in advance for any help.

Regards,
Marcos

_______________________________________________
Devel mailing list -- devel@ovirt.org<mailto:devel@ovirt.org>
To unsubscribe send an email to 
devel-le...@ovirt.org<mailto:devel-le...@ovirt.org>
Privacy Statement: 
https://www.ovirt.org/privacy-policy.html<https://urldefense.com/v3/__https:/www.ovirt.org/privacy-policy.html__;!!ACWV5N9M2RV99hQ!Y5huICYJkjTbHFH3MijuB0wkD0JeAKhPU8eGqCkwZAw4bhzr69guAL1YD_cJDodv9_E$>
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/<https://urldefense.com/v3/__https:/www.ovirt.org/community/about/community-guidelines/__;!!ACWV5N9M2RV99hQ!Y5huICYJkjTbHFH3MijuB0wkD0JeAKhPU8eGqCkwZAw4bhzr69guAL1YD_cJj9RAmO8$>
List Archives: 
https://lists.ovirt.org/archives/list/devel@ovirt.org/message/DNRP3JCD6VEETCRGFIILOOUDO2LBQFTQ/<https://urldefense.com/v3/__https:/lists.ovirt.org/archives/list/devel@ovirt.org/message/DNRP3JCD6VEETCRGFIILOOUDO2LBQFTQ/__;!!ACWV5N9M2RV99hQ!Y5huICYJkjTbHFH3MijuB0wkD0JeAKhPU8eGqCkwZAw4bhzr69guAL1YD_cJ1BV_n_E$>


--

Sandro Bonazzola

MANAGER, SOFTWARE ENGINEERING, EMEA R&D RHV

Red Hat 
EMEA<https://urldefense.com/v3/__https:/www.redhat.com/__;!!ACWV5N9M2RV99hQ!Y5huICYJkjTbHFH3MijuB0wkD0JeAKhPU8eGqCkwZAw4bhzr69guAL1YD_cJmInJGic$>

sbona...@redhat.com<mailto:sbona...@redhat.com>
[https://static.redhat.com/libs/redhat/brand-assets/2/corp/logo--200.png]<https://urldefense.com/v3/__https:/www.redhat.com/__;!!ACWV5N9M2RV99hQ!Y5huICYJkjTbHFH3MijuB0wkD0JeAKhPU8eGqCkwZAw4bhzr69guAL1YD_cJmInJGic$>
Red Hat respects your work life balance. Therefore there is no need to answer 
this email out of your office hours.



--
Artur Socha
Senior Software Engineer, RHV
Red Hat
_______________________________________________
Devel mailing list -- devel@ovirt.org
To unsubscribe send an email to devel-le...@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: 
https://www.ovirt.org/community/about/community-guidelines/
List Archives: 
https://lists.ovirt.org/archives/list/devel@ovirt.org/message/HVUXEUEVEVCWDTKRKE47E6GVAUPMEPMI/

Reply via email to