lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 王建新 <>
Subject A question about ParalellMultiSearcher and RMI
Date Sat, 19 Apr 2008 09:05:39 GMT
I want to use RAMDirectory to raise the peformance of lucene.
So I cut the index dir to 3 smaller index dirs(1G one index dir).
Then I use RAMDirectory to load the 3 dirs, and rebind the 3 searcher by RMI.(My server has
8G mem)
At last, I lookup the 3 remote searcher to new a ParalellMultiSearcher. 
It works correctorly, but sometimes occur errors like :

java.rmi.ServerError: Error occurred in server thread; nested exception is: 
 java.lang.OutOfMemoryError: Java heap space
 at sun.rmi.server.UnicastServerRef.dispatch(
 at sun.rmi.transport.Transport$
 at Method)
 at sun.rmi.transport.Transport.serviceCall(
 at sun.rmi.transport.tcp.TCPTransport.handleMessages(
 at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(
 at sun.rmi.transport.tcp.TCPTransport$
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
 at java.util.concurrent.ThreadPoolExecutor$
 at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown Source)
 at sun.rmi.transport.StreamRemoteCall.executeCall(Unknown Source)
 at sun.rmi.server.UnicastRef.invoke(Unknown Source)
 at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(Unknown Source)
 at java.rmi.server.RemoteObjectInvocationHandler.invoke(Unknown Source)
 at $ Source)
Caused by: java.lang.OutOfMemoryError: Java heap space
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message