Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change the storage-directory of javamelody

I need to monitor java application and I am using javamelody.

But the problem is, I have to get the data that javamelody has so I can show it in another screen. I know that javamelody store its rdd files in temp/javamelody directory, now I need to change the storage-directory to another path so I can get the data from that path.

How can I set the storage-directory of javamelody?

like image 566
Algorithman Avatar asked Mar 23 '23 14:03

Algorithman


1 Answers

Oh I think I've found the answer I just have to set command line or xml file in my tomcat like this

<?xml version="1.0" encoding="UTF-8" ?>
<Context docBase="pathto\appname.war" path="javamelody" reloadable="false" >
        <Parameter name='javamelody.storage-directory' value='pathname' override='false'/>
</Context>

Thank you for the help :D

like image 151
Algorithman Avatar answered Apr 06 '23 08:04

Algorithman