-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: <SEARCH> Unable to synchronize source java.lang.OutOfM
PostPosted: Thu May 29, 2008 4:14 pm 
Newbie

Joined: Fri Jun 15, 2007 11:37 am
Posts: 7
Hello, we are using the latest build of Hibernate Search 3.0.1 with JDK 1.6.0_03.

The indexing job works fine, but when the source indexes are being replicated we get this exception (the index files are 150MB and the JVM is started with these parameters: -Xms768m -Xmx1280m which is the max memory we can allocate)

29 May 13:30:03 ERROR store.FSMasterDirectoryProvider$CopyDirectory (FSMasterDirectoryProvider.java:194) -Unable to synchronize source of C:\Projects\GPOApps\lucene\localindex\Contract
java.io.IOException: Map failed
at sun.nio.ch.FileChannelImpl.map(Unknown Source)
at sun.nio.ch.FileChannelImpl.transferFromFileChannel(Unknown Source)
at sun.nio.ch.FileChannelImpl.transferFrom(Unknown Source)
at org.hibernate.search.util.FileHelper.copyFile(FileHelper.java:71)
at org.hibernate.search.util.FileHelper.synchronize(FileHelper.java:54)
at org.hibernate.search.util.FileHelper.synchronize(FileHelper.java:42)
at org.hibernate.search.store.FSMasterDirectoryProvider$CopyDirectory.run(FSMasterDirectoryProvider.java:189)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.OutOfMemoryError: Map failed
at sun.nio.ch.FileChannelImpl.map0(Native Method)
... 10 more

Any suggestion on how to fix this?

Thanks,
-Chris


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 29, 2008 6:51 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
I think this is a bug we should report in JIRA, but please have some more checks first:

are you using 32bit OS and JDK?

You could try two things:
1) allocate LESS memory to java, your Os could need some more ram for the filetransfer.
2) update your JDK, I found some rumors about a bug in JDK which should be fixed in "some newer JDK"; unfortunately my source is not very exact and I'm not sure it's the same issue, nor which version of JDK is refers to; it is definitely a 32bit JDK v.6 but don't know which versions exactly.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 02, 2008 8:13 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hello,
any news about your issue?
I wrote your issue in JIRA :
http://opensource.atlassian.com/project ... SEARCH-205

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 03, 2008 2:28 pm 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hi,
it should be solved in trunk.
could you please verify the fix?

kind regards

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.