[英]Does each Solr core have its own classloader?
When creating plugins for Solr, you add some plugin library jar files into the solrconfig.xml file:在为 Solr 创建插件时,将一些插件库 jar 文件添加到 solrconfig.xml 文件中:
<lib dir="/path/to/jar/files" regex=".*\.jar" />
In my case, I use a few system libraries ( .dll
, .so
)就我而言,我使用了一些系统库(
.dll
, .so
)
And I need to make sure they do not try to load them more than once.而且我需要确保他们不会多次尝试加载它们。
Does each Solr core have its own classloader?每个 Solr 核心都有自己的类加载器吗?
I was talking with some Solr committers via slack and they said the answer is Yes.我正在通过 slack 与一些 Solr 提交者交谈,他们说答案是肯定的。 Each core has its own classloader.
每个核心都有自己的类加载器。 See https://issues.apache.org/jira/browse/SOLR-16131 for a read on some issues related to this, which confirms that each core has its own classloader.
请参阅https://issues.apache.org/jira/browse/SOLR-16131了解与此相关的一些问题,这证实了每个核心都有自己的类加载器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.