I remember, profiler gets connected to WTadapter and BGMS does not have one. So in the background node which does have WTadapter, profiler should not work. Do you have a local mapping for your cluster URL in your slaves?
You can also use JConsole for profiling
Select com.ptc > MethodServers > MethodServer> com.ptc > WindchillProfiler > Attributes
- Enter the full path of the output file in CanonicalFilename(D:\ptc\test.prof)
- Set SQLProfilingEnabled & TaskProfilingEnabled to true
- Set ProfilerUserName to the username(eg: wcadmin) which you want to profile
Thanks
Binesh