"ForkJoinPool-1-worker-8" #227 daemon prio=5 os_prio=0 tid=0x00007f29b8005000 nid=0x160c waiting for monitor entry [0x00007f281022c000]
java.lang.Thread.State: BLOCKED (on object monitor)
at java.security.Provider.getService(Provider.java:1035)
- waiting to lock <0x00007f2af73e7838> (a sun.security.provider.Sun)
at sun.security.jca.ProviderList.getService(ProviderList.java:332)
at sun.security.jca.GetInstance.getInstance(GetInstance.java:157)
at java.security.Security.getImpl(Security.java:695)
at java.security.MessageDigest.getInstance(MessageDigest.java:167)
at com.datastax.driver.core.Token$RPToken$RPTokenFactory.md5(Token.java:574)
at com.datastax.driver.core.Token$RPToken$RPTokenFactory.hash(Token.java:604)
at com.datastax.driver.core.Token$RPToken$RPTokenFactory.hash(Token.java:564)
at com.datastax.driver.core.Metadata.getReplicas(Metadata.java:300)
at com.datastax.driver.core.policies.TokenAwarePolicy.newQueryPlan(TokenAwarePolicy.java:129)
at com.netflix.aeneas.nf.policies.EurekaAwarePolicy.newQueryPlan(EurekaAwarePolicy.java:91)
at com.datastax.driver.core.RequestHandler.<init>(RequestHandler.java:82)
at com.datastax.driver.core.SessionManager.executeAsync(SessionManager.java:132)
...
--
You received this message because you are subscribed to the Google Groups "DataStax Java Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-us...@lists.datastax.com.
--
Olivier Michallat
Driver & tools engineer, DataStax
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-user+unsubscribe@lists.datastax.com.
--
You received this message because you are subscribed to a topic in the Google Groups "DataStax Java Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this topic, visit https://groups.google.com/a/lists.datastax.com/d/topic/java-driver-user/OVIwK1ZFd3A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to java-driver-user+unsubscribe@lists.datastax.com.
--
Olivier Michallat
Driver & tools engineer, DataStax
Can such ClassLoader leaks happen for classes that are defined in the JDK, such as MessageDigest? Would MessageDigest class always be loader by the top parent ClassLoader?
The leak happens when you use this pattern:new ThreadLocal<MessageDigest>() {@Override protected MessageDigest initialValue() { ... }};}This creates an anonymous inner class that keeps a reference to the webapp's classloader.There are ways around it, but after benchmarking the code we decided it was not worth it and went with the simpler solution.
--
Olivier Michallat
Driver & tools engineer, DataStax
On Fri, Feb 10, 2017 at 11:46 PM, Stéphane LANDELLE <slan...@gatling.io> wrote:
Can such ClassLoader leaks happen for classes that are defined in the JDK, such as MessageDigest? Would MessageDigest class always be loader by the top parent ClassLoader?