perwendel / spark

A simple expressive web framework for java. Spark has a kotlin DSL https://github.com/perwendel/spark-kotlin
Apache License 2.0
9.63k stars 1.56k forks source link

Maximum number of threads ignored #1114

Open sdmimaye opened 5 years ago

sdmimaye commented 5 years ago

Hello dear sparkians

I think i found a problem with spark: I configured the server to use a maximum of 100 Threads: service.threadPool(100, -1, 10000);

My customer got back on me and reported that the server is no longer responding. I picked up the log file and discovered that the server created well over 100 threads. The counter was somewhere between 1300 and 1400. A service restart fixed the issue but i do not think that is the holy grail.

I am using spark-core in Version 2.7.1 and noticed that there is already a version 2.9.0. If the problem is already fixed in the newer version let me know.

Best regards and many thanks for this awesome project!

Michael

hostops commented 3 years ago

I noticed same problem. Is there any workaround?