Closed GoogleCodeExporter closed 9 years ago
First, note that the "prevent this page from showing new dialog boxes" is a
browser specific feature (of google chrome), so javamelody does not have much
to do with that browser feature if it does not work as you want.
But, fortunately if you want to clear all stats from a browser or from a script
with wget or curl, you just have to call the following URL (host and context
depends on your server):
http://host/context/monitoring?action=clear_counter&counter=all
And ignore the "OK" dialog box in the result.
By the way, if you want to get data as JSON or as XML from a script, you can
read about JSON and XML at
https://code.google.com/p/javamelody/wiki/ExternalAPI
Original comment by evernat@free.fr
on 29 Mar 2015 at 10:28
I'm aware of that URL to call using cURL, but when i try it the process will
not end, and the stats are not cleared. I guessed it was because it kept
waiting for the confirmation of the dialog box, could it be? I'll attach the
output of the cURL command you told me, maybe it'll help and you can see
something i didn't.
Thanks a lot!
Original comment by ab.light...@gmail.com
on 30 Mar 2015 at 2:55
Attachments:
Original issue reported on code.google.com by
ab.light...@gmail.com
on 24 Mar 2015 at 11:20