-
-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bnd resolver "hangs" #3201
Comments
"Bug" seems still to be present on 4.3.0-SNAPSHOT |
You might want to try different memory settings. At least in the IDE the resolver might "hang" which was "cured" by giving more memory (in my case going from 1024MB to 2048MB). |
I give it a new try using the most recent Bnd resolver Maven plugin snapshot. Machine: i7-4712HQ
The load of every CPU is something between 96 and 100%. I allowed to use max. 4G of heap ( The command runs over 10 minutes now. |
So, it failed again because of Java heap space. Command that has been executed:
So, you will see also the time (and as written above it fully load all my CPUs that time):
|
Would be be possible to get a look at the index file(s), and maybe the
bndrun file?
It would be nice to understand the scope of the work being done. I'm aware
of some issues caused by having too many fragments in your indexes but
can't be sure that's the issue you are having without looking at the
index(s).
- Ray
…On Fri, May 24, 2019 at 9:52 AM Markus Rathgeb ***@***.***> wrote:
So, it failed again because of Java heap space.
Command that has been executed:
$ time (MAVEN_OPTS="-Xmx4G" mvn -pl resolvebug-app -am bnd-indexer:index ***@***.*** bnd-resolver:resolve package)
So, you will see also the time (and as written above it fully load all my
CPUs that time):
...
[INFO]
[INFO] --- maven-jar-plugin:3.0.2:jar (default-jar) @ resolveapp-dummy ---
[INFO] Building jar: /home/maggu2810/data/shared/workspace/projects/de.maggu2810/bnd/bnd-resolvebug/resolveapp-dummy/target/resolveapp-dummy-1.0-SNAPSHOT.jar
[INFO]
[INFO] -------< de.maggu2810.playground.bnd.resolvebug:resolvebug-app >--------
[INFO] Building resolvebug-app 1.0-SNAPSHOT [3/3]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- bnd-indexer-maven-plugin:4.3.0-SNAPSHOT:index (default-cli) @ resolvebug-app ---
[INFO]
[INFO] --- bnd-indexer-maven-plugin:4.3.0-SNAPSHOT:index (test-index) @ resolvebug-app ---
[INFO]
[INFO] --- bnd-resolver-maven-plugin:4.3.0-SNAPSHOT:resolve (default-cli) @ resolvebug-app ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for resolvebug 1.0-SNAPSHOT:
[INFO]
[INFO] resolvebug ......................................... SUCCESS [ 0.483 s]
[INFO] resolveapp-dummy ................................... SUCCESS [ 1.665 s]
[INFO] resolvebug-app ..................................... FAILURE [27:00 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 27:03 min
[INFO] Finished at: 2019-05-24T16:49:28+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Java heap space -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
real 27m3.986s
user 206m27.432s
sys 0m31.020s
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#3201?email_source=notifications&email_token=AABD2TEVOG7ECPIAU2PWFL3PW76LLA5CNFSM4HO3QUB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWFTXVI#issuecomment-495664085>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABD2TAO47Y7U3RVQUZ7ZPTPW76LLANCNFSM4HO3QUBQ>
.
--
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
(@rotty3000)
Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
(@liferay)
Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org> (@OSGiAlliance)
|
As written above:
Didn't the project work for you? |
Ah my bad, I totally missed that, Mark. Sorry. I'll try to take a look as
soon as possible.
- Ray
…On Fri, May 24, 2019 at 2:11 PM Markus Rathgeb ***@***.***> wrote:
As written above:
I tried to create a simple demonstration project that shows you the error.
You can find the project and the readme here:
https://github.com/maggu2810/bnd-resolvebug
Didn't the project work for you?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3201?email_source=notifications&email_token=AABD2TA7DSEACAMMUXJKR7DPXA4UPA5CNFSM4HO3QUB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODWGKZQY#issuecomment-495758531>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABD2TALZGRZO3BIUXCVRZ3PXA4UPANCNFSM4HO3QUBQ>
.
--
*Raymond Augé* <http://www.liferay.com/web/raymond.auge/profile>
(@rotty3000)
Senior Software Architect *Liferay, Inc.* <http://www.liferay.com>
(@liferay)
Board Member & EEG Co-Chair, OSGi Alliance <http://osgi.org> (@OSGiAlliance)
|
@rotty3000 Have you had already time to download the (minimal) demo project to reproduce the problem? |
sorry, I have not yet had a chance. |
I would like to test this against the most recent snapshot of the Felix Resolver. Can someone give me the instructions how I can update third party dependencies (e.g. version numbers) and so build all that the bnd-resolver-maven-plugin needs to get that changes reflected? |
If you build the Bnd workspace with |
As I don't know if you track the resolver changes used by the resolver plugin( there has been apache/felix@eaf038b#diff-f8609e719e58d9fd43255f51f3b48e8e), I gave it another try if perhaps changes of the dependent project solves this bug. Bnd is still not able to resolve the demo project (by providing up to 4G of heap) in a "reasonable" time. What I have done:
|
I just had an interesting situation where I had a launch file that would resolve in a reasonable time on one machine and not on another, even when I synchronised the two workspaces through GitHub. Then when I did a clean build on the one that was working it started hanging too. Unfortunately while I tried to do a controlled test I'm not 100% sure if I succeeded and it is proving difficult to repeat. The resolve was for an Eclipse instance for an integration test for |
Btw, i think the bndtools.core resolve issue is (among other reasons) because biz.aQute.junit and org.junit are both available. Blacklisting biz.aQute.junit helped me to get bndtools.core to resolve. |
I updated the demonstration I linked above to use bnd 5.2.0 and the error is not present anymore. |
While working on the migration of an existing code base to Bnd and adding integration tests, I went into a problem.
The resolution of an integration tests "never ends".
I tried to create a simple demonstration project that shows you the error.
I don't like to say that the application in that project and the bundle selection itself makes any sense, but this should not be the point.
If I try to resolve that application (using the Maven plugin) it ends after some minutes with an error:
[ERROR] GC overhead limit exceeded -> [Help 1]
.You can find the project and the readme here: https://github.com/maggu2810/bnd-resolvebug
Used bnd version: 4.2.0
The text was updated successfully, but these errors were encountered: