[Bug 568234] Re: java plugin does not work with non-openjdk java

2018-05-04 Thread Andreas Steffan
Personally had no issues with artful, but the issue appeared with bionic where default-java symlinks to openjdk-11-jre-headless which has libjvm.so in a different directory (and not below jre/lib/amd64/server where it is expected by java.so). My quick hack was: patchelf --set-rpath '/usr/lib/jvm/

[Bug 568234] Re: java plugin does not work with non-openjdk java

2017-08-01 Thread Poil
Hi, A better way is to declare in /etc/default/collectd LD_PRELOAD=/etc/alternatives/jre_1.8.0/lib/amd64/server/libjvm.so Like that if we have openjdk 1.7 and 1.8 installed (or Java Oracle) on our host collectd jmx will work -- You received this bug notification because you are a member of Ubu

[Bug 568234] Re: java plugin does not work with non-openjdk java

2015-08-04 Thread frntn
Looking at java.so content we can find the PATH from which it will try load the libjvm.so > prompt$ strings /usr/lib/collectd/java.so | grep jre > /usr/lib/jvm/default-java/jre/lib/amd64/server So I have symlinked this *default-java* to my actual *java-7-oracle* install > prompt$ ln -sf /usr/lib

[Bug 568234] Re: java plugin does not work with non-openjdk java

2012-06-27 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: collectd (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/568234 Title: ja