Skip to main content

Hello!

One could access the maximum FME Processes and Workers in Python like this:

MaximumProcesses = fmeobjects.FMELicenseManager.getMaxFMEProcesses() or the same with workers.

How can I get the acual used number of Processes and Workers?

Thanks a lot! Regards Jacob

Hi

You can use the subprocess module in Python and count the running instances of "fme.exe". Here's some info to get you started.

David


If it's after the translation you are asking for, could you try parsing that information out of the log file?


Thanks a lot!

I want to run a WorkspaceRunner and assign the "Maximum concurrent running instances"-Parameter dynamically at runtime by first checking the used instances (eg. 2) and depending on time and maybe a parameter (eg. one instance should always be accessible so 8-1-2 = 5 -> 5 instances could be used by the subprocess).


Reply