{"action":"closed","issue":{"url":"https://api.github.com/repos/neo4j/neo4j/issues/5969","labels_url":"https://api.github.com/repos/neo4j/neo4j/issues/5969/labels{/name}","comments_url":"https://api.github.com/repos/neo4j/neo4j/issues/5969/comments","events_url":"https://api.github.com/repos/neo4j/neo4j/issues/5969/events","html_url":"https://github.com/neo4j/neo4j/issues/5969","id":119035991,"number":5969,"title":"org.neo4j.kernel.guard.GuardTimeoutException","user":{"login":"xghrbc1001","id":3119517,"avatar_url":"https://avatars.githubusercontent.com/u/3119517?v=3","gravatar_id":"","url":"https://api.github.com/users/xghrbc1001","html_url":"https://github.com/xghrbc1001","followers_url":"https://api.github.com/users/xghrbc1001/followers","following_url":"https://api.github.com/users/xghrbc1001/following{/other_user}","gists_url":"https://api.github.com/users/xghrbc1001/gists{/gist_id}","starred_url":"https://api.github.com/users/xghrbc1001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xghrbc1001/subscriptions","organizations_url":"https://api.github.com/users/xghrbc1001/orgs","repos_url":"https://api.github.com/users/xghrbc1001/repos","events_url":"https://api.github.com/users/xghrbc1001/events{/privacy}","received_events_url":"https://api.github.com/users/xghrbc1001/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-26T12:30:16Z","updated_at":"2015-12-02T12:13:33Z","closed_at":"2015-12-02T12:13:33Z","body":"neo4j-server.properties\r\n```\r\norg.neo4j.server.webserver.limit.executiontime=10000\r\n\r\n```\r\n\r\nneo4j.properties\r\n```\r\nexecution_guard_enabled=true\r\n```\r\n\r\nmy code:\r\n```\r\n for (int i = 0; i < 100000; i++) {\r\n        try (Transaction tx = service.beginTx();) {\r\n           // do somthing\r\n            tx.success();\r\n            tx.close();\r\n        }catch(Exception ex){\r\n            throw ex;\r\n          }\r\n        \r\n    }\r\n```\r\nwhle  run about 3 hours,thows GuardTimeoutException as the following:\r\n```\r\norg.neo4j.kernel.guard.GuardTimeoutException: timeout occured (overtime=2)\r\n\tat org.neo4j.kernel.guard.Guard$Timeout.check(Guard.java:128)\r\n\tat org.neo4j.kernel.guard.Guard.check(Guard.java:42)\r\n\tat org.neo4j.kernel.impl.api.GuardingStatementOperations.nodeGetRelationships(GuardingStatementOperations.java:357)\r\n\tat org.neo4j.kernel.impl.api.OperationsFacade.nodeGetRelationships(OperationsFacade.java:352)\r\n\tat org.neo4j.kernel.impl.core.NodeProxy$2.iterator(NodeProxy.java:194)\r\n\tat org.neo4j.kernel.impl.core.NodeProxy$2.iterator(NodeProxy.java:186)\r\n\tat com.xxx.neo4j.plugin.knitter.service.KnitterService.setInvestFrom(KnitterService.java:389)\r\n\tat com.xxx.neo4j.plugin.knitter.service.KnitterService.saveOrUpdateGraphCompany(KnitterService.java:124)\r\n\tat com.xxx.neo4j.plugin.knitter.service.KnitterService.work(KnitterService.java:56)\r\n\tat com.xxx.neo4j.plugin.web.resource.KnitterResource.kstart(KnitterResource.java:52)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)\r\n\tat sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)\r\n\tat sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)\r\n\tat java.lang.reflect.Method.invoke(Method.java:497)\r\n\tat com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)\r\n\tat com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)\r\n\tat com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)\r\n\tat org.neo4j.server.rest.transactional.TransactionalRequestDispatcher.dispatch(TransactionalRequestDispatcher.java:139)\r\n\tat com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)\r\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\r\n\tat com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)\r\n\tat com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)\r\n\tat com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)\r\n\tat com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)\r\n\tat com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)\r\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)\r\n\tat com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:733)\r\n\tat javax.servlet.http.HttpServlet.service(HttpServlet.java:790)\r\n\tat org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:800)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1669)\r\n\tat org.neo4j.server.guard.GuardingRequestFilter.doFilter(GuardingRequestFilter.java:68)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)\r\n\tat ch.qos.logback.access.servlet.TeeFilter.doFilter(TeeFilter.java:55)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)\r\n\tat org.neo4j.server.guard.GuardingRequestFilter.doFilter(GuardingRequestFilter.java:68)\r\n\tat org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1125)\r\n\tat org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)\r\n\tat org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)\r\n\tat org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1059)\r\n\tat org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)\r\n\tat org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:52)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)\r\n\tat org.eclipse.jetty.server.handler.RequestLogHandler.handle(RequestLogHandler.java:95)\r\n\tat org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)\r\n\tat org.eclipse.jetty.server.Server.handle(Server.java:497)\r\n\tat org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:310)\r\n\tat org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:248)\r\n\tat org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:540)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:620)\r\n\tat org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:540)\r\n\tat java.lang.Thread.run(Thread.java:745)\r\n```"}}