Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-dev] Improving m2e performance
  • From: Carsten Pfeiffer <carsten.pfeiffer@xxxxxxxx>
  • Date: Fri, 28 May 2021 15:05:29 +0000
  • Accept-language: de-DE, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=gebit.de; dmarc=pass action=none header.from=gebit.de; dkim=pass header.d=gebit.de; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ZYkDHkqUxXTaoIzbTBio60u9VRBi696FI0I6wJEpxdc=; b=dsZyWG1C6IllmyzPM5FaVO3FfoXB87Sz+t/rql1Fy5AhqUgsx6wvci5T7woknF97kbngV5KICBY6F4vJcGE/eOznaWhrgAa2FGzMJnwoFNG13+lMSTqeFEGfw+4NaFuKB4/MgvS0+l2KufCc5SGg3Rf4QjCepgyiuzgW+0Fbn/R5hREYuoYT52+EG77dv2Ck9fo2gP0U/WdaXLsFsegwSwQH8H+NIWullXJz/iJAKXcFUcbQEZJqz5rzc9l4S2iJ/P+vKN38DguXjOhaabcCtEEaA+fofoQtwiseg2OF99D6FAs7lpGGRfdkiszyu2k8+GDIWjmApNANY9mSmBitNQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fbS0BlPgZliV3yuI37fwOVFtHEUJ2jrCASSAjxsil+coFK1TTs4PqbNlE73kmqQvZmFt0J6pewdJWlLeRJJmayFC1TFUYpLa8kQBQNSTMM/H+Fwdh6v7L01KLD7DANO8/3NztVJaxkfUxwJ1Lg/AtGmrm3N0wXLu1zvDcRmp63ZwBpzQPHdCCcTewvI2vD0ryb4AzkkMgiJFynROWPp7nLCel1V0Gu3JUEyjanHvj7BmlpDLqgydpAuGtadP1eL3wG0Dj1HwSKedsz2GKVKsfXqoDQsEtyMSxsFgxG38sJlQYAfW+paf9Gfno3D6UZsfg+C6qWrlctgViCP+VeG9sw==
  • Delivered-to: m2e-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/m2e-dev/>
  • List-help: <mailto:m2e-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/m2e-dev>, <mailto:m2e-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/m2e-dev>, <mailto:m2e-dev-request@eclipse.org?subject=unsubscribe>
  • Thread-index: AQHXU8BcnZ+YNHB2ykG8VBjTcw7KPar45YKAgAAXHic=
  • Thread-topic: [m2e-dev] Improving m2e performance

There is the very handy "Maven Workspace Build" view in eclipse, that can tell you how often builds are triggered, and by which resources. Just open the view and deactivate the "Suspend" button.

Cheers
Carsten 


Von: m2e-dev <m2e-dev-bounces@xxxxxxxxxxx> im Auftrag von Christoph Läubrich <laeubi@xxxxxxxxxxxxxx>
Gesendet: Freitag, 28. Mai 2021 15:36
An: m2e-dev@xxxxxxxxxxx <m2e-dev@xxxxxxxxxxx>
Betreff: Re: [m2e-dev] Improving m2e performance
 
Have you tried to attach a profile (e.g. JProfiler) to get some feeling
where the bottlenecks are? Are you sure that m2e is actually triggering
the builds (e.g. do you see code getting generated repeatably) or is it
more JDT itself rebuilding because of changed code parts?


Am 28.05.21 um 14:53 schrieb Thomas Reinhardt:
>
> Hello List!
>
> TLDR:
> We have a large maven build (200+ projects) which is very slow to build
> in eclipse. I have built tools and procedures to be able to work with
> only a few projects open comfortably. So this is not a cry for help. I
> want to help improve m2e and I think this might be an interesting use
> case/benchmark.
>
> Long version:
> As stated above our whole product consists of over 200 different
> projects. A full maven build (without tests) on my laptop takes about 15
> minutes on the command line ("mvn -DskipTests clean package"). In
> eclipse the build often does not finish at all or needs hours. I can
> speed up things when I open projects in groups and wait for the build to
> finish. Even with that workaround it might take me 2 hours until I have
> opened all projects. This seems very wrong as eclipse should at least
> roughly match the command line build speed.
>
> To be clear: in my normal daily work I don't have to open all projects.
> I only ever do that for complex refactorings and things like that.
> Normal daily performance is no problem.
> Having said that: I know from the "all projects open" use case that m2e
> does have some issues and builds projects more than once. It is just not
> noticeable when I only have a dozen projects open.
>
> So: I am offering to do any tests some of you might want to do me, give
> remote access or even send you the code. The last one might need some
> work on my side to remove non-public dependencies, maven plugins etc but
> that should not be a problem.
>
> I did try to cut the problem down to a few single offending projects but
> performance just gradually improved/worsened (depending on your
> viewpoint). So I think it is really down to m2e building projects too
> often. Also, the builds are (in my opinion) not very complex: we do
> generate some code from xsd and there is one in-house built maven plugin
> that generates hibernate code from an xml file. Also, this is a javaee
> product (that ultimately generates an ear file and a standalone client)
> and we use m2e-wtp of course.
> Also, I tried to debug m2e myself but I quickly realized that I don't
> know enough of the eclipse build model to make any sense of the code.
>
> This is arguably a complex setup and hard to debug but it might just
> make m2e so much better. Please tell me if there is interest to
> investigate the performance issue.
>
>
>
> PS:
> For completeness my system specs:
> debian 10, 32GB ram, intel core i7-8550U, SSD, eclipse 2021-03
> m2e 1.17.2.20210219-1922
>
>
>
> _______________________________________________
> m2e-dev mailing list
> m2e-dev@xxxxxxxxxxx
> To unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/m2e-dev
_______________________________________________
m2e-dev mailing list
m2e-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/m2e-dev

Attachment: smime.p7s
Description: S/MIME cryptographic signature


Back to the top