Unable to achieve any scalability in Matlab Builder JA/Tomcat
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentar
Antworten (1)
Sunny Gupta
am 10 Dez. 2012
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 Kommentare
Siehe auch
Kategorien
Mehr zu MATLAB Compiler SDK finden Sie in Help Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!