[wildfly-dev] Disabling parallelism by tweaking java.util.concurrent.ForkJoinPool.common.parallelism

Emmanuel Hugonnet ehugonne at redhat.com
Wed May 28 10:30:20 EDT 2014


Hi,
Yesterday there was a presentation of the Java8 Stream API at the local JUG.
According to the speaker (Paul Sandoz) parallelism should be disabled in webapps because :
"...a machine serving web requests is usually sized/configured to maximize throughput. If web application code was using parallel streams
then CPU resources would be consumed computing results that could otherwise be used to serve other web requests. A stream computation
running on a fork/join pool will not block, it will try and go as fast as possible using as many resources as possible."

What do you think ?
Emmanuel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 538 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/wildfly-dev/attachments/20140528/22b63c0e/attachment.bin 


More information about the wildfly-dev mailing list