[Neo4j] Neo4j Rest Server memory configuration
I installed neo4j as a service on linux. Then I configured in the neo4j-community-1.4.1/conf/neo4j-wrapper.conf file following init and max memory: # Initial Java Heap Size (in MB) wrapper.java.initmemory=512 # Maximum Java Heap Size (in MB) wrapper.java.maxmemory=768 The top output shows following: PIDUSER PR NI VIRT RES SHR S %CPU %MEMTIME+ COMMAND 17408 neo4j 18 0 1188m 155m 11m S0 5.1 2:12.76 java Should neo4j not reserverd 512m memory? What did I wrong? How can I discover If neo4j is running in java server mode? Result of java -version is: OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode). -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-Rest-Server-memory-configuration-tp3272360p3272360.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] Rest-Server Java Opts Configuration
Where is the best place to configure the heap size for the neo4j rest server. I don´t want to specify the java opts at startup. -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Rest-Server-Java-Opts-Configuration-tp3238301p3238301.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] Rest-Server Java Opts Configuration
Is it possible to change the bin/neo4j shell script file and add at line 67 JAVA_OPTS=-server ${wrapper_java_additional} *-Xms512M -Xmx1024M* -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Rest-Server-Java-Opts-Configuration-tp3238301p3238520.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] auto indexes in REST in 1.4?
Has anyone tried out the auto indexing feature? Did it works? -- View this message in context: http://neo4j-community-discussions.438527.n3.nabble.com/Neo4j-auto-indexes-in-REST-in-1-4-tp3159205p3178756.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] auto indexes in REST in 1.4?
I tried to configure the auto index for neo4j. -- neo4j.properties node_auto_indexing=true node_keys_indexable=name -- I created a node with a property name and value alex. When I request for the index with the url http://localhost:7474/db/data/index/node/node_auto_index/name/alex i get a org.neo4j.graphdb.NotFoundException. What am I doing wrong? Please can you help me. -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Neo4j-auto-indexes-in-REST-in-1-4-tp3159205p3167377.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Problems with neo4j 1.4 rest server and filter
Hi, I have some problems with the new version of neo4j. For my application i wrote a few unit test. These worked perfectly in neo4j 1.2 and 1.3 but not in 1.4. For example: I wanna have all relationships for a node with a special name. So I post following message to the url http://localhost:7474/db/data/node/1/traverse/relationship : { order : depth first, uniqueness : relationship, return filter : { language : javascript, body : position.length() 0 position.lastRelationship().getProperty('name').toLowerCase().indexOf('test')!=-1 }, max depth : 1 } I think neo4j ignores the filter and returns all relationships. -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Problems-with-neo4j-1-4-rest-server-and-filter-tp3162043p3162043.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] auto indexes in REST in 1.4?
Please tell me, how can I do that? I couldn´t find anything about it in the api doc (http://components.neo4j.org/neo4j-server/snapshot/rest.html) -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Neo4j-auto-indexes-in-REST-in-1-4-tp3159205p3162053.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Problems with neo4j 1.4 rest server and filter
Thanks a lot for your answer. Now it works perfect! -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Problems-with-neo4j-1-4-rest-server-and-filter-tp3162043p3162493.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Load last 10 created nodes from neo4j
Hi, thanks Craig and Rick for your answers! I will try put the last nodes and relationships to an index. Maybe this solution works for me. I think the better approach would be if neo4j-db would offer a function where i can read out the node or relationship id-counter! -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Load-last-10-created-nodes-from-neo4j-tp2633139p2641470.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
[Neo4j] Load last 10 created nodes from neo4j
Hi, is it possible to load for example the last 10 created nodes or relationships from the neo4j db? I know it is not the normal use case for a graph db but however i need a solution. Thanks for your answers, Mike -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Load-last-10-created-nodes-from-neo4j-tp2633139p2633139.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Traversing by Relationship property
Thanks a lot for your answers, now it works perfect! -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Traversing-by-Relationship-property-tp2464461p2512175.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user
Re: [Neo4j] Traversing by Relationship property
Thanks Mattias and Michael for your answers! I tried it with the following request for relationship property to. curl -X POST -H Accept:application/json -H Content-Type:application/json -d '{ order : depth first, uniqueness : node, return filter : { language : javascript, body : position.length() 0 position.lastRelationship().getProperty('to',0) == 1 }, max depth : 1 }' http://localhost:7474/db/data/node/40/traverse/node All my relationships have the property to but i got an exception that tois not defined: html head meta http-equiv=Content-Type content=text/html; charset=ISO-8859-1/ titleError 500 javax.script.ScriptException: sun.org.mozilla.javascript.EcmaError: ReferenceError: to is not defined. (lt;Unknown Sourcegt;#1) in lt;Unknown Sourcegt; at line number 1/title /head bodyh2HTTP ERROR 500/h2 pProblem accessing /db/data/node/40/traverse/node. Reason: prejavax.script.ScriptException: sun.org.mozilla.javascript.EcmaError: ReferenceError: to is not defined. (lt;Unknown Sourcegt;#1) in lt;Unknown Sourcegt; at line number 1/pre/ph3Caused by:/h3preorg.neo4j.server.rest.domain.EvaluationException: javax.script.ScriptException: sun.org.mozilla.javascript.EcmaError: ReferenceError: to is not defined. (lt;Unknown Sourcegt;#1) in lt;Unknown Sourcegt; at line number 1 at org.neo4j.server.rest.domain.EvaluatorFactory$CompiledScriptExecutor.eval(EvaluatorFactory.java:184) at org.neo4j.server.rest.domain.EvaluatorFactory$ScriptedReturnEvaluator.accept(EvaluatorFactory.java:256) at org.neo4j.server.rest.domain.EvaluatorFactory$ScriptedReturnEvaluator.accept(EvaluatorFactory.java:246) at org.neo4j.kernel.impl.traversal.TraversalDescriptionImpl$WrappedFilter.evaluate(TraversalDescriptionImpl.java:255) at org.neo4j.kernel.impl.traversal.MultiEvaluator.evaluate(MultiEvaluator.java:42) at org.neo4j.kernel.impl.traversal.TraversalBranchImpl.initialize(TraversalBranchImpl.java:88) at org.neo4j.kernel.impl.traversal.TraversalBranchImpl.next(TraversalBranchImpl.java:107) at org.neo4j.kernel.impl.traversal.StartNodeTraversalBranch.next(StartNodeTraversalBranch.java:51) at org.neo4j.kernel.PreorderDepthFirstSelector.next(PreorderDepthFirstSelector.java:49) at org.neo4j.kernel.impl.traversal.TraverserImpl$TraverserIterator.fetchNextOrNull(TraverserImpl.java:128) at org.neo4j.kernel.impl.traversal.TraverserImpl$TraverserIterator.fetchNextOrNull(TraverserImpl.java:95) at org.neo4j.helpers.collection.PrefetchingIterator.hasNext(PrefetchingIterator.java:56) at org.neo4j.server.rest.web.DatabaseActions.traverse(DatabaseActions.java:744) at org.neo4j.server.rest.web.RestfulGraphDatabase.traverse(RestfulGraphDatabase.java:674) at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:616) at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:187) at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:70) at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:279) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136) at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:86) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:136) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:74) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1357) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1289) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1239) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1229) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:420) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:497) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:684) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at
[Neo4j] Traversing by Relationship property
Hi, i`m using neo4j with the rest api. I have following question about traversing the graph: Is it possible to get all relationships of a node by a special property? Example: Node A has a relationship (type=abc, property number=1) to Node B Node A has a relationship (type=def, property number=1) to Node C Node A has a relationship (type=xyz, property number=1) to Node D Now, i wanna have all relationships for Node A with relationship property number=1. The relationship type don´t cares. When I traverse the graph i have to define the relationship type like: curl -X POST -H Accept:application/json -H Content-Type:application/json -d '{ order : depth first, uniqueness : node, relationships : [{ type : abc, direction : out }], return filter : { language : builtin, name : all }, max depth : 1 }' http://localhost:7474/db/data/node/1/traverse/node Is the only solution to make an index? Thanks for your answers! -- View this message in context: http://neo4j-user-list.438527.n3.nabble.com/Traversing-by-Relationship-property-tp2464461p2464461.html Sent from the Neo4J User List mailing list archive at Nabble.com. ___ Neo4j mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user