Unable to achieve any scalability in Matlab Builder JA/Tomcat
1 回表示 (過去 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!