Unable to achieve any scalability in Matlab Builder JA/Tomcat
5 次查看(过去 30 天)
显示 更早的评论
I created a matlab function for processing a PDB file and I am trying to make this a web application using Matlab Builder JA . I followed the magic square example but I am unable to achieve any scalability. The matlab function takes 20 sec to run and for processing n files using the web app , it takes n x 20 secs. I have a 6 core machine and on seeing the activity monitor I am seeing that only one core is being used. I tried to run this as a standalone applications with thread pools. But still the operations scales only in a linear fashion. Any help regarding this is highly appreciated. I am running it on a mac 64 bit processor.
回答(1 个)
Sunny Gupta
2012-12-10
Possibly the best way to solve this concurrent scaling problem with a compiled MCR dependant app is to limit the number of threads to less than the number of available CPU's.
So say you have a 6 core machine, setting the maximum number of computational threads using maxNumCompThreads to two for example would allow three concurrent instances to avoid competing for same resources.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Compiler SDK 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!