-
1. Re: Threads per deployment
gazonkfoo May 20, 2015 8:55 AM (in response to gazonkfoo)Weld apparently creates Runtime.getRuntime().availableProcessors() bootstrap threads for each deployment (but not sub-deployment).
(see http://docs.jboss.org/weld/reference/latest/en-US/html/configure.html#d0e6387)
I managed to find an easy way to disable this behavior by adding the require-bean-descriptor="true" attribute to the weld section of the standalone.xml:
This way not a single thread is created for weld.
However i'm still looking for a way to get rid of the file-watcher threads.
I had a look at the source and apparently a file watcher is created for all exploded deployments.
But actually my deployments are not exploded but wildfly seems to treat the extracted deployments below the tmp/vfs folder as exploded.
I don't see a reason why a file watcher is needed for those (why should anyone modify the files below tmp/vfs from outside?).
-
2. Re: Threads per deployment
mkouba May 20, 2015 10:10 AM (in response to gazonkfoo)Note that it's also possible to configure the Weld thread pool - see also Chapter 19. Configuration.
-
3. Re: Threads per deployment
gazonkfoo May 21, 2015 4:33 AM (in response to gazonkfoo)Thanks Martin for you help.
I have created a jira issue to make the thread pools wildfly global: https://issues.jboss.org/browse/WFLY-4653
Stuart Douglas has helped me to clarify the filewatcher problem and apparently it's a bug that the extracted deployments below tmp are marked as exploded internally.
He has created an issue for it (and submitted a pull request already): https://issues.jboss.org/browse/WFCORE-706
Unfortunately there is no workaround for the issue so i think we have to patch wildfly to resolve this.