Comments (4)
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 [email protected]
on 29 Mar 2015 at 10:28
- Changed state: Invalid
from javamelody.
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 [email protected]
on 30 Mar 2015 at 2:55
Attachments:
from javamelody.
In the debugging logs at the end of page, it is written:
Mon Mar 30 16:25:35 CEST 2015 DEBUG Action 'CLEAR_COUNTER' executed. Result:
Statistics null cleared.
Mon Mar 30 16:30:38 CEST 2015 DEBUG Action 'CLEAR_COUNTER' executed. Result:
Statistics null cleared.
Mon Mar 30 16:33:05 CEST 2015 DEBUG Action 'CLEAR_COUNTER' executed. Result:
Statistics null cleared.
Mon Mar 30 16:39:21 CEST 2015 DEBUG Action 'CLEAR_COUNTER' executed. Result:
Statistics null cleared.
Mon Mar 30 16:41:17 CEST 2015 DEBUG Action 'CLEAR_COUNTER' executed. Result:
Statistics null cleared.
Mon Mar 30 16:42:57 CEST 2015 DEBUG Action 'CLEAR_COUNTER' executed. Result:
Statistics null cleared.
Mon Mar 30 16:45:12 CEST 2015 DEBUG Action 'CLEAR_COUNTER' executed. Result:
Statistics null cleared.
Mon Mar 30 16:45:46 CEST 2015 DEBUG Action 'CLEAR_COUNTER' executed. Result:
Statistics null cleared.
Mon Mar 30 16:47:09 CEST 2015 DEBUG Action 'CLEAR_COUNTER' executed. Result:
Statistics null cleared.
In these messages, "null" is not good.
And it seems that when you call the URL with curl, the "&counter=all" is
missing.
You should call http://host/context/monitoring?action=clear_counter&counter=all
and not http://host/context/monitoring?action=clear_counter
Maybe you need to write the URL between double-quotes?
Original comment by [email protected]
on 1 Apr 2015 at 10:52
from javamelody.
You got it, the URL needed to be double-quoted, now it works really good.
Thanks for everything.
Original comment by [email protected]
on 24 Apr 2015 at 12:05
from javamelody.
Related Issues (20)
- net.bull.javamelody.JpaPersistence.guessDelegate (JpaPersistence.java:202) [javamelody-core-1.55.0.jar:1.55.0]Caused by: java.lang.IllegalStateException: java.lang.ClassNotFoundException: Can't find a delegate HOT 2
- Remove web-fragment.xml from core jar. HOT 3
- The unit of JDBC chart display error HOT 1
- Externalized Configuration HOT 3
- Confluence - Sql Statistic is None HOT 3
- Jira - javamelody do not show sql statistic HOT 3
- Google code soon dead HOT 2
- Upload javamelody.war into the maven repository HOT 1
- Rest call to non existing resource on Jboos Wildfly/Undertow with Javamelody returns status 500 instead of 404 HOT 5
- I can only waht sql graphs. HOT 3
- jboss eap 6.3 and javamelody ClassCastException HOT 3
- javamelody how to integrate to simple javaweb project,that jdbc+javabeen+servlet,thanks! HOT 1
- Basic Authentication and Sessions HOT 1
- MULTILINE && DOTALL flags for transform-patterns HOT 1
- IllegalAccessException when creating Jdbc Proxy (Java 8) HOT 2
- ClassLoader leak when using the reports and then hot-redeploy with Tomcat 7.0.42 or later HOT 3
- In processes list, CPU and Command are sometimes in the wrong column HOT 1
- HirakiCP pool and sql Statistics HOT 3
- Enhancement: JPA merge/persist/remove tracking HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from javamelody.