Skip to content
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

fix the datasources example #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Ladicek
Copy link
Contributor

@Ladicek Ladicek commented Feb 28, 2018

No description provided.

The `datasources-subsystem` example no longer exists. Instead,
the `datasources-war` example is used. That example, however,
needs to be started in one of 3 profiles; the default profile
doesn't include any datasource and so the example doesn't work.

To be able to do this, this commit adds the ability to specify
arguments to the `java -jar *-swarm.jar` commands in a special
file called `swarm-app-args.properties`.
Triggering the GC multiple times makes the results slightly more reliable.
@heiko-braun
Copy link
Contributor

@Ladicek Let me know once you some recent number for a 2018.x release. I'd be curious to see how that compares previous versions

@Ladicek
Copy link
Contributor Author

Ladicek commented Feb 28, 2018

Actually just working on comparison between 2018.2.0 and current master, to see if there were any regressions after the temp files leak fix.

Jcmd.gc(pid);
for (int i = 0; i < 10; i++) {
Jcmd.gc(pid);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:-)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

more helps better

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My very non-scientific experience is that 1 GC cycle isn't enough to collect everything. I'm not sure if we have many objects with finalizers (or in reference queues), but that's one reason why at least 2 GC cycles are required to clean up properly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants