Skip to main content
Solved

Get Number of Concurrent FMEProcesses and FMEWorkerProcesses in Python

  • March 24, 2016
  • 3 replies
  • 38 views

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

Best answer by david_r

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

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

david_r
Celebrity
  • Best Answer
  • March 24, 2016

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


mark2atsafe
Safer
Forum|alt.badge.img+59
  • Safer
  • March 24, 2016

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).