Skip to main content

When running a zowe ZMF cli command within a script - e..g a Python script, modules are reloaded on each command invocation. This can have a negative impact on performance. 

Zowe provides the ability to preload modules and as a result provide noticeable performance gains when running multiple zowe commands in a script.

Daemon mode is enabled by entering the command zowe daemon enable at a command prompt and the mode remains enabled across restarts.

However, being enabled is insufficient to ensure that daemon mode is actually active. 


It is important that the <homedir>/.zowe/bin folder is located in the environment variables PATH variable ahead of where npm itself installed the zowe.cmd file. This is typically <homeditr>/Appdata/Roaming/npm.
So check your environment variables   and ensure that <homedir>/.zowe/bin is earlier in the PATH sequence.
 


You can then check that daemon mode is truly active by issuing zowe --version.exe and it should simply report back a single line response of 7.2.1 - or some similar version. 

The first zowe command entered will display this message "Starting a background process to increase performance ..."

Once you have ensured this to be the case, you should notice a significant improvement when issuing subsequent zowe zmf commands and indeed any other zowe commands. 


#CLI
#ChangeManZMF
#Mainframe
#HowTo-BestPractice
#ZMF
#zowe