a) would it be possible to start up a second FR (i.e. FR2) - manually or programmatically - and have this one monitor the launched java process? The javaagent may be provided as an additional argument to the jvm startup arguments.While in theory, it would be possible to start a new FusionReactor process. I would not recommend this as it will take around 1 second to initialize FusionReactor. To guarantee your request will be tracked by FusionReactor you will have to wait until it is initialized.
b) is it possible to export some kind of report from FR2 once/before the launched process terminates?The data for this request would be contained within your FusionReactor log files and could be accessed here.c) if so, is it also possible to integrate that report back into the original FR instance?It is not possible to integrate this request back into the user interface of the main FusionReactor.An alternative way to do this would be to use the FusionReactor cloud so that data from both the main FusionReactor and the exec FusionReactor process were visible within the same user interface.For this to work you would need to guarantee the process was active long enough to send data to the Cloud.
If you believe you have an issue occurring in this exec process it is possible to install the Java agent and run FusionReactor in this manner whilst you diagnose the issue, potentially utilizing the debugger to find the issue but for long-term monitoring this solution does not seem efficient.
From: fusion...@googlegroups.com [mailto:fusion...@googlegroups.com] On Behalf Of michael...@intergral.com
Sent: Monday, January 8, 2018 08:49 AM
To: FusionReactor <fusion...@googlegroups.com>
Subject: Re: [fusionreactor] How to monitor multiple java processes
Hi,
As the process lasts for 1 to 7 hours running another FusionReactor process for this will be a viable option.
<snip>
OK, and yep. So informatiok, please do clarify for us: is the os process you are launching from Wildfly via runtime.exec itself a java thing? :-)
Again, I had said in my first response that FR could not monitor that new process if it was not java, to which you said we were “on the same page”. But then you went on to ask more questions, which Michael kindly answered. If you answer the one above, we should be able to come to resolution on this, and let us know if you feel things are now clear.
/charlie
From: fusion...@googlegroups.com [mailto:fusion...@googlegroups.com] On Behalf Of Mikey Flewitt
Sent: Tuesday, January 9, 2018 07:29 AM
To: FusionReactor <fusion...@googlegroups.com>
Subject: Re: [fusionreactor] How to monitor multiple java processes
Hi Charlie,
From point A of the initial response "would it be possible to start up a second FR (i.e. FR2) - manually or programmatically - and have this one monitor the launched java process? The javaagent may be provided as an additional argument to the jvm startup arguments.". I am assuming the exec process being launched is indeed running Java and that JVM arguments can be provided to this process as suggested.
I agree that if the exec command is not running Java and/or the JVM arguments cannot be provided it is not possible to monitor this with FusionReactor in any way.
I hope this clears up the confusion.
Michael Flewitt
Thanks, but for all that there seems still a potential question. Can you please be very specific: is the OS (Linux) process you are launching (via runtime.exec, in that command argument) itself A JAVA PROCESS? Don’t think that because it’s launched FROM a Java app that it IS one. The question is very simply: IS it one. IS the thing you’re launching literally some other Java process?
If so, it may help to hear also what kind of thing it is, to help go forward, including to the other questions/observations you made.
Thanks.
/charlie
From: fusion...@googlegroups.com [mailto:fusion...@googlegroups.com] On Behalf Of infor...@gmail.com
Sent: Tuesday, January 9, 2018 05:12 PM
To: FusionReactor <fusion...@googlegroups.com>
Subject: Re: [fusionreactor] How to monitor multiple java processes
Hi Charlie and Michael,
--
You received this message because you are subscribed to the Google Groups "FusionReactor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fusionreacto...@googlegroups.com.
To post to this group, send email to fusion...@googlegroups.com.
Visit this group at https://groups.google.com/group/fusionreactor.
For more options, visit https://groups.google.com/d/optout.
Ah, I see now that your last note said, “, command[0] equals the java path in "runtime.exec(command);" followed by a sequence of other arguments (like cp) to get a java process run”. I just wasn’t putting together the references there to the command being “the java path” and the “arguments” being “cp…to get a java process to run”.
My bad, so again all that Michael added will help you, and his next that I see he just wrote.
/charlie