- move setting of system property solr.directoryFactory=solr.MMapDirectoryFactory to solrcore.properties - add check of os.arch for 64bit system, if it fails use default/solrcore.x86.properties (if exists) as solrcore.properties reason: on 32bit MMapDirectoryFactory may fail with..... Caused by: java.io.IOException: Map failed at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:849) at org.apache.lucene.store.MMapDirectory.map(MMapDirectory.java:283)pull/1/head
parent
f7e887bf49
commit
8a7fcb391d
@ -0,0 +1,11 @@
|
|||||||
|
## Solr solrconfig.xml System property substitution
|
||||||
|
##
|
||||||
|
## This is the default property file for 64bit system architectures
|
||||||
|
##
|
||||||
|
## depending on system architecture one default property file is copied to core/conf directory
|
||||||
|
## is system architecture is 64bit property file solrcore.properties is copied to core/conf/solrcore.properties
|
||||||
|
## otherwise if exists property file solrcore.x86.properties is copied to core/conf/solrcore.properties
|
||||||
|
#
|
||||||
|
# The DirectoryFactory to use for indexes.
|
||||||
|
# Default for 32bit systems is solr.NRTCachingDirectoryFactory, for 64bit systems solr.MMapDirectoryFactory is recommended
|
||||||
|
solr.directoryFactory=solr.MMapDirectoryFactory
|
@ -0,0 +1,11 @@
|
|||||||
|
## Solr solrconfig.xml System property substitution
|
||||||
|
##
|
||||||
|
## This is the property file for 32 bit systems
|
||||||
|
##
|
||||||
|
## depending on system architecture one default property file is copied to core/conf directory
|
||||||
|
## is system architecture is 64bit property file solrcore.properties is copied to core/conf/solrcore.properties
|
||||||
|
## otherwise if exists property file solrcore.x86.properties is copied to core/conf/solrcore.properties
|
||||||
|
#
|
||||||
|
# The DirectoryFactory to use for indexes.
|
||||||
|
# Default for 32bit systems is solr.NRTCachingDirectoryFactory, for 64bit systems solr.MMapDirectoryFactory is recommended
|
||||||
|
solr.directoryFactory=solr.NRTCachingDirectoryFactory
|
Loading…
Reference in new issue