MCR execution very slow on Windows 2012
3 views (last 30 days)
I have a Matlab function that I packaged using Compiler SDK (Java Builder) and invoking the java wrapped function via a REST web service. Script execution time is as follows:
Test Environment 1: Windows 7 Professional x64 (Physical Computer) RAM: 16 GB Execution time: 1 minute
Test Environment 2: Windows Server 12 R2 Standard x64 (Virtual Machine) RAM: 8 GB Execution time: 9+ minutes
I am using MCR runtime version 8.5 . I am not sure if any additional configurations are required on Windows 2012 server/VM to speed up the execution.
Yuebin Zhou on 7 Dec 2015
1) First of all, MATLAB, as other software, on a virtual machine is definitely slower than the host machine. You can verify that by running the BENCH command on both host and virtual machine.
2) MATLAB and MCR is not guaranteed to perform well on virtual environments, especially in the case of external interface connectivity (like in this case a REST Web service). You can find more information on the following link: http://www.mathworks.com/matlabcentral/answers/96411
3) Your application uses web services. This might make the MATLAB application further slower if there is large amount of data transmission, since there are extra layers to cross in operating systems before each data fetch operation.