Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello,
The code "%pid" does not work it outputs "ERRORid". What shall I use to get the value of PID of my job? Example: NScQO5
Hello,
Are you referring to process ids (PIDs) from Talend jobs for main and independent processes? If so, please use below statement,this will print your PID and hostname.
System.out.println(java.lang.management.ManagementFactory.getRuntimeMXBean().getName());
The tstatcatcher will capture pid, father_pid and root_pid
Let us know if it is what you are looking for.
Best regards
Sabrina
What I want is to possibly write a code inside the log4j xml so the file that the log4j produces will also contain the job's process id.
Thank you