Where does javamelody persist its statistics?

1,519 views
Skip to first unread message

Page bloom

unread,
Apr 24, 2017, 4:24:03 AM4/24/17
to javamelody

The guides mention that no database is used to store data which is why it is very lightweight but where are the statistics persisted?


Presumably the stats are not just maintained in memory or they would be all lost each time we restarted the servlet container wouldn't they?

evernat

unread,
Apr 24, 2017, 11:37:39 AM4/24/17
to javamelody
Hi,

The data is stored in local files on the server.
By default, a 'javamelody' directory is created for that in the temp directory of the server. Or you can configure a javamelody parameter 'storage-directory' to store the files where you want.

Typically, the total size of the data files is between 10 MB and 200 MB depending on your application and history of data. Obsolete files will be deleted automatically when they are obsolete (1 year by default).

bye,
Emeric

Page bloom

unread,
Apr 24, 2017, 11:38:59 AM4/24/17
to javamelody
I found the info in:


under the section: 

        Clearing all statistics and all graphs

For tomcat data is stored in: <tomcat>/temp/javamelody
Reply all
Reply to author
Forward
0 new messages