[ https://issues.apache.org/jira/browse/SOLR-14335?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17060043#comment-17060043 ]
Jan Høydahl commented on SOLR-14335: ------------------------------------ In slack, [~uschindler] suggests we can create a new {{org.apache.solr.bootstrap.Main}} class responsible for doing the necessary JNA calls to do the locking. Guess we can borrow the [NativeLibrary.java|https://github.com/apache/cassandra/blob/trunk/src/java/org/apache/cassandra/utils/NativeLibrary.java] class from Cassandra which implements a {{tryMlockall()}} method that seems to do the right thing for various platforms? > Lock Solr's memory to prevent swapping > -------------------------------------- > > Key: SOLR-14335 > URL: https://issues.apache.org/jira/browse/SOLR-14335 > Project: Solr > Issue Type: Improvement > Security Level: Public(Default Security Level. Issues are Public) > Reporter: Jan Høydahl > Priority: Major > > Followup from SOLR-10306. While sometimes you are able to disable or reduce > swap on the host, other times that is not so easy. Having a native option to > lock Solr's memory would be beneficial. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org