Monitoring the events of the JRE

Asked

Viewed 67 times

1

Can you monitor some jre events like start, close etc? Are there libraries for that? I need to create a log to store the time the jre is triggered, closed and know who accessed, all this should be inside a txt file on the local machine, there is some material I can use for reference or some specific library that does this?

  • There are several possibilities to monitor a process, although not specifically the JRE. The best approach depends on the context. Would you like to say a little bit about the problem you want to solve?

  • It is a system proposal where I have to track events in a text log, start, close, error, etc. I am researching the feasibility and what technology would be best to develop.

  • For me, the concept of "monitoring" is still vague and for what exactly do you need it. I say this because monitoring the JRE may not be the best way, maybe monitoring the application running within the virtual machine is more appropriate. Is it a desktop or web application? If you are just monitoring when the program runs or not, just create a script that saves to a log before or after running Java. Or it would be possible to create a program that checks every N seconds whether the Java process is running or not. That’s the kind of thing you need?

  • If it is a web application you can create a web diagnostic service and consult that service at certain periods.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.