[Neo4j] Expected performance question

2011-11-09 Thread Hans Birkeland
Hi,

My team has been experimenting with using neo4j for dependency tracking. 
For one of our scenarios we have run into performance issues and are
wondering if this is expected given the data, or if we are doing something
wrong.

Our test data consists of ~370k nodes and 4.1M relationships.  Some nodes
have a large number of relationships while many have just a few.

Starting with a relatively central node, using cypher through the web
console we query for a count of all nodes with incoming relationships from
the start node.  With increasing numbers of intermediate nodes we get the
following results:

For nodes 1 relationship away (~5k nodes), 170 ms.
For nodes up to 2 relationships away (~120k nodes), 2 seconds.
For nodes up to 3 relationships away (~670k nodes, there must obviously be
duplicates here :), 10 seconds.
Trying to go beyond 3 maxes out available memory, takes over one core and
takes  30 minutes (after which we kill it).

We have been testing with version 1.4.1, 1.4.2 and 1.5.M02 on a machine with
4 cores and 12 gig ram. Increasing the max java heap size to 6, 8, or 10 gig
did not have any noticable effect.

Any feedback or hints on settings we could try to tweak would be welcome.


--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Expected-performance-question-tp3492892p3492892.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] Expected performance question

2011-11-09 Thread Andres Taylor
Hi Hans,

First of - we have so far spent very little time so far making Cypher
awesome from a performance standpoint. Most of the energy has been put into
growing the syntax and expanding the feature set of Cypher.

The next version will hopefully involve a lot of performance work, and that
will change things.

Having said that - I'd love to know more about your query. What does it
look like?

Andrés

On Wed, Nov 9, 2011 at 9:08 AM, Hans Birkeland han...@funcom.com wrote:

 Hi,

 My team has been experimenting with using neo4j for dependency tracking.
 For one of our scenarios we have run into performance issues and are
 wondering if this is expected given the data, or if we are doing something
 wrong.

 Our test data consists of ~370k nodes and 4.1M relationships.  Some nodes
 have a large number of relationships while many have just a few.

 Starting with a relatively central node, using cypher through the web
 console we query for a count of all nodes with incoming relationships from
 the start node.  With increasing numbers of intermediate nodes we get the
 following results:

 For nodes 1 relationship away (~5k nodes), 170 ms.
 For nodes up to 2 relationships away (~120k nodes), 2 seconds.
 For nodes up to 3 relationships away (~670k nodes, there must obviously be
 duplicates here :), 10 seconds.
 Trying to go beyond 3 maxes out available memory, takes over one core and
 takes  30 minutes (after which we kill it).

 We have been testing with version 1.4.1, 1.4.2 and 1.5.M02 on a machine
 with
 4 cores and 12 gig ram. Increasing the max java heap size to 6, 8, or 10
 gig
 did not have any noticable effect.

 Any feedback or hints on settings we could try to tweak would be welcome.


 --
 View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/Expected-performance-question-tp3492892p3492892.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] Expected performance question

2011-11-09 Thread Hans Birkeland
Thanks for the quick reply! :)

This is the query: start n=node(159178) match n-[*1..4]-x return count(*)

Hans

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Expected-performance-question-tp3492892p3492924.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] Expected performance question

2011-11-09 Thread Mattias Persson
Also, support for these heavy nodes with many relationships on them is
being worked some on so that you can get relationship count per
type/direction immediately instead of iterating over them, as well as only
loading relevant relationships instead of all.

In the meantime it would be better to keep a property per node containing
the number of relationships, kept up to date by your code when you
create/delete relationships. You could perhaps write that as a
TransactionEventHandler (if you're down at java level).

2011/11/9 Hans Birkeland han...@funcom.com

 Thanks for the quick reply! :)

 This is the query: start n=node(159178) match n-[*1..4]-x return count(*)

 Hans

 --
 View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/Expected-performance-question-tp3492892p3492924.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




-- 
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Expected performance question

2011-11-09 Thread Hans Birkeland
Ah sorry, I should have clarified - in the final application we will want to
retrieve the nodes.  The reason we were just returning count(*) for the
tests is that returning a large number of nodes in the web console proved
less than ideal. :)

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Expected-performance-question-tp3492892p3492961.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] Expected performance question

2011-11-09 Thread Michael Hunger
Oh, and cypher supports streaming (as long as you don't sort/aggregate).

So that won't take up your memory. I would love if you could try that just 
using plain java code and iterating over the node-results and provide us with 
your performance numbers then.

Please make sure to run the test more than once, as the first test will be 
impacted by loading the scala libs and filling the neo4j caches.

Thanks a lot

Michael

Am 09.11.2011 um 09:50 schrieb Hans Birkeland:

 Ah sorry, I should have clarified - in the final application we will want to
 retrieve the nodes.  The reason we were just returning count(*) for the
 tests is that returning a large number of nodes in the web console proved
 less than ideal. :)
 
 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/Expected-performance-question-tp3492892p3492961.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] Expected performance question

2011-11-09 Thread Andres Taylor
On Wed, Nov 9, 2011 at 9:28 AM, Hans Birkeland han...@funcom.com wrote:

 Thanks for the quick reply! :)

 This is the query: start n=node(159178) match n-[*1..4]-x return count(*)


Good to know.

The reason you are getting duplicates is because you'll get the same node
in x multiple time - there might be a lot of paths from n to that
particular node. If you are interested in how many nodes can be reached
with that query, you should instead do: RETURN COUNT(DISTINCT x)

This query is even heavier than the original, though... :)

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


Re: [Neo4j] Neoclipse not showing all nodes

2011-11-09 Thread Vivek Prahlad
Did you try clicking on the '+' icon in the toolbar? That will increase the
traversal depth and show more of your graph. Neoclipse does not show you
your entire graph by default.

Vivek

On Tue, Nov 8, 2011 at 2:31 AM, Finalfreak niels_berg...@hotmail.comwrote:

 Hello everyone,

 I'm still pretty new to Neo4J en Neoclipse, but I'm a bit confused about
 the
 visualisation of Neoclipse.

 The situation:
 I created about 500 nodes.
 Once all nodes were created, I sorted them using the Index on date.

 I looped over the sorted nodes and created a straight-line relation like
 this:
 Node 5  Node 2  Node 1  Node 3  Node 4 etc...
 So the nodes are in a different order then they were created.

 Although, when I want to visualise them, it only shows me
 Node 2  Node 1  Node 3
 All others are ignored.

 First i checked if there was a relation missing, but that's not the
 problem.
 I connected all the nodes with a single node (the IS-A-NODE relation) and
 there I can see that all the relations are correct.

 Why does Neoclipse only shows the nodes connected to my first node, and
 ignores all others?

 I also tried to create 5 nodes, and create relations in the correct order:
 Node 1 - Node 2 - Node 3 etc...

 Neoclipse is only showing:
 Node 1 - Node 2

 How can I make Neoclipse showing everything, without creating relations for
 all the nodes to 1 general node.

 --
 View this message in context:
 http://neo4j-community-discussions.438527.n3.nabble.com/Neoclipse-not-showing-all-nodes-tp3488227p3488227.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] Native UUID support?

2011-11-09 Thread Axel Morgner
Hi,

is there any news on implementing native UUID in Neo4j?

Back in May 2010, there was a discussion about UUID in Neo: 
http://lists.neo4j.org/pipermail/user/2010-May/003625.html

Greetings

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


Re: [Neo4j] Delete All Node 0 Relationships in webadmin or cURL

2011-11-09 Thread Kevin Dieter
Thanks Peter.

The following worked perfectly:

g.v(0).bothE().each{g.removeEdge(it);};

Kevin

On Tue, Nov 8, 2011 at 4:56 PM, Peter Neubauer 
peter.neuba...@neotechnology.com wrote:

 You could use something like

 g.v(0).bothE().sideEffect{g.removeEdge(it);

 with http://docs.neo4j.org/chunked/snapshot/gremlin-plugin.html

 Does that work?

 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 Tue, Nov 8, 2011 at 9:35 PM, Kevin Dieter kevin.die...@megree.com
 wrote:
  Hi,
 
  I had a bug in my application code that resulted in many relationships
  being created to/from node 0 in my neo4j graph.
 
  Is there a straightforward way to delete all of node 0's relationships?
  I
  know how to do this through the REST API, but in this case I would like
 to
  do it either through the webadmin or using cURL.
 
  Thanks,
 
  Kevin
  ___
  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 mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


[Neo4j] osm_import.rb

2011-11-09 Thread grimace
I'm new to neo4j, and neo4j-spatial.  I've been able to import a small OSM
file using the java OSMImporter class and BatchInserter (based on the mvn
test code) but this blows up out-of-memory on larger files. In looking for
other methods I came across instructions for using jruby.  I installed jruby
and neo4j-spatial.  I tried to import an OSM file using jruby using these
instructions:


git clone g...@github.com:craigtaverner/neo4j-spatial.rb.git
cd neo4j-spatial.rb/examples
jruby osm_import.rb map2.osm
...


but when I got to the 1st import statement I got an error back:

   Error opening script file:
/home/gregm/Downloads/neo4j-spatial.rb/examples/osm_import.rb (No such file
or directory)

I can find an 'osm_import' in the bin directory of this repository but I'm
not sure how to use it.  I'm new to jruby ( ruby as well ) and may not have
installed correctly. I believe I did this:

  sudo jruby -S gem install neo4j-spatial

and it seemed to install.  If I run this command ( from the upper directory
in neo4j-spatial.rb ):

jruby bin/osm_import examples/map2.osm 

 I get this:

 
/usr/lib/jruby//lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require': no such file to load --  
   neo4j/spatial/jars/neo4j-spatial-0.6-SNAPSHOT
(LoadError)
from
/usr/lib/jruby//lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'

It looks, to me, like the code has changed but the instructions haven't, but
I'm at a loss for how to resolve this. I'm just trying to import a larger
OSM file.  Any ideas? 




--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/osm-import-rb-tp3493463p3493463.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] Suggestions on materials for learning graph theory

2011-11-09 Thread Rick Otten
Also there are several pop-science books on these ideas such as:   'Six Degrees 
- The Science Of A Connected Age', by Duncan Watts.

There is a lightweight graph theory book 'Puzzle and Graphs' by John Fujii, 
that isn't very rigorous from a mathematical perspective, and may not have much 
in the way of programming tools, but is a fun look at the field.

Most of math focused books are going to be pretty dense though.  It is a 175 
year old branch of mathematics and is traditionally only taught after you've 
exhausted most of the calculus track as a math student (although  it need not 
be).  Perhaps there is a market for an 'introductory graph theory book for the 
social network programmer', maybe with a title 'Practical Applied Graph Theory' 
or something like that.  I haven't seen one yet.  (I'd add a copy to my 
personal library.)



-Original Message-
From: user-boun...@lists.neo4j.org [mailto:user-boun...@lists.neo4j.org] On 
Behalf Of maxdemarzi
Sent: Tuesday, November 08, 2011 6:48 PM
To: user@lists.neo4j.org
Subject: Re: [Neo4j] Suggestions on materials for learning graph theory

Marko's blog has some good articles.

http://markorodriguez.com/writings/

The Graph Traversal Pattern = http://arxiv.org/pdf/1004.1001v1 Constructions 
from Dots and Lines = http://arxiv.org/pdf/1006.2361v1


--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Suggestions-on-materials-for-learning-graph-theory-tp3490877p3492120.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] Fwd: Cool Discussion related to graph modelling of social networks

2011-11-09 Thread maxdemarzi
It's interesting how he disliked XFN (or any standards) because of the
rigidity of the relationship types, obviously we can have as many
relationship types as we want in Neo4j (last I remember performance drops at
around 10k right?)

One of the things the blog post talked about modeling Time and Strength of
the relationships.

In Neo4j, Relationships have properties, but they also have a type (IS_A,
FOLLOWS, FRIENDS) and direction. which feel like super properties since we
can get to them before reaching into the properties data.


Mattias Persson-2 wrote:
 
 Also, support for these heavy nodes with many relationships on them is 
 being worked some on so that you can get relationship count per 
 type/direction immediately instead of iterating over them, as well as only 
 loading relevant relationships instead of all. 
 

If the storage of relationships is being tweaked, is there a possibility we
can add a datetime and and a float super properties  (dated and measured)? 
This would give us a way to model Time and Strength in the graph without
having to dig into properties.  Obviously we could do these as regular
properties, my concern is with performance.


maciej wrote:
 
 No problem, says Poindexter. We'll add a time series of state
 transitions and exponentially decaying edge weights, model group dynamics
 as directional flows, and pass a context object in with each query... and
 around we go.
 

Ha!  Anyway, just throwing that out there.


--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Cool-Discussion-related-to-graph-modelling-of-social-networks-tp3492527p3493888.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] Native UUID support?

2011-11-09 Thread Peter Neubauer
Well,
per se it is probably not going to happen soon, but as Jim etc are
starting on the sharding work, there might be a chance to put a layer
of indirection in to resolve IDs to shards.

Any thoughts on that Jim?

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 Wed, Nov 9, 2011 at 12:35 PM, Axel Morgner a...@morgner.de wrote:
 Hi,

 is there any news on implementing native UUID in Neo4j?

 Back in May 2010, there was a discussion about UUID in Neo:
 http://lists.neo4j.org/pipermail/user/2010-May/003625.html

 Greetings

 Axel
 ___
 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] Sampling a Neo4j instance?

2011-11-09 Thread Anders Lindström

Hi,
I have looked through the archives and tried to find more information about how 
to sample the nodes of a Neo4j instance.
As it seems, one way to go is to iterate using 'getAllNodes' and keep on 
sampling until you are happy with the sample size. However, there is a 
restriction with this approach in that it is not random -- you just get the 
first N nodes of the 'getAllNodes' iterator. Is there an efficient way to do a 
random sampling of N nodes? (I believe one way is to iterate through _all_ 
results from 'getAllNodes' and pick among these randomly -- but this is not 
efficient and scales pretty bad.)
If relevant, the sample will be used as input to a sort of clustering algorithm 
which will then try to cluster similar semantic node types into different 
clusters (e.g., in the IMDb case, it can distinguish which nodes are movies and 
which are actors).
I intend to write my own server plugin to do this and then get the results from 
another application over the REST API. I feel that this can be kind of slow 
though. Are there any alternatives to send data faster?
Thanks!
Regards,Anders Lindström
  
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Native UUID support?

2011-11-09 Thread Jim Webber
Hey Peter,

I think you raise a good point. We'll need some kind of ID for objects stored 
in (v)shards, but that's likely to be some kind of hierarchical ID (so that we 
can locally and globally refer to objects in and across shards).

I think here the question boils down to: can we add (fast) support for UUIDs 
natively in our store, like we do for strings. I don't know the answer to that, 
but the kernel folks can probably offer some insight.

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


Re: [Neo4j] Sampling a Neo4j instance?

2011-11-09 Thread Jim Webber
Hi Anders,

When you do getAllNodes, you're getting back an iterable so as you point out 
the sample isn't random (unless it was written randomly to disk). If you're 
prepared to take a scattergun approach and tolerate being disk-bound, then you 
can ask for getNodeById using a made-up ID and deal with the times when your 
ID's don't resolve.

It'll be slow (since the chances of having the nodes in cache are low) but as 
random as your random ID generator.

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


[Neo4j] Neo4j REST server's log files

2011-11-09 Thread andrew ton


Hi,

What log files of the Neo4J REST server can I use to check what's going on in 
the server? The log/console.log and neo4j.x.x.log do not show transactions in 
the run time. I also looked into graph.db/tm_tx_log.x but I did not learn 
anything from there. Can somebody give me some pointers? 

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


Re: [Neo4j] Neo4j REST server's log files

2011-11-09 Thread Peter Neubauer
Andrew,
The database logs are in data/graphdb / messages.log
On Nov 9, 2011 5:39 PM, andrew ton andrewt...@yahoo.com wrote:



 Hi,

 What log files of the Neo4J REST server can I use to check what's going on
 in the server? The log/console.log and neo4j.x.x.log do not show
 transactions in the run time. I also looked into graph.db/tm_tx_log.x but I
 did not learn anything from there. Can somebody give me some pointers?

 Thanks,
 ___
 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 REST server's log files

2011-11-09 Thread andrew ton
Thanks Peter!

BR,



From: Peter Neubauer peter.neuba...@neotechnology.com
To: Neo4j user discussions user@lists.neo4j.org
Sent: Wednesday, November 9, 2011 8:46 AM
Subject: Re: [Neo4j] Neo4j REST server's log files

Andrew,
The database logs are in data/graphdb / messages.log
On Nov 9, 2011 5:39 PM, andrew ton andrewt...@yahoo.com wrote:



 Hi,

 What log files of the Neo4J REST server can I use to check what's going on
 in the server? The log/console.log and neo4j.x.x.log do not show
 transactions in the run time. I also looked into graph.db/tm_tx_log.x but I
 did not learn anything from there. Can somebody give me some pointers?

 Thanks,
 ___
 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 mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Native UUID support?

2011-11-09 Thread Michael Hunger
I think a separate UUID (2xLONG = 16 Bytes) property type would make sense, if 
I remember correctly property types with larger block sizes are now possible.
Otherwise it could be an inlined long[2].

Having good support on the API  level (integrated separate fast index + 
uniqueness) would be important as well.

That would come at the cost of dropping the exposure of native neo4j-ids. I 
think that's a worthwhile trade-off.

Michael

Am 09.11.2011 um 17:02 schrieb Jim Webber:

 Hey Peter,
 
 I think you raise a good point. We'll need some kind of ID for objects stored 
 in (v)shards, but that's likely to be some kind of hierarchical ID (so that 
 we can locally and globally refer to objects in and across shards).
 
 I think here the question boils down to: can we add (fast) support for UUIDs 
 natively in our store, like we do for strings. I don't know the answer to 
 that, but the kernel folks can probably offer some insight.
 
 Jim
 ___
 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 REST server's log files

2011-11-09 Thread andrew ton


Hi Peter,

I tried the messages.log but it only showed processes up to the time when the 
server is up

2011-11-09 08:59:19.669-0800: --- CONFIGURATION END ---
2011-11-09 08:59:19.733-0800: Extension org.neo4j.kernel.KernelExtension[kernel 
jmx] loaded ok
2011-11-09 08:59:19.857-0800: Extension org.neo4j.kernel.KernelExtension[shell] 
loaded ok
2011-11-09 08:59:19.858-0800: Extension org.neo4j.kernel.KernelExtension[kernel 
udc] loaded ok

The manual shows that the logging is configured in conf/logging.properties 
(java.util.logging.FileHandler.pattern=data/log/neo4j.%u.%g.log). I'm using the 
default settings but the log file was not updated in the run time. 
My purpose is that I want to see what is wrong when I failed to store an 
ontology into Neo4J.
Please help me out!

Thanks and regards,




From: Peter Neubauer peter.neuba...@neotechnology.com
To: Neo4j user discussions user@lists.neo4j.org
Sent: Wednesday, November 9, 2011 8:46 AM
Subject: Re: [Neo4j] Neo4j REST server's log files

Andrew,
The database logs are in data/graphdb / messages.log
On Nov 9, 2011 5:39 PM, andrew ton andrewt...@yahoo.com wrote:



 Hi,

 What log files of the Neo4J REST server can I use to check what's going on
 in the server? The log/console.log and neo4j.x.x.log do not show
 transactions in the run time. I also looked into graph.db/tm_tx_log.x but I
 did not learn anything from there. Can somebody give me some pointers?

 Thanks,
 ___
 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 mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Sampling a Neo4j instance?

2011-11-09 Thread Chris Gioran
Hi,

Backing Jim's algorithm with some code:

public static void main( String[] args )
{
long SAMPLE_SIZE = 1;
EmbeddedGraphDatabase db = new EmbeddedGraphDatabase(
path/to/db/ );
// Determine the highest possible id for the node store
long highId = ( (NeoStoreXaDataSource)
db.getConfig().getTxModule().getXaDataSourceManager().getXaDataSource(
Config.DEFAULT_DATA_SOURCE_NAME )
).getNeoStore().getNodeStore().getHighId();
System.out.println( highId +  is the highest id );
long i = 0;
long nextId;

// Do the sampling
Random random = new Random();
while ( i  SAMPLE_SIZE )
{
nextId = Math.abs( random.nextLong() ) % highId;
try
{
db.getNodeById( nextId );
i++;
System.out.println( id  + nextId +  is there );
}
catch ( NotFoundException e )
{
// NotFoundException is thrown when the node asked is not in use
System.out.println( id  + nextId +  not in use );
}
}
db.shutdown();
}

Like already mentioned, this will be slow. Random jumps around the
graph are not something caches can keep up with - unless your whole db
fits in memory. But accessing random pieces of an on-disk file cannot
be done much faster.

cheers,
CG

On Wed, Nov 9, 2011 at 6:08 PM, Jim Webber j...@neotechnology.com wrote:
 Hi Anders,

 When you do getAllNodes, you're getting back an iterable so as you point out 
 the sample isn't random (unless it was written randomly to disk). If you're 
 prepared to take a scattergun approach and tolerate being disk-bound, then 
 you can ask for getNodeById using a made-up ID and deal with the times when 
 your ID's don't resolve.

 It'll be slow (since the chances of having the nodes in cache are low) but as 
 random as your random ID generator.

 Jim
 ___
 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] Sampling a Neo4j instance?

2011-11-09 Thread Anders Lindström

Thanks to the both of you. I am very grateful that you took your time to put 
this into code -- how's that for community!
I presume this way of getting 'highId' is constant in time? It looks rather 
messy though -- is it really the most straightforward way to do it?
I am thinking about how efficient this will be. As I understand it, the 
sampling misses come from deleted nodes that once was there. But if I 
remember correctly, Neo4j tries to reuse these unused node indices when new 
nodes are added. But is an unused node index _guaranteed_ to be used given that 
there is one, or could inserting another node result in increasing 'highId' 
even though some indices below it are not used?
My conclusion is that the sampling misses will increase with index usage 
sparseness and that we will have a high rate of sampling misses when we had 
many deletes and few insertions recently. Would you agree?
Thanks again.
Regards,Anders

 Date: Wed, 9 Nov 2011 19:30:36 +0200
 From: chris.gio...@neotechnology.com
 To: user@lists.neo4j.org
 Subject: Re: [Neo4j] Sampling a Neo4j instance?
 
 Hi,
 
 Backing Jim's algorithm with some code:
 
 public static void main( String[] args )
 {
 long SAMPLE_SIZE = 1;
 EmbeddedGraphDatabase db = new EmbeddedGraphDatabase(
 path/to/db/ );
 // Determine the highest possible id for the node store
 long highId = ( (NeoStoreXaDataSource)
 db.getConfig().getTxModule().getXaDataSourceManager().getXaDataSource(
 Config.DEFAULT_DATA_SOURCE_NAME )
 ).getNeoStore().getNodeStore().getHighId();
 System.out.println( highId +  is the highest id );
 long i = 0;
 long nextId;
 
 // Do the sampling
 Random random = new Random();
 while ( i  SAMPLE_SIZE )
 {
 nextId = Math.abs( random.nextLong() ) % highId;
 try
 {
 db.getNodeById( nextId );
 i++;
 System.out.println( id  + nextId +  is there );
 }
 catch ( NotFoundException e )
 {
 // NotFoundException is thrown when the node asked is not in 
 use
 System.out.println( id  + nextId +  not in use );
 }
 }
 db.shutdown();
 }
 
 Like already mentioned, this will be slow. Random jumps around the
 graph are not something caches can keep up with - unless your whole db
 fits in memory. But accessing random pieces of an on-disk file cannot
 be done much faster.
 
 cheers,
 CG
 
 On Wed, Nov 9, 2011 at 6:08 PM, Jim Webber j...@neotechnology.com wrote:
  Hi Anders,
 
  When you do getAllNodes, you're getting back an iterable so as you point 
  out the sample isn't random (unless it was written randomly to disk). If 
  you're prepared to take a scattergun approach and tolerate being 
  disk-bound, then you can ask for getNodeById using a made-up ID and deal 
  with the times when your ID's don't resolve.
 
  It'll be slow (since the chances of having the nodes in cache are low) but 
  as random as your random ID generator.
 
  Jim
  ___
  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 mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Neo4j REST server's log files

2011-11-09 Thread Peter Neubauer
Andrew,
Go you have the generating code somewhere you check and reproduce?
On Nov 9, 2011 6:26 PM, andrew ton andrewt...@yahoo.com wrote:



 Hi Peter,

 I tried the messages.log but it only showed processes up to the time when
 the server is up

 2011-11-09 08:59:19.669-0800: --- CONFIGURATION END ---
 2011-11-09 08:59:19.733-0800: Extension
 org.neo4j.kernel.KernelExtension[kernel jmx] loaded ok
 2011-11-09 08:59:19.857-0800: Extension
 org.neo4j.kernel.KernelExtension[shell] loaded ok
 2011-11-09 08:59:19.858-0800: Extension
 org.neo4j.kernel.KernelExtension[kernel udc] loaded ok

 The manual shows that the logging is configured in conf/logging.properties
 (java.util.logging.FileHandler.pattern=data/log/neo4j.%u.%g.log). I'm using
 the default settings but the log file was not updated in the run time.
 My purpose is that I want to see what is wrong when I failed to store an
 ontology into Neo4J.
 Please help me out!

 Thanks and regards,



 
 From: Peter Neubauer peter.neuba...@neotechnology.com
 To: Neo4j user discussions user@lists.neo4j.org
 Sent: Wednesday, November 9, 2011 8:46 AM
 Subject: Re: [Neo4j] Neo4j REST server's log files

 Andrew,
 The database logs are in data/graphdb / messages.log
 On Nov 9, 2011 5:39 PM, andrew ton andrewt...@yahoo.com wrote:

 
 
  Hi,
 
  What log files of the Neo4J REST server can I use to check what's going
 on
  in the server? The log/console.log and neo4j.x.x.log do not show
  transactions in the run time. I also looked into graph.db/tm_tx_log.x
 but I
  did not learn anything from there. Can somebody give me some pointers?
 
  Thanks,
  ___
  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 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] Suggestions on materials for learning graph theory

2011-11-09 Thread S3Logic
Thanks for the suggestions 
It looks like Marko's articles may help make this subject a bit more
accessible for me as it covers some things I am already familiar with (I did
a lot of geospatial work at my previous gig so I'm familiar with quad
trees). I can handle the math, but I think Marko's articles are easier for
me to understand because of the way they are organized and how the
visualizations are presented. I will try to see if I can get my hands on
'Puzzles and Graphs', as that sounds like it would offer some useful
examples for when I am attempting to convey these concepts to others (once I
eventually undertand them ).

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Suggestions-on-materials-for-learning-graph-theory-tp3490877p3494661.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] Suggestions on materials for learning graph theory

2011-11-09 Thread Peter Neubauer
Cool Jordan,
let us know if you find more stuff that is useful!

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 Wed, Nov 9, 2011 at 8:55 PM, S3Logic jor...@s3logic.com wrote:
 Thanks for the suggestions
 It looks like Marko's articles may help make this subject a bit more
 accessible for me as it covers some things I am already familiar with (I did
 a lot of geospatial work at my previous gig so I'm familiar with quad
 trees). I can handle the math, but I think Marko's articles are easier for
 me to understand because of the way they are organized and how the
 visualizations are presented. I will try to see if I can get my hands on
 'Puzzles and Graphs', as that sounds like it would offer some useful
 examples for when I am attempting to convey these concepts to others (once I
 eventually undertand them ).

 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/Suggestions-on-materials-for-learning-graph-theory-tp3490877p3494661.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 REST server's log files

2011-11-09 Thread Mattias Persson
You want to look at data/log/console.log and data/log/neo4j.0.log (I think
it's called).

Peter, messages.log isn't for users, it's mainly for forensics/debugging
where a neo4j dev can get info by looking at.

Neo4j is rather light on the logging in general.

Den onsdagen den 9:e november 2011 skrev Peter Neubauer
peter.neuba...@neotechnology.com:
 Andrew,
 Go you have the generating code somewhere you check and reproduce?
 On Nov 9, 2011 6:26 PM, andrew ton andrewt...@yahoo.com wrote:



 Hi Peter,

 I tried the messages.log but it only showed processes up to the time when
 the server is up

 2011-11-09 08:59:19.669-0800: --- CONFIGURATION END ---
 2011-11-09 08:59:19.733-0800: Extension
 org.neo4j.kernel.KernelExtension[kernel jmx] loaded ok
 2011-11-09 08:59:19.857-0800: Extension
 org.neo4j.kernel.KernelExtension[shell] loaded ok
 2011-11-09 08:59:19.858-0800: Extension
 org.neo4j.kernel.KernelExtension[kernel udc] loaded ok

 The manual shows that the logging is configured in
conf/logging.properties
 (java.util.logging.FileHandler.pattern=data/log/neo4j.%u.%g.log). I'm
using
 the default settings but the log file was not updated in the run time.
 My purpose is that I want to see what is wrong when I failed to store an
 ontology into Neo4J.
 Please help me out!

 Thanks and regards,



 
 From: Peter Neubauer peter.neuba...@neotechnology.com
 To: Neo4j user discussions user@lists.neo4j.org
 Sent: Wednesday, November 9, 2011 8:46 AM
 Subject: Re: [Neo4j] Neo4j REST server's log files

 Andrew,
 The database logs are in data/graphdb / messages.log
 On Nov 9, 2011 5:39 PM, andrew ton andrewt...@yahoo.com wrote:

 
 
  Hi,
 
  What log files of the Neo4J REST server can I use to check what's going
 on
  in the server? The log/console.log and neo4j.x.x.log do not show
  transactions in the run time. I also looked into graph.db/tm_tx_log.x
 but I
  did not learn anything from there. Can somebody give me some pointers?
 
  Thanks,
  ___
  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 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


-- 
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.com
___
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user


Re: [Neo4j] Neo4j REST server's log files

2011-11-09 Thread andrew ton


Hi Peter,

I don't understand much your question. However, in my Restlet application I 
have a logging service using Java log to record all processes in my app. My 
problem is that I upload 20 ontologies and after serveral ontologies the Neo4J 
stops responding my REST request. It seems busy with some index lookup process. 
Consequently my app throws a NoHttpResponseException: The target server failed 
to respond.
I'd like to see what causes the problem inside Neo4J. Unfortunately both 
messages.log and neo4j.x.x.log do not show run time processes.
BTW, when I start up the server the neo4j.x.x.log shows 

INFO: Server started on [http://localhost:7474/]
Nov 9, 2011 10:22:22 AM org.neo4j.server.logging.Logger log
WARNING: 
java.lang.IllegalArgumentException: Bad sample time: 1320862942. Last update 
time was 1320862942, at least one second step is required
at org.rrd4j.core.RrdDb.store(RrdDb.java:553)
at org.rrd4j.core.Sample.update(Sample.java:197)
at org.neo4j.server.rrd.RrdSamplerImpl.updateSample(RrdSamplerImpl.java:62)
at org.neo4j.server.rrd.RrdFactory$1.updateSample(RrdFactory.java:109)
at org.neo4j.server.rrd.RrdJob.run(RrdJob.java:43)
at org.neo4j.server.rrd.ScheduledJob$1.run(ScheduledJob.java:41)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)



Nov 9, 2011 12:43:44 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
  org.neo4j.server.webadmin.rest
Nov 9, 2011 12:43:44 PM com.sun.jersey.api.core.ScanningResourceConfig 
logClasses
INFO: Root resource classes found:
  class org.neo4j.server.webadmin.rest.MonitorService
  class org.neo4j.server.webadmin.rest.RootService
  class org.neo4j.server.webadmin.rest.JmxService
  class org.neo4j.server.webadmin.rest.ConsoleService
Nov 9, 2011 12:43:44 PM com.sun.jersey.api.core.ScanningResourceConfig init
INFO: No provider classes found.
Nov 9, 2011 12:43:44 PM 
com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17 AM'
Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
  org.neo4j.server.rest.web
Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig 
logClasses
INFO: Root resource classes found:
  class org.neo4j.server.rest.web.ResourcesService
  class org.neo4j.server.rest.web.BatchOperationService
  class org.neo4j.server.rest.web.RestfulGraphDatabase
  class org.neo4j.server.rest.web.DatabaseMetadataService
  class org.neo4j.server.rest.web.ExtensionService
Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig 
logClasses
INFO: Provider classes found:
  class org.neo4j.server.rest.web.DatabaseBlockedExceptionMapper
Nov 9, 2011 12:43:45 PM 
com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17 AM'
Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.PackagesResourceConfig init
INFO: Scanning for root resource and provider classes in the packages:
  org.neo4j.server.rest.discovery
Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig 
logClasses
INFO: Root resource classes found:
  class org.neo4j.server.rest.discovery.DiscoveryService
Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig init
INFO: No provider classes found.
Nov 9, 2011 12:43:45 PM 
com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17 AM'

Sorry for this long mail.

Thanks,



From: Peter Neubauer peter.neuba...@neotechnology.com
To: Neo4j user discussions user@lists.neo4j.org
Sent: Wednesday, November 9, 2011 10:29 AM
Subject: Re: [Neo4j] Neo4j REST server's log files

Andrew,
Go you have the generating code somewhere you check and reproduce?
On Nov 9, 2011 6:26 PM, andrew ton andrewt...@yahoo.com wrote:



 Hi Peter,

 I tried the messages.log but it only showed processes up to the time when
 the server is up

 2011-11-09 08:59:19.669-0800: --- CONFIGURATION END ---
 2011-11-09 08:59:19.733-0800: Extension
 org.neo4j.kernel.KernelExtension[kernel jmx] loaded ok
 2011-11-09 08:59:19.857-0800: Extension
 org.neo4j.kernel.KernelExtension[shell] loaded ok
 2011-11-09 08:59:19.858-0800: Extension
 org.neo4j.kernel.KernelExtension[kernel udc] loaded ok

 The manual shows that the logging is configured in conf/logging.properties
 (java.util.logging.FileHandler.pattern=data/log/neo4j.%u.%g.log). I'm using
 the default settings but the log file was not updated in the run time.
 My purpose is that I want to see what is wrong when I failed to store an
 ontology into Neo4J.
 Please help me out!

 Thanks and regards,



 
 From: Peter Neubauer peter.neuba...@neotechnology.com
 To: Neo4j 

Re: [Neo4j] Neo4j REST server's log files

2011-11-09 Thread Peter Neubauer
Andrew,
What neo4j version are you using?
On Nov 9, 2011 10:07 PM, andrew ton andrewt...@yahoo.com wrote:



 Hi Peter,

 I don't understand much your question. However, in my Restlet application
 I have a logging service using Java log to record all processes in my app.
 My problem is that I upload 20 ontologies and after serveral ontologies the
 Neo4J stops responding my REST request. It seems busy with some index
 lookup process. Consequently my app throws a NoHttpResponseException: The
 target server failed to respond.
 I'd like to see what causes the problem inside Neo4J. Unfortunately both
 messages.log and neo4j.x.x.log do not show run time processes.
 BTW, when I start up the server the neo4j.x.x.log shows

 INFO: Server started on [http://localhost:7474/]
 Nov 9, 2011 10:22:22 AM org.neo4j.server.logging.Logger log
 WARNING:
 java.lang.IllegalArgumentException: Bad sample time: 1320862942. Last
 update time was 1320862942, at least one second step is required
 at org.rrd4j.core.RrdDb.store(RrdDb.java:553)
 at org.rrd4j.core.Sample.update(Sample.java:197)
 at org.neo4j.server.rrd.RrdSamplerImpl.updateSample(RrdSamplerImpl.java:62)
 at org.neo4j.server.rrd.RrdFactory$1.updateSample(RrdFactory.java:109)
 at org.neo4j.server.rrd.RrdJob.run(RrdJob.java:43)
 at org.neo4j.server.rrd.ScheduledJob$1.run(ScheduledJob.java:41)
 at java.util.TimerThread.mainLoop(Timer.java:512)
 at java.util.TimerThread.run(Timer.java:462)

 

 Nov 9, 2011 12:43:44 PM com.sun.jersey.api.core.PackagesResourceConfig init
 INFO: Scanning for root resource and provider classes in the packages:
   org.neo4j.server.webadmin.rest
 Nov 9, 2011 12:43:44 PM com.sun.jersey.api.core.ScanningResourceConfig
 logClasses
 INFO: Root resource classes found:
   class org.neo4j.server.webadmin.rest.MonitorService
   class org.neo4j.server.webadmin.rest.RootService
   class org.neo4j.server.webadmin.rest.JmxService
   class org.neo4j.server.webadmin.rest.ConsoleService
 Nov 9, 2011 12:43:44 PM com.sun.jersey.api.core.ScanningResourceConfig init
 INFO: No provider classes found.
 Nov 9, 2011 12:43:44 PM
 com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
 INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17
 AM'
 Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.PackagesResourceConfig init
 INFO: Scanning for root resource and provider classes in the packages:
   org.neo4j.server.rest.web
 Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig
 logClasses
 INFO: Root resource classes found:
   class org.neo4j.server.rest.web.ResourcesService
   class org.neo4j.server.rest.web.BatchOperationService
   class org.neo4j.server.rest.web.RestfulGraphDatabase
   class org.neo4j.server.rest.web.DatabaseMetadataService
   class org.neo4j.server.rest.web.ExtensionService
 Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig
 logClasses
 INFO: Provider classes found:
   class org.neo4j.server.rest.web.DatabaseBlockedExceptionMapper
 Nov 9, 2011 12:43:45 PM
 com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
 INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17
 AM'
 Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.PackagesResourceConfig init
 INFO: Scanning for root resource and provider classes in the packages:
   org.neo4j.server.rest.discovery
 Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig
 logClasses
 INFO: Root resource classes found:
   class org.neo4j.server.rest.discovery.DiscoveryService
 Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig init
 INFO: No provider classes found.
 Nov 9, 2011 12:43:45 PM
 com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
 INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17
 AM'

 Sorry for this long mail.

 Thanks,


 
 From: Peter Neubauer peter.neuba...@neotechnology.com
 To: Neo4j user discussions user@lists.neo4j.org
 Sent: Wednesday, November 9, 2011 10:29 AM
 Subject: Re: [Neo4j] Neo4j REST server's log files

 Andrew,
 Go you have the generating code somewhere you check and reproduce?
 On Nov 9, 2011 6:26 PM, andrew ton andrewt...@yahoo.com wrote:

 
 
  Hi Peter,
 
  I tried the messages.log but it only showed processes up to the time when
  the server is up
 
  2011-11-09 08:59:19.669-0800: --- CONFIGURATION END ---
  2011-11-09 08:59:19.733-0800: Extension
  org.neo4j.kernel.KernelExtension[kernel jmx] loaded ok
  2011-11-09 08:59:19.857-0800: Extension
  org.neo4j.kernel.KernelExtension[shell] loaded ok
  2011-11-09 08:59:19.858-0800: Extension
  org.neo4j.kernel.KernelExtension[kernel udc] loaded ok
 
  The manual shows that the logging is configured in
 conf/logging.properties
  (java.util.logging.FileHandler.pattern=data/log/neo4j.%u.%g.log). I'm
 using
  the default settings but the log file was not updated in the run time.
  My purpose is that I want to see what is wrong 

Re: [Neo4j] Neo4j REST server's log files

2011-11-09 Thread andrew ton


Hi,

I also looked into console.log and what I saw was

11/9/11 12:43:43 PM org.neo4j.server.NeoServerWithEmbeddedWebServer INFO: 
Starting Neo Server on port [7474] with [80] threads available
11/9/11 12:43:43 PM org.neo4j.server.database.Database INFO: Using database at 
/Programming/Projects/Resources/Semantic/NoSQL 
DataBases/Neo4J/package/neo4j-community-1.5-SNAPSHOT/data/graph.db
11/9/11 12:43:44 PM org.neo4j.server.modules.DiscoveryModule INFO: Mounted 
discovery module at [/]
11/9/11 12:43:44 PM org.neo4j.server.plugins.PluginManager INFO: Loaded server 
plugin CypherPlugin
11/9/11 12:43:44 PM org.neo4j.server.plugins.PluginManager INFO: Loaded server 
plugin GremlinPlugin
11/9/11 12:43:44 PM org.neo4j.server.modules.RESTApiModule INFO: Mounted REST 
API at [/db/data/]
11/9/11 12:43:44 PM org.neo4j.server.modules.ManagementApiModule INFO: Mounted 
management API at [/db/manage/]
11/9/11 12:43:44 PM org.neo4j.server.modules.WebAdminModule INFO: Mounted 
webadmin at [/webadmin]
11/9/11 12:43:44 PM org.neo4j.server.web.Jetty6WebServer INFO: Mounting static 
content at [/webadmin] from [webadmin-html]
11/9/11 12:43:45 PM org.neo4j.server.statistic.StatisticStartupListener INFO: 
adding statistic-filter to /webadmin
11/9/11 12:43:45 PM org.neo4j.server.statistic.StatisticStartupListener INFO: 
adding statistic-filter to /db/manage
11/9/11 12:43:45 PM org.neo4j.server.statistic.StatisticStartupListener INFO: 
adding statistic-filter to /db/data
11/9/11 12:43:45 PM org.neo4j.server.statistic.StatisticStartupListener INFO: 
adding statistic-filter to /
11/9/11 12:43:45 PM org.neo4j.server.NeoServerWithEmbeddedWebServer INFO: 
Server started on [http://localhost:7474/]


This log did not show updates in the run time either.

Thanks,




From: Mattias Persson matt...@neotechnology.com
To: Neo4j user discussions user@lists.neo4j.org
Sent: Wednesday, November 9, 2011 12:38 PM
Subject: Re: [Neo4j] Neo4j REST server's log files

You want to look at data/log/console.log and data/log/neo4j.0.log (I think
it's called).

Peter, messages.log isn't for users, it's mainly for forensics/debugging
where a neo4j dev can get info by looking at.

Neo4j is rather light on the logging in general.

Den onsdagen den 9:e november 2011 skrev Peter Neubauer
peter.neuba...@neotechnology.com:
 Andrew,
 Go you have the generating code somewhere you check and reproduce?
 On Nov 9, 2011 6:26 PM, andrew ton andrewt...@yahoo.com wrote:



 Hi Peter,

 I tried the messages.log but it only showed processes up to the time when
 the server is up

 2011-11-09 08:59:19.669-0800: --- CONFIGURATION END ---
 2011-11-09 08:59:19.733-0800: Extension
 org.neo4j.kernel.KernelExtension[kernel jmx] loaded ok
 2011-11-09 08:59:19.857-0800: Extension
 org.neo4j.kernel.KernelExtension[shell] loaded ok
 2011-11-09 08:59:19.858-0800: Extension
 org.neo4j.kernel.KernelExtension[kernel udc] loaded ok

 The manual shows that the logging is configured in
conf/logging.properties
 (java.util.logging.FileHandler.pattern=data/log/neo4j.%u.%g.log). I'm
using
 the default settings but the log file was not updated in the run time.
 My purpose is that I want to see what is wrong when I failed to store an
 ontology into Neo4J.
 Please help me out!

 Thanks and regards,



 
 From: Peter Neubauer peter.neuba...@neotechnology.com
 To: Neo4j user discussions user@lists.neo4j.org
 Sent: Wednesday, November 9, 2011 8:46 AM
 Subject: Re: [Neo4j] Neo4j REST server's log files

 Andrew,
 The database logs are in data/graphdb / messages.log
 On Nov 9, 2011 5:39 PM, andrew ton andrewt...@yahoo.com wrote:

 
 
  Hi,
 
  What log files of the Neo4J REST server can I use to check what's going
 on
  in the server? The log/console.log and neo4j.x.x.log do not show
  transactions in the run time. I also looked into graph.db/tm_tx_log.x
 but I
  did not learn anything from there. Can somebody give me some pointers?
 
  Thanks,
  ___
  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 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


-- 
Mattias Persson, [matt...@neotechnology.com]
Hacker, Neo Technology
www.neotechnology.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 REST server's log files

2011-11-09 Thread andrew ton


I'm using 1.5-SNAPSHOT

Andrew



From: Peter Neubauer peter.neuba...@neotechnology.com
To: Neo4j user discussions user@lists.neo4j.org
Sent: Wednesday, November 9, 2011 1:11 PM
Subject: Re: [Neo4j] Neo4j REST server's log files

Andrew,
What neo4j version are you using?
On Nov 9, 2011 10:07 PM, andrew ton andrewt...@yahoo.com wrote:



 Hi Peter,

 I don't understand much your question. However, in my Restlet application
 I have a logging service using Java log to record all processes in my app.
 My problem is that I upload 20 ontologies and after serveral ontologies the
 Neo4J stops responding my REST request. It seems busy with some index
 lookup process. Consequently my app throws a NoHttpResponseException: The
 target server failed to respond.
 I'd like to see what causes the problem inside Neo4J. Unfortunately both
 messages.log and neo4j.x.x.log do not show run time processes.
 BTW, when I start up the server the neo4j.x.x.log shows

 INFO: Server started on [http://localhost:7474/]
 Nov 9, 2011 10:22:22 AM org.neo4j.server.logging.Logger log
 WARNING:
 java.lang.IllegalArgumentException: Bad sample time: 1320862942. Last
 update time was 1320862942, at least one second step is required
 at org.rrd4j.core.RrdDb.store(RrdDb.java:553)
 at org.rrd4j.core.Sample.update(Sample.java:197)
 at org.neo4j.server.rrd.RrdSamplerImpl.updateSample(RrdSamplerImpl.java:62)
 at org.neo4j.server.rrd.RrdFactory$1.updateSample(RrdFactory.java:109)
 at org.neo4j.server.rrd.RrdJob.run(RrdJob.java:43)
 at org.neo4j.server.rrd.ScheduledJob$1.run(ScheduledJob.java:41)
 at java.util.TimerThread.mainLoop(Timer.java:512)
 at java.util.TimerThread.run(Timer.java:462)

 

 Nov 9, 2011 12:43:44 PM com.sun.jersey.api.core.PackagesResourceConfig init
 INFO: Scanning for root resource and provider classes in the packages:
   org.neo4j.server.webadmin.rest
 Nov 9, 2011 12:43:44 PM com.sun.jersey.api.core.ScanningResourceConfig
 logClasses
 INFO: Root resource classes found:
   class org.neo4j.server.webadmin.rest.MonitorService
   class org.neo4j.server.webadmin.rest.RootService
   class org.neo4j.server.webadmin.rest.JmxService
   class org.neo4j.server.webadmin.rest.ConsoleService
 Nov 9, 2011 12:43:44 PM com.sun.jersey.api.core.ScanningResourceConfig init
 INFO: No provider classes found.
 Nov 9, 2011 12:43:44 PM
 com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
 INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17
 AM'
 Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.PackagesResourceConfig init
 INFO: Scanning for root resource and provider classes in the packages:
   org.neo4j.server.rest.web
 Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig
 logClasses
 INFO: Root resource classes found:
   class org.neo4j.server.rest.web.ResourcesService
   class org.neo4j.server.rest.web.BatchOperationService
   class org.neo4j.server.rest.web.RestfulGraphDatabase
   class org.neo4j.server.rest.web.DatabaseMetadataService
   class org.neo4j.server.rest.web.ExtensionService
 Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig
 logClasses
 INFO: Provider classes found:
   class org.neo4j.server.rest.web.DatabaseBlockedExceptionMapper
 Nov 9, 2011 12:43:45 PM
 com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
 INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17
 AM'
 Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.PackagesResourceConfig init
 INFO: Scanning for root resource and provider classes in the packages:
   org.neo4j.server.rest.discovery
 Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig
 logClasses
 INFO: Root resource classes found:
   class org.neo4j.server.rest.discovery.DiscoveryService
 Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig init
 INFO: No provider classes found.
 Nov 9, 2011 12:43:45 PM
 com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
 INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17
 AM'

 Sorry for this long mail.

 Thanks,


 
 From: Peter Neubauer peter.neuba...@neotechnology.com
 To: Neo4j user discussions user@lists.neo4j.org
 Sent: Wednesday, November 9, 2011 10:29 AM
 Subject: Re: [Neo4j] Neo4j REST server's log files

 Andrew,
 Go you have the generating code somewhere you check and reproduce?
 On Nov 9, 2011 6:26 PM, andrew ton andrewt...@yahoo.com wrote:

 
 
  Hi Peter,
 
  I tried the messages.log but it only showed processes up to the time when
  the server is up
 
  2011-11-09 08:59:19.669-0800: --- CONFIGURATION END ---
  2011-11-09 08:59:19.733-0800: Extension
  org.neo4j.kernel.KernelExtension[kernel jmx] loaded ok
  2011-11-09 08:59:19.857-0800: Extension
  org.neo4j.kernel.KernelExtension[shell] loaded ok
  2011-11-09 08:59:19.858-0800: Extension
  org.neo4j.kernel.KernelExtension[kernel udc] loaded ok
 
  The manual shows 

Re: [Neo4j] Neo4j REST server's log files

2011-11-09 Thread Peter Neubauer
Andrew,
this sounds like the RRD database in the server got broken. Could you
delete data/rrd and start up again? Also, David is in your timezone
and maybe can connect with you directly to look into this?

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 Wed, Nov 9, 2011 at 10:07 PM, andrew ton andrewt...@yahoo.com wrote:


 Hi Peter,

 I don't understand much your question. However, in my Restlet application I 
 have a logging service using Java log to record all processes in my app. My 
 problem is that I upload 20 ontologies and after serveral ontologies the 
 Neo4J stops responding my REST request. It seems busy with some index lookup 
 process. Consequently my app throws a NoHttpResponseException: The target 
 server failed to respond.
 I'd like to see what causes the problem inside Neo4J. Unfortunately both 
 messages.log and neo4j.x.x.log do not show run time processes.
 BTW, when I start up the server the neo4j.x.x.log shows

 INFO: Server started on [http://localhost:7474/]
 Nov 9, 2011 10:22:22 AM org.neo4j.server.logging.Logger log
 WARNING:
 java.lang.IllegalArgumentException: Bad sample time: 1320862942. Last update 
 time was 1320862942, at least one second step is required
 at org.rrd4j.core.RrdDb.store(RrdDb.java:553)
 at org.rrd4j.core.Sample.update(Sample.java:197)
 at org.neo4j.server.rrd.RrdSamplerImpl.updateSample(RrdSamplerImpl.java:62)
 at org.neo4j.server.rrd.RrdFactory$1.updateSample(RrdFactory.java:109)
 at org.neo4j.server.rrd.RrdJob.run(RrdJob.java:43)
 at org.neo4j.server.rrd.ScheduledJob$1.run(ScheduledJob.java:41)
 at java.util.TimerThread.mainLoop(Timer.java:512)
 at java.util.TimerThread.run(Timer.java:462)

 

 Nov 9, 2011 12:43:44 PM com.sun.jersey.api.core.PackagesResourceConfig init
 INFO: Scanning for root resource and provider classes in the packages:
   org.neo4j.server.webadmin.rest
 Nov 9, 2011 12:43:44 PM com.sun.jersey.api.core.ScanningResourceConfig 
 logClasses
 INFO: Root resource classes found:
   class org.neo4j.server.webadmin.rest.MonitorService
   class org.neo4j.server.webadmin.rest.RootService
   class org.neo4j.server.webadmin.rest.JmxService
   class org.neo4j.server.webadmin.rest.ConsoleService
 Nov 9, 2011 12:43:44 PM com.sun.jersey.api.core.ScanningResourceConfig init
 INFO: No provider classes found.
 Nov 9, 2011 12:43:44 PM 
 com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
 INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17 AM'
 Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.PackagesResourceConfig init
 INFO: Scanning for root resource and provider classes in the packages:
   org.neo4j.server.rest.web
 Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig 
 logClasses
 INFO: Root resource classes found:
   class org.neo4j.server.rest.web.ResourcesService
   class org.neo4j.server.rest.web.BatchOperationService
   class org.neo4j.server.rest.web.RestfulGraphDatabase
   class org.neo4j.server.rest.web.DatabaseMetadataService
   class org.neo4j.server.rest.web.ExtensionService
 Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig 
 logClasses
 INFO: Provider classes found:
   class org.neo4j.server.rest.web.DatabaseBlockedExceptionMapper
 Nov 9, 2011 12:43:45 PM 
 com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
 INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17 AM'
 Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.PackagesResourceConfig init
 INFO: Scanning for root resource and provider classes in the packages:
   org.neo4j.server.rest.discovery
 Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig 
 logClasses
 INFO: Root resource classes found:
   class org.neo4j.server.rest.discovery.DiscoveryService
 Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig init
 INFO: No provider classes found.
 Nov 9, 2011 12:43:45 PM 
 com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
 INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011 11:17 AM'

 Sorry for this long mail.

 Thanks,


 
 From: Peter Neubauer peter.neuba...@neotechnology.com
 To: Neo4j user discussions user@lists.neo4j.org
 Sent: Wednesday, November 9, 2011 10:29 AM
 Subject: Re: [Neo4j] Neo4j REST server's log files

 Andrew,
 Go you have the generating code somewhere you check and reproduce?
 On Nov 9, 2011 6:26 PM, andrew ton andrewt...@yahoo.com wrote:



 Hi Peter,

 I tried the messages.log but it only showed processes up to the time when
 the server is up

 2011-11-09 08:59:19.669-0800: --- CONFIGURATION END ---
 2011-11-09 08:59:19.733-0800: Extension
 

[Neo4j] Nice graph viz: The History Of Dance Music In One Handy Timeline

2011-11-09 Thread Michael Hunger
http://www.fastcodesign.com/1665393/infographic-of-the-day-the-history-of-dance-music-in-one-handy-timeline

Cheers

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


[Neo4j] Neo4J server administration: Manage running queries

2011-11-09 Thread l.aurea
Hi,

I am currently using Neo4J Enterprise 1.5.M02 and I have been trying to
understand how to manage my server.

Can you monitor which queries are running at a given moment? for example,
know who is running the command, for how long has it run, what's the query
that was issued.
Can you do anything about them? (like killing or restarting them)

I have been fiddling around with the web interface, but it seems it's mainly
a way of accessing the graph data more than anything.

What am I missing?

-- 
Lorenzo Aurea

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4J-server-administration-Manage-running-queries-tp3495257p3495257.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] Neo4J: I am unable to run multiple queries at the same time

2011-11-09 Thread l.aurea
Hi,

I hope it's something obvious (because I was not able to find anything on
this...) but I am running Neo4J Enterprise 1.5.M02 and I am being unable to
run more than query at the same time.

I can try either with Cypher or through REST, but if I issue multiple
queries, they all wait for the currently running one to complete before
proceeding (or at least it seems so).

I think I am doing something wrong, what is it?

-- 
LA

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4J-I-am-unable-to-run-multiple-queries-at-the-same-time-tp3495290p3495290.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: I am unable to run multiple queries at the same time

2011-11-09 Thread Michael Hunger
Thanks for pointing out the missing query monitoring issues. We'll work on many 
ops / monitoring related aspects of Neo4j in the next release, so that will be 
probably taken care of.

The web-console is a single execution shell intended for ad-hoc queries.

With REST you would just issue queries with multiple client threads / callers 
which will be executed in parallel.

If you already did that, could you please describe your REST-client setup in 
more detail?

HTH

Michael

Am 10.11.2011 um 01:20 schrieb l.aurea:

 Hi,
 
 I hope it's something obvious (because I was not able to find anything on
 this...) but I am running Neo4J Enterprise 1.5.M02 and I am being unable to
 run more than query at the same time.
 
 I can try either with Cypher or through REST, but if I issue multiple
 queries, they all wait for the currently running one to complete before
 proceeding (or at least it seems so).
 
 I think I am doing something wrong, what is it?
 
 -- 
 LA
 
 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/Neo4J-I-am-unable-to-run-multiple-queries-at-the-same-time-tp3495290p3495290.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: I am unable to run multiple queries at the same time

2011-11-09 Thread l.aurea
Test 1:
- Run one big query in Cypher console in the webadmin
- Run one big query through curl to send a REST request

When we do this, the REST request will hang until the Cypher execution is
complete. Is this intended?

Test 2:
- Run two big queries through curl (in separate sessions) to send a REST
request

One of the two queries will hang waiting for the other to finish. Is this
intended?

Slightly unrelated note: is there a way to get the reply of a REST query
compressed? We got 80 Mb replies which are just big JSON objects which are
easily compressable (since they are text).

-- 
Lorenzo

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Neo4J-I-am-unable-to-run-multiple-queries-at-the-same-time-tp3495290p3495318.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] py2neo 0.982

2011-11-09 Thread Peter Neubauer
Thanks Nigel for working hard on Py2neo - it's becoming a very cool binding!

Also, GEOFF for the clean insertion of data is starting to shape up -
I am hoping to get server side support in after the release :) Related
to this is another issue. How are we going to insert subgraphs that
refer to existing nodes? There are a number of interesting scenarios
here:

- insert data as part of a JSON payload to existing nodes, encoded in
GEOFF (kind of document substructures) - something like
http://docs.neo4j.org/chunked/snapshot/rest-api-node-properties.html#rest-api-set-property-on-node
but with a GEOFF payload that is resulting in a new subgraph

- insert a subgraph, but as part of the insertion, attach the subgraph
to an existing stucture

- have PQL support mutating statements (INSERT, UPDATE etc) and maybe
use GEOFF to describe substructures for mutations.

Any thoughts?

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 Tue, Nov 8, 2011 at 9:02 AM, Nigel Small ni...@nigelsmall.name wrote:
 Hi all

 Have just released a small but hopefully significant (performance-wise)
 upgrade to py2neo: a rewrite to geoff.py which submits the entire set of
 data in a single self-referential batch. Available from GitHub and PyPI.

 Cheers
 *
 *
 *Nigel Small*
 Phone: +44 7814 638 246
 Blog: http://nigelsmall.name/
 GTalk: ni...@nigelsmall.name
 MSN: nasm...@live.co.uk
 Skype: technige
 Twitter: @technige https://twitter.com/#!/technige
 LinkedIn: http://uk.linkedin.com/in/nigelsmall
 ___
 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 server administration: Manage running queries

2011-11-09 Thread Peter Neubauer
Hi John,
very good point, raised https://github.com/neo4j/advanced/issues/1 for
that. Also, I know Andres is thinking about how to instrument the
server so we can have profiling support for query execution. And
interesting topic for 1.6!

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, Nov 10, 2011 at 12:59 AM, l.aurea loren...@funcom.com wrote:
 Hi,

 I am currently using Neo4J Enterprise 1.5.M02 and I have been trying to
 understand how to manage my server.

 Can you monitor which queries are running at a given moment? for example,
 know who is running the command, for how long has it run, what's the query
 that was issued.
 Can you do anything about them? (like killing or restarting them)

 I have been fiddling around with the web interface, but it seems it's mainly
 a way of accessing the graph data more than anything.

 What am I missing?

 --
 Lorenzo Aurea

 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/Neo4J-server-administration-Manage-running-queries-tp3495257p3495257.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] osm_import.rb

2011-11-09 Thread Peter Neubauer
Gregory,
you are probably better off doing the Java code, I think Craig has not
updated the JRuby wrappers to the latest versions.

Do you have your example importing code somewhere? Would love to test
it out and maybe adjust it. Otherwise, you should be able to use the
OSMImporter in normal mode, see
https://github.com/neo4j/spatial/blob/master/src/test/java/org/neo4j/gis/spatial/TestOSMImport.java#L163
? Still, I think there might be issues, that's why I would like to be
able to recreate your import.

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 Wed, Nov 9, 2011 at 2:06 PM, grimace macegh...@gmail.com wrote:
 I'm new to neo4j, and neo4j-spatial.  I've been able to import a small OSM
 file using the java OSMImporter class and BatchInserter (based on the mvn
 test code) but this blows up out-of-memory on larger files. In looking for
 other methods I came across instructions for using jruby.  I installed jruby
 and neo4j-spatial.  I tried to import an OSM file using jruby using these
 instructions:


    git clone g...@github.com:craigtaverner/neo4j-spatial.rb.git
    cd neo4j-spatial.rb/examples
    jruby osm_import.rb map2.osm
    ...


 but when I got to the 1st import statement I got an error back:

   Error opening script file:
 /home/gregm/Downloads/neo4j-spatial.rb/examples/osm_import.rb (No such file
 or directory)

 I can find an 'osm_import' in the bin directory of this repository but I'm
 not sure how to use it.  I'm new to jruby ( ruby as well ) and may not have
 installed correctly. I believe I did this:

  sudo jruby -S gem install neo4j-spatial

 and it seemed to install.  If I run this command ( from the upper directory
 in neo4j-spatial.rb ):

        jruby bin/osm_import examples/map2.osm

  I get this:


 /usr/lib/jruby//lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
 `require': no such file to load --
                               neo4j/spatial/jars/neo4j-spatial-0.6-SNAPSHOT
 (LoadError)
        from
 /usr/lib/jruby//lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
 `require'

 It looks, to me, like the code has changed but the instructions haven't, but
 I'm at a loss for how to resolve this. I'm just trying to import a larger
 OSM file.  Any ideas?




 --
 View this message in context: 
 http://neo4j-community-discussions.438527.n3.nabble.com/osm-import-rb-tp3493463p3493463.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 REST server's log files

2011-11-09 Thread David Montag
Hi Andrew,

Let's connect during the day tomorrow for a higher-bandwidth discussion. Do
you have Skype?

Thanks,
David

On Wed, Nov 9, 2011 at 1:23 PM, Peter Neubauer 
peter.neuba...@neotechnology.com wrote:

 Andrew,
 this sounds like the RRD database in the server got broken. Could you
 delete data/rrd and start up again? Also, David is in your timezone
 and maybe can connect with you directly to look into this?

 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 Wed, Nov 9, 2011 at 10:07 PM, andrew ton andrewt...@yahoo.com wrote:
 
 
  Hi Peter,
 
  I don't understand much your question. However, in my Restlet
 application I have a logging service using Java log to record all processes
 in my app. My problem is that I upload 20 ontologies and after serveral
 ontologies the Neo4J stops responding my REST request. It seems busy with
 some index lookup process. Consequently my app throws
 a NoHttpResponseException: The target server failed to respond.
  I'd like to see what causes the problem inside Neo4J. Unfortunately both
 messages.log and neo4j.x.x.log do not show run time processes.
  BTW, when I start up the server the neo4j.x.x.log shows
 
  INFO: Server started on [http://localhost:7474/]
  Nov 9, 2011 10:22:22 AM org.neo4j.server.logging.Logger log
  WARNING:
  java.lang.IllegalArgumentException: Bad sample time: 1320862942. Last
 update time was 1320862942, at least one second step is required
  at org.rrd4j.core.RrdDb.store(RrdDb.java:553)
  at org.rrd4j.core.Sample.update(Sample.java:197)
  at
 org.neo4j.server.rrd.RrdSamplerImpl.updateSample(RrdSamplerImpl.java:62)
  at org.neo4j.server.rrd.RrdFactory$1.updateSample(RrdFactory.java:109)
  at org.neo4j.server.rrd.RrdJob.run(RrdJob.java:43)
  at org.neo4j.server.rrd.ScheduledJob$1.run(ScheduledJob.java:41)
  at java.util.TimerThread.mainLoop(Timer.java:512)
  at java.util.TimerThread.run(Timer.java:462)
 
  
 
  Nov 9, 2011 12:43:44 PM com.sun.jersey.api.core.PackagesResourceConfig
 init
  INFO: Scanning for root resource and provider classes in the packages:
org.neo4j.server.webadmin.rest
  Nov 9, 2011 12:43:44 PM com.sun.jersey.api.core.ScanningResourceConfig
 logClasses
  INFO: Root resource classes found:
class org.neo4j.server.webadmin.rest.MonitorService
class org.neo4j.server.webadmin.rest.RootService
class org.neo4j.server.webadmin.rest.JmxService
class org.neo4j.server.webadmin.rest.ConsoleService
  Nov 9, 2011 12:43:44 PM com.sun.jersey.api.core.ScanningResourceConfig
 init
  INFO: No provider classes found.
  Nov 9, 2011 12:43:44 PM
 com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
  INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011
 11:17 AM'
  Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.PackagesResourceConfig
 init
  INFO: Scanning for root resource and provider classes in the packages:
org.neo4j.server.rest.web
  Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig
 logClasses
  INFO: Root resource classes found:
class org.neo4j.server.rest.web.ResourcesService
class org.neo4j.server.rest.web.BatchOperationService
class org.neo4j.server.rest.web.RestfulGraphDatabase
class org.neo4j.server.rest.web.DatabaseMetadataService
class org.neo4j.server.rest.web.ExtensionService
  Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig
 logClasses
  INFO: Provider classes found:
class org.neo4j.server.rest.web.DatabaseBlockedExceptionMapper
  Nov 9, 2011 12:43:45 PM
 com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
  INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011
 11:17 AM'
  Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.PackagesResourceConfig
 init
  INFO: Scanning for root resource and provider classes in the packages:
org.neo4j.server.rest.discovery
  Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig
 logClasses
  INFO: Root resource classes found:
class org.neo4j.server.rest.discovery.DiscoveryService
  Nov 9, 2011 12:43:45 PM com.sun.jersey.api.core.ScanningResourceConfig
 init
  INFO: No provider classes found.
  Nov 9, 2011 12:43:45 PM
 com.sun.jersey.server.impl.application.WebApplicationImpl _initiate
  INFO: Initiating Jersey application, version 'Jersey: 1.9 09/02/2011
 11:17 AM'
 
  Sorry for this long mail.
 
  Thanks,
 
 
  
  From: Peter Neubauer peter.neuba...@neotechnology.com
  To: Neo4j user discussions user@lists.neo4j.org
  Sent: Wednesday, November 9, 2011 10:29 AM
  Subject: Re: [Neo4j] Neo4j REST server's log files
 
  Andrew,
  Go you have the generating code somewhere you check and reproduce?
  On 

[Neo4j] Can I keep files as a Property?

2011-11-09 Thread musa
Hi

Can I keep a file as a property in my graph?
If so , 
1.Is there a limitation on file size?
2.How can I implement it using REST technology?

muhamad.

--
View this message in context: 
http://neo4j-community-discussions.438527.n3.nabble.com/Can-I-keep-files-as-a-Property-tp3495949p3495949.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] Can't install server as a service on Amazon EC2 Linux

2011-11-09 Thread Aseem Kishore
I'm new to Amazon EC2. I launched a new Amazon Linux (the basic, default
image) instance, installed Neo4j on it, and tried to follow the
instructions here:

http://docs.neo4j.org/chunked/stable/server-installation.html#_linux_service

Unfortunately, running `neo4j install` (as well as `neo4j remove`, and
regardless of which user I specify or whether that user already exists or
not) always results in this error:

*update-rc.d: Command not found.*

I'm looking into some ways to run startup scripts on EC2, but I'm not sure
what the pros/cons are to starting Neo4j manually via a script vs. as a
formal service.

But just FYI -- can't install Neo4j as a service following the official
instructions on EC2 Amazon Linux. Help appreciated. Thanks!

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


Re: [Neo4j] Can't install server as a service on Amazon EC2 Linux

2011-11-09 Thread Aseem Kishore
Sorry, should have mentioned that I made sure to do sudo, and sudo works
for other commands just fine.

Aseem

On Wed, Nov 9, 2011 at 11:06 PM, Aseem Kishore aseem.kish...@gmail.comwrote:

 I'm new to Amazon EC2. I launched a new Amazon Linux (the basic, default
 image) instance, installed Neo4j on it, and tried to follow the
 instructions here:


 http://docs.neo4j.org/chunked/stable/server-installation.html#_linux_service

 Unfortunately, running `neo4j install` (as well as `neo4j remove`, and
 regardless of which user I specify or whether that user already exists or
 not) always results in this error:

  *update-rc.d: Command not found.*

 I'm looking into some ways to run startup scripts on EC2, but I'm not sure
 what the pros/cons are to starting Neo4j manually via a script vs. as a
 formal service.

 But just FYI -- can't install Neo4j as a service following the official
 instructions on EC2 Amazon Linux. Help appreciated. Thanks!

 Aseem

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