I've got a custom install of Solr, based on the example jetty that comes in the Solr download. I integrated javamelody into it, and found that it is placing its data files in /tmp/javamelody. This is a problem because of the cronjob that cleans out old files in /tmp. I could edit the cronjob to exclude that directory, but that increases the number of operating system changes that must be made before my applications will work properly. Ideally I would need to make zero changes to the OS, everything should be handled by the applications.
What's the best way to relocate the storage directory? Is there a java system property that I can set, or an environment variable? If I don't make it an absolute path, will it be relative to the current working directory? I would rather keep the web.xml changes as generic as possible and control that location externally.
We also have javamelody integrated into a liferay application and that uses a location under the tomcat directory., which is safe.
Thanks,
Shawn