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 <asocha(a)redhat.com>
Sent: quarta-feira, 27 de outubro de 2021 05:20
To: Sandro Bonazzola <sbonazzo(a)redhat.com>
Cc: Marcos Sungaila <marcos.sungaila(a)oracle.com>; Martin Perina
<mperina(a)redhat.com>; oVirt development list <devel(a)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://...
I hope that helps.
Artur
On Tue, Oct 26, 2021 at 7:14 PM Sandro Bonazzola
<sbonazzo@redhat.com<mailto:sbonazzo@redhat.com>> wrote:
+Martin Perina<mailto:mperina@redhat.com> , +Artur
Socha<mailto:asocha@redhat.com> ?
Il giorno mar 26 ott 2021 alle ore 17:01 Marcos Sungaila
<marcos.sungaila@oracle.com<mailto: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<https://urldefense.com/v3/__http...
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-leave@ovirt.org<mailto:devel-leave@ovirt.org>
Privacy Statement:
https://www.ovirt.org/privacy-policy.html<https://urldefense.com/v3/__...
oVirt Code of Conduct:
https://www.ovirt.org/community/about/community-guidelines/<https://ur...
List Archives:
https://lists.ovirt.org/archives/list/devel@ovirt.org/message/DNRP3JCD6VE...
--
Sandro Bonazzola
MANAGER, SOFTWARE ENGINEERING, EMEA R&D RHV
Red Hat
EMEA<https://urldefense.com/v3/__https:/www.redhat.com/__;!!ACWV5N9M2R...
sbonazzo@redhat.com<mailto:sbonazzo@redhat.com>
[
https://static.redhat.com/libs/redhat/brand-assets/2/corp/logo--200.png]&...
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