joular / joularjx

JoularJX is a Java-based agent for software power monitoring at the source code level.
https://www.noureddine.org/research/joular/joularjx
GNU General Public License v3.0
71 stars 17 forks source link

Monitoring loop exits prematurely #42

Closed metacosm closed 9 months ago

metacosm commented 10 months ago

The issue comes from the fact that the DestroyJavaVM Thread is actually present before the VM is scheduled to be destroyed in a lot of contexts (in particular, for daemon-like processes) where the VM isn't actually shutting down.

adelnoureddine commented 10 months ago

I'll reopen this issue and revert the changes, because JoularJX agent is running continuously even after the program ends. I'll keep it open until a better solution is found.

metacosm commented 10 months ago

Makes sense. Sorry for the issue.

adelnoureddine commented 9 months ago

@metacosm, do you have any additional insights about this issue? Because otherwise, I'm looking to close it.

metacosm commented 9 months ago

I haven't looked into it, to be honest. I don't have any idea off the top of my head to address the issue in both cases.

adelnoureddine commented 9 months ago

Thanks, I'll close the issue for now, and if anything new comes by, I'll reopen it.