New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple servers in a Wildfly server groups put collected data files to same place #692
Comments
Detecting that 2 instances write to the same storage directory is very possible and desirable. ( Wildfly server name or used port will probably not be added to the storage directory (because first, it will change the default currently used by a lot of apps and server name or port would not be a good idea in general). |
Why not use the parameter "-Djavamelody.application-name=my_instance" and let JavaMelody add it to the folder name, like "/tmp/javamelody_my_instance". This is a common approach with multiple Jboss Wildfly on same server. |
@BrommD Yes, it would work well. Another approach is to use a different "storage-directory" parameter in each instance. For example in system properties: "-Djavamelody.storage-directory=/tmp/javamelody_my_instance" |
It's done (3863b31) and ready for the next release (1.71): there is now a warning in the reports if multiple instances use the same storage directory. |
… storage directory
It seems there is a bug that causes data loss when the one uses Wildfly and there are same more than one Wildfly server (JVM) on same application server. All server will put their data to same tmp subfolder hence they only create one set of graphs. Is there any way to autodetect these situations and modify the javamelody.storage-directory automatically? It would be nice to put Wildfly server name or used port to the auto generated storage directory path that can avoid this bug.
The text was updated successfully, but these errors were encountered: