Thanks Sumit.

I just tested some more queries via neo4jshell (both in the web interface 
and also using the command line tool) with no timeout occurring.  I'm 
running test queries that take around 6000-9000 ms.

And I verified that I added the commands to the proper config files, e.g.,

*neo4j.properties file:*

*execution_guard_enabled=true*

*neo4j-server.properties file:*

*org.neo4j.server.webserver.limit.executiontime=1000*

I even changed time to 500 and still nothing.  I don't know if this has 
anything to do with it but I'm using the community edition of neo4j.  So 
not sure if this timeout feature only works in enterprise version.

A sample neo4jshell output:

neo4j-sh (?)$ match n-[r]-() return distinct labels(n), type(r);
+-----------------------+
| labels(n)   | type(r) |
+-----------------------+
| ["Product"] | "OWN"   |
| ["User"]    | "OWN"   |
+-----------------------+
2 rows
5872 ms

Dan
 

On Thursday, May 7, 2015 at 2:22:36 PM UTC-4, Sumit Gupta wrote:

> Hi,
>
> Did this work in when you run the queries in neo4jshell? if not then check 
> whether you are setting in right configuration file which is picked up by 
> Neo4j.
>
> Also check the total time taken by the queries on your neo4jshell and 
> ensure that it is taking more than 1000 ms.
>
> Thanks,
> Sumit
>
> On Thursday, 7 May 2015 06:16:00 UTC+5:30, Dan wrote:
>>
>> Hello,
>>
>> I have a question about enabling the query timeout option in neo4j 2.2.0
>>
>> I added this to my neo4j.properties file:
>>
>> *execution_guard_enabled=true*
>>
>> And I added this line to my neo4j-server.properties file:
>>
>> *org.neo4j.server.webserver.limit.executiontime=1000*
>>
>> But when I run queries no timeout occurs as expected if they exceed 1 
>> second.  I'm running my queries in the neo4j web interface. 
>>
>> I have no clue what I could be doing wrong.  Or does this feature not 
>> apply when running queries in web interface?
>>
>> I have tried this on windows and also a Linux deployment with same 
>> results.
>>
>> Thanks, Dan
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to