-
Notifications
You must be signed in to change notification settings - Fork 7
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
base: master
Are you sure you want to change the base?
Conversation
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.
@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 |
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); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
more helps better
There was a problem hiding this comment.
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.
No description provided.