Re: [Neo4j] java.io.IOException when starting REST server on Ubuntu 10.04 32 bit

2010-08-24 Thread David Montag
Hi Todd,

We would really appreciate it if you could file a ticket on
https://trac.neo4j.org with all the info you can provide. Also, if you have
the time, you are definitely encouraged to have a look at the source and
submit a suggested patch. (see
http://wiki.neo4j.org/content/About_Contributor_License_Agreement for more
info)

We are super busy right now, but we have not lost track of this. My
suggestion is to take it as far as you can on your own first, put all the
info in the ticket, and then we can look at it. Thank you.

David

On Tue, Aug 24, 2010 at 11:08 AM, Todd Chaffee t...@mikamai.com wrote:

 Any chance of getting some pointers on how to deal with this?

 On Mon, Aug 23, 2010 at 11:52 AM, Todd Chaffee t...@mikamai.com wrote:

  I'm getting an error when starting up the REST server on an Ubuntu 10.04
  32bit box.  Output of uname -a
 Linux ubuntu-server-base-v01 2.6.32-24-generic #39-Ubuntu SMP Wed Jul
 28
  06:07:29 UTC 2010 i686 GNU/Linux
 
  I'm using the maven start script to run the REST server and here's the
  error I get:
 
  java.io.IOException: Invalid argument
  at sun.nio.ch.FileChannelImpl.map0(Native Method)
  at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:789)
  at
 
 org.neo4j.kernel.impl.transaction.xaframework.MemoryMappedLogBuffer.getNewMappedBuffer(MemoryMappedLogBuffer.java:77)
  at
 
 org.neo4j.kernel.impl.transaction.xaframework.MemoryMappedLogBuffer.init(MemoryMappedLogBuffer.java:46)
  at
 
 org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.open(XaLogicalLog.java:238)
  at
 
 org.neo4j.kernel.impl.transaction.xaframework.XaContainer.openLogicalLog(XaContainer.java:90)
  at
 
 org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.init(NeoStoreXaDataSource.java:131)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
  Method)
  at
 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
  at
 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at
 java.lang.reflect.Constructor.newInstance(Constructor.java:532)
  at
 
 org.neo4j.kernel.impl.transaction.XaDataSourceManager.create(XaDataSourceManager.java:72)
  at
 
 org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:147)
  at
 org.neo4j.kernel.GraphDbInstance.start(GraphDbInstance.java:134)
  at
  org.neo4j.kernel.EmbeddedGraphDbImpl.init(EmbeddedGraphDbImpl.java:98)
  at
 
 org.neo4j.kernel.EmbeddedGraphDatabase.init(EmbeddedGraphDatabase.java:79)
  at
 
 org.neo4j.rest.domain.DatabaseLocator.getGraphDatabase(DatabaseLocator.java:31)
  at
 
 org.neo4j.rest.domain.DatabaseLocator.getConfiguration(DatabaseLocator.java:44)
  at
 
 org.neo4j.rest.GrizzlyBasedWebServer.init(GrizzlyBasedWebServer.java:26)
  at
 
 org.neo4j.rest.GrizzlyBasedWebServer.clinit(GrizzlyBasedWebServer.java:17)
  at
 
 org.neo4j.rest.WebServerFactory.getDefaultWebServer(WebServerFactory.java:9)
  at org.neo4j.rest.Main.main(Main.java:16)
  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  at
 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
  at
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:616)
  at
 org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:291)
  at java.lang.Thread.run(Thread.java:636)
 
  According to Sun/Oracle, the transfer length is too large for the OS.
 
  http://forums.sun.com/thread.jspa?threadID=5205184
 
  For reference, it looks like the sizes are declared in GraphDbInstance on
  line 62, method getDefaultParms.  Is there any way I can override these
  sizes from the command line when starting up the REST server or does this
  need to be changed in the source code?
 
  Todd
 
 
 ___
 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] java.io.IOException when starting REST server on Ubuntu 10.04 32 bit

2010-08-24 Thread Johan Svensson
Todd,

Size of the memory mapped log buffer is final and size is set to 1024
* 1024 * 2 bytes (see MemoryMappedLogBuffer).

What JVM version are you running?

-Johan

On Tue, Aug 24, 2010 at 11:23 AM, David Montag
david.mon...@neotechnology.com wrote:
 Hi Todd,

 We would really appreciate it if you could file a ticket on
 https://trac.neo4j.org with all the info you can provide. Also, if you have
 the time, you are definitely encouraged to have a look at the source and
 submit a suggested patch. (see
 http://wiki.neo4j.org/content/About_Contributor_License_Agreement for more
 info)

 We are super busy right now, but we have not lost track of this. My
 suggestion is to take it as far as you can on your own first, put all the
 info in the ticket, and then we can look at it. Thank you.

 David

 On Tue, Aug 24, 2010 at 11:08 AM, Todd Chaffee t...@mikamai.com wrote:

 Any chance of getting some pointers on how to deal with this?

 On Mon, Aug 23, 2010 at 11:52 AM, Todd Chaffee t...@mikamai.com wrote:

  I'm getting an error when starting up the REST server on an Ubuntu 10.04
  32bit box.  Output of uname -a
     Linux ubuntu-server-base-v01 2.6.32-24-generic #39-Ubuntu SMP Wed Jul
 28
  06:07:29 UTC 2010 i686 GNU/Linux
 
  I'm using the maven start script to run the REST server and here's the
  error I get:
 
  java.io.IOException: Invalid argument
          at sun.nio.ch.FileChannelImpl.map0(Native Method)
          at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:789)
          at
 
 org.neo4j.kernel.impl.transaction.xaframework.MemoryMappedLogBuffer.getNewMappedBuffer(MemoryMappedLogBuffer.java:77)
          at
 
 org.neo4j.kernel.impl.transaction.xaframework.MemoryMappedLogBuffer.init(MemoryMappedLogBuffer.java:46)
          at
 
 org.neo4j.kernel.impl.transaction.xaframework.XaLogicalLog.open(XaLogicalLog.java:238)
          at
 
 org.neo4j.kernel.impl.transaction.xaframework.XaContainer.openLogicalLog(XaContainer.java:90)
          at
 
 org.neo4j.kernel.impl.nioneo.xa.NeoStoreXaDataSource.init(NeoStoreXaDataSource.java:131)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
  Method)
          at
 
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
          at
 
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
          at
 java.lang.reflect.Constructor.newInstance(Constructor.java:532)
          at
 
 org.neo4j.kernel.impl.transaction.XaDataSourceManager.create(XaDataSourceManager.java:72)
          at
 
 org.neo4j.kernel.impl.transaction.TxModule.registerDataSource(TxModule.java:147)
          at
 org.neo4j.kernel.GraphDbInstance.start(GraphDbInstance.java:134)
          at
  org.neo4j.kernel.EmbeddedGraphDbImpl.init(EmbeddedGraphDbImpl.java:98)
          at
 
 org.neo4j.kernel.EmbeddedGraphDatabase.init(EmbeddedGraphDatabase.java:79)
          at
 
 org.neo4j.rest.domain.DatabaseLocator.getGraphDatabase(DatabaseLocator.java:31)
          at
 
 org.neo4j.rest.domain.DatabaseLocator.getConfiguration(DatabaseLocator.java:44)
          at
 
 org.neo4j.rest.GrizzlyBasedWebServer.init(GrizzlyBasedWebServer.java:26)
          at
 
 org.neo4j.rest.GrizzlyBasedWebServer.clinit(GrizzlyBasedWebServer.java:17)
          at
 
 org.neo4j.rest.WebServerFactory.getDefaultWebServer(WebServerFactory.java:9)
          at org.neo4j.rest.Main.main(Main.java:16)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at
 
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at
 
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:616)
          at
 org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:291)
          at java.lang.Thread.run(Thread.java:636)
 
  According to Sun/Oracle, the transfer length is too large for the OS.
 
  http://forums.sun.com/thread.jspa?threadID=5205184
 
  For reference, it looks like the sizes are declared in GraphDbInstance on
  line 62, method getDefaultParms.  Is there any way I can override these
  sizes from the command line when starting up the REST server or does this
  need to be changed in the source code?
 
  Todd
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] java.io.IOException when starting REST server on Ubuntu 10.04 32 bit

2010-08-24 Thread Todd Chaffee
Hi David,

I've filed a bug report.  I'm afraid I've gone about as far as I can in
understanding what the problem is and/or how to fix it without just guessing
that reducing the memory sizes could fix it, but don't know if that would
create side effects.

Thanks,
Todd
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] java.io.IOException when starting REST server on Ubuntu 10.04 32 bit

2010-08-24 Thread Todd Chaffee
Hi Johan,

Output of java -version shows:

java version 1.6.0_18
OpenJDK Runtime Environment (IcedTea6 1.8.1) (6b18-1.8.1-0ubuntu1)
OpenJDK Client VM (build 16.0-b13, mixed mode, sharing)

Is that what you are looking for?  I've also added this information to the
trac ticket.

Todd
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user