Unable to achieve any scalability in Matlab Builder JA/Tomcat
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commento
Risposte (1)
Sunny Gupta
il 10 Dic 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 Commenti
Vedere anche
Categorie
Scopri di più su MATLAB Compiler SDK in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!