Unable to achieve any scalability in Matlab Builder JA/Tomcat
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
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 comentario
Respuestas (1)
Sunny Gupta
el 10 de Dic. de 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 comentarios
Ver también
Categorías
Más información sobre MATLAB Compiler SDK en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!