Re: [Neo4j] Neo4J 1.4.2 on Ubuntu 11.04
Hi there, did you manage to solve this and to give the memory mapping enough space on your computer? Cheers, /peter neubauer GTalk: neubauer.peter Skype peter.neubauer Phone +46 704 106975 LinkedIn http://www.linkedin.com/in/neubauer Twitter http://twitter.com/peterneubauer http://www.neo4j.org - NOSQL for the Enterprise. http://startupbootcamp.org/ - Öresund - Innovation happens HERE. On Thu, Oct 20, 2011 at 10:27 PM, fernandobr fvdmagalh...@gmail.com wrote: Thanks for the answer. I'm using Neo4J embedded and I didn't change the default configuration. I just started the database by doing this: GraphDatabaseService targetDB = new EmbeddedGraphDatabase(/home/fmagalhaes/GraphDB/DistDB); I'm not creating a HashMap to set properties like described here: http://docs.neo4j.org/chunked/milestone/configuration-introduction.html http://docs.neo4j.org/chunked/milestone/configuration-introduction.html . Do you think this can be the problem? I'm running this program on a computer with 4 GB of memory and I'm working with a relatively small graph (database has around 20 MB). -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4J-1-4-2-on-Ubuntu-11-04-tp3439028p3439197.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Neo4J 1.4.2 on Ubuntu 11.04
Hi, I'm having some trouble using Neo4J in Ubuntu 11.04 Linux OS. The program I've writen works fine under Windows 7 but when I tried to run it at Linux I'm experiencing some problems: org.neo4j.kernel.impl.nioneo.store.PersistenceWindowPool logWarn WARNING: [/home/fmagalhaes/Coppe/GraphBD/CineastDB/neostore.propertystore.db.index] Unable to memory map Oct 20, 2011 6:59:17 PM org.neo4j.kernel.impl.nioneo.store.PersistenceWindowPool logWarn WARNING: [/home/fmagalhaes/Coppe/GraphBD/CineastDB/neostore.propertystore.db.index.keys] Unable to memory map as soon as my program reaches these line of code: GraphDatabaseService sourceDb = new EmbeddedReadOnlyGraphDatabase(/home/fmagalhaes/GraphDB/CineastDB); GraphDatabaseService targetDb = new EmbeddedGraphDatabase(/home/fmagalhaes/GraphDB/DistDB); After this warning message the program starts, but at a later point I keep receiving these error messages: WARNING: [/home/fmagalhaes/GraphDB/CineastDB/neostore.propertystore.db.strings] Unable to memory map org.neo4j.kernel.impl.nioneo.store.MappedMemException: Unable to map pos=659456 recordSize=133 totalSize=136192 at org.neo4j.kernel.impl.nioneo.store.MappedPersistenceWindow.init(MappedPersistenceWindow.java:61) at org.neo4j.kernel.impl.nioneo.store.PersistenceWindowPool.allocateNewWindow(PersistenceWindowPool.java:603) at org.neo4j.kernel.impl.nioneo.store.PersistenceWindowPool.refreshBricks(PersistenceWindowPool.java:501) at org.neo4j.kernel.impl.nioneo.store.PersistenceWindowPool.acquire(PersistenceWindowPool.java:128) at org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.acquireWindow(CommonAbstractStore.java:526) at org.neo4j.kernel.impl.nioneo.store.AbstractDynamicStore.getLightRecords(AbstractDynamicStore.java:425) at org.neo4j.kernel.impl.nioneo.store.PropertyStore.getRecord(PropertyStore.java:362) at org.neo4j.kernel.impl.nioneo.xa.ReadTransaction.loadPropertyValue(ReadTransaction.java:208) at org.neo4j.kernel.impl.persistence.PersistenceManager.loadPropertyValue(PersistenceManager.java:87) at org.neo4j.kernel.impl.core.NodeManager.loadPropertyValue(NodeManager.java:602) at org.neo4j.kernel.impl.core.Primitive.getPropertyValue(Primitive.java:544) at org.neo4j.kernel.impl.core.Primitive.getProperty(Primitive.java:160) at org.neo4j.kernel.impl.core.NodeProxy.getProperty(NodeProxy.java:145) ... Can someone help me with this problem? Thanks! -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4J-1-4-2-on-Ubuntu-11-04-tp3439028p3439028.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Neo4J 1.4.2 on Ubuntu 11.04
What is your memory mapped files configuration? Are you sure you aren't running out of memory? On Thu, Oct 20, 2011 at 11:14 PM, fernandobr fvdmagalh...@gmail.com wrote: Hi, I'm having some trouble using Neo4J in Ubuntu 11.04 Linux OS. The program I've writen works fine under Windows 7 but when I tried to run it at Linux I'm experiencing some problems: org.neo4j.kernel.impl.nioneo.store.PersistenceWindowPool logWarn WARNING: [/home/fmagalhaes/Coppe/GraphBD/CineastDB/neostore.propertystore.db.index] Unable to memory map Oct 20, 2011 6:59:17 PM org.neo4j.kernel.impl.nioneo.store.PersistenceWindowPool logWarn WARNING: [/home/fmagalhaes/Coppe/GraphBD/CineastDB/neostore.propertystore.db.index.keys] Unable to memory map as soon as my program reaches these line of code: GraphDatabaseService sourceDb = new EmbeddedReadOnlyGraphDatabase(/home/fmagalhaes/GraphDB/CineastDB); GraphDatabaseService targetDb = new EmbeddedGraphDatabase(/home/fmagalhaes/GraphDB/DistDB); After this warning message the program starts, but at a later point I keep receiving these error messages: WARNING: [/home/fmagalhaes/GraphDB/CineastDB/neostore.propertystore.db.strings] Unable to memory map org.neo4j.kernel.impl.nioneo.store.MappedMemException: Unable to map pos=659456 recordSize=133 totalSize=136192 at org.neo4j.kernel.impl.nioneo.store.MappedPersistenceWindow.init(MappedPersistenceWindow.java:61) at org.neo4j.kernel.impl.nioneo.store.PersistenceWindowPool.allocateNewWindow(PersistenceWindowPool.java:603) at org.neo4j.kernel.impl.nioneo.store.PersistenceWindowPool.refreshBricks(PersistenceWindowPool.java:501) at org.neo4j.kernel.impl.nioneo.store.PersistenceWindowPool.acquire(PersistenceWindowPool.java:128) at org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.acquireWindow(CommonAbstractStore.java:526) at org.neo4j.kernel.impl.nioneo.store.AbstractDynamicStore.getLightRecords(AbstractDynamicStore.java:425) at org.neo4j.kernel.impl.nioneo.store.PropertyStore.getRecord(PropertyStore.java:362) at org.neo4j.kernel.impl.nioneo.xa.ReadTransaction.loadPropertyValue(ReadTransaction.java:208) at org.neo4j.kernel.impl.persistence.PersistenceManager.loadPropertyValue(PersistenceManager.java:87) at org.neo4j.kernel.impl.core.NodeManager.loadPropertyValue(NodeManager.java:602) at org.neo4j.kernel.impl.core.Primitive.getPropertyValue(Primitive.java:544) at org.neo4j.kernel.impl.core.Primitive.getProperty(Primitive.java:160) at org.neo4j.kernel.impl.core.NodeProxy.getProperty(NodeProxy.java:145) ... Can someone help me with this problem? Thanks! -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4J-1-4-2-on-Ubuntu-11-04-tp3439028p3439028.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Neo4J 1.4.2 on Ubuntu 11.04
Thanks for the answer. I'm using Neo4J embedded and I didn't change the default configuration. I just started the database by doing this: GraphDatabaseService targetDB = new EmbeddedGraphDatabase(/home/fmagalhaes/GraphDB/DistDB); I'm not creating a HashMap to set properties like described here: http://docs.neo4j.org/chunked/milestone/configuration-introduction.html http://docs.neo4j.org/chunked/milestone/configuration-introduction.html . Do you think this can be the problem? I'm running this program on a computer with 4 GB of memory and I'm working with a relatively small graph (database has around 20 MB). -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4J-1-4-2-on-Ubuntu-11-04-tp3439028p3439197.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Neo4J 1.4.2 on Ubuntu 11.04
It is worth a try. Remember that on linux, memory mapped files are allocated outside of JVM heap, so when calculating total memory usage add whatever you configured to the JVM heap. Database size on hdd doesn't mean much, mine is 80megs, but when all nodes are cached (and usually they are) it can take up to 3 gigs. On Fri, Oct 21, 2011 at 12:27 AM, fernandobr fvdmagalh...@gmail.com wrote: Thanks for the answer. I'm using Neo4J embedded and I didn't change the default configuration. I just started the database by doing this: GraphDatabaseService targetDB = new EmbeddedGraphDatabase(/home/fmagalhaes/GraphDB/DistDB); I'm not creating a HashMap to set properties like described here: http://docs.neo4j.org/chunked/milestone/configuration-introduction.html http://docs.neo4j.org/chunked/milestone/configuration-introduction.html . Do you think this can be the problem? I'm running this program on a computer with 4 GB of memory and I'm working with a relatively small graph (database has around 20 MB). -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4J-1-4-2-on-Ubuntu-11-04-tp3439028p3439197.html Sent from the Neo4j Community Discussions mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user