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

I hope that helps.
Artur



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

Il giorno mar 26 ott 2021 alle ore 17:01 Marcos Sungaila <marcos.sungaila@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 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
To unsubscribe send an email to devel-leave@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/DNRP3JCD6VEETCRGFIILOOUDO2LBQFTQ/


--

Sandro Bonazzola

MANAGER, SOFTWARE ENGINEERING, EMEA R&D RHV

Red Hat EMEA

sbonazzo@redhat.com   

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