cancel
Showing results for 
Search instead for 
Did you mean: 

Max number of threads for webscript

dswenson
Champ in-the-making
Champ in-the-making
Is there a maximum number of threads that Alfresco will spawn for webscript execution? We are running load tests against a custom web application that is calling our REST webscript every 5 seconds. For 100 requests, only about 60 completed correctly. We saw a maximum of 28 of our requests being handled at one time.
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
Yes there will be maximum numbers.      And alfresco may need tuning upwards for your load.

No script should fail so that needs investigating.

dswenson
Champ in-the-making
Champ in-the-making
What specific properties should be adjusted to increase the maximum number? From glancing at the <a href="https://wiki.alfresco.com/wiki/ASR_Performance_Optimization">ASV Performance Optimization page</a>, I can increase the number of database connections and increase the tomcat's thread pool. I also noticed a maxPoolSize for async actions in the repository.properties file, but I don't think that applies to my situation as the webscript is not being run asynchronously. Are any of these settings relevant?

As for the script failing, I apologize for not being clearer. I don't believe that it is failing. Instead, it seems that the expected execution of the code never occurs, as if Alfresco says "I have too many things going on right now, I don't have the resources to run you", which is what led us to thinking it might by thread related.