- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在 Linux 机器上运行 neo4j 服务器 16Gb RAM 和 4 个内核,我的数据库中的节点总数是 342860,关系总数是 1647619,我正在尝试调试问题所以我已经停止了所有与 neo4j 相关的处理(读和写)。
但是 neo4j java 进程的 CPU 使用率仍然是 400%,100/核心,因为我有 4 个核心。
由于字符数限制,我无法在此处粘贴整个日志,因此我在评论中添加了 pastebin url。
我尝试使用 jstack 查看 java 进程的堆栈,以下是它的日志
Attaching to process ID 8458, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 25.111-b14
Deadlock Detection:
No deadlocks found.
Thread 8536: (state = BLOCKED)
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information may be imprecise)
- java.util.concurrent.locks.LockSupport.parkNanos(java.lang.Object, long) @bci=20, line=215 (Compiled frame)
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(long) @bci=78, line=2078 (Compiled frame)
- org.eclipse.jetty.util.BlockingArrayQueue.poll(long, java.util.concurrent.TimeUnit) @bci=57, line=389 (Interpreted frame)
- org.eclipse.jetty.util.thread.QueuedThreadPool.idleJobPoll() @bci=12, line=531 (Interpreted frame)
- org.eclipse.jetty.util.thread.QueuedThreadPool.access$700(org.eclipse.jetty.util.thread.QueuedThreadPool) @bci=1, line=47 (Interpreted frame)
- org.eclipse.jetty.util.thread.QueuedThreadPool$3.run() @bci=300, line=590 (Interpreted frame)
- java.lang.Thread.run() @bci=11, line=745 (Interpreted frame)
Thread 8531: (state = BLOCKED)
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information may be imprecise)
- java.util.concurrent.locks.LockSupport.parkNanos(java.lang.Object, long) @bci=20, line=215 (Compiled frame)
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(long) @bci=78, line=2078 (Compiled frame)
- java.util.concurrent.ArrayBlockingQueue.poll(long, java.util.concurrent.TimeUnit) @bci=49, line=418 (Interpreted frame)
- org.neo4j.bolt.v1.runtime.concurrent.RunnableBoltWorker.run() @bci=28, line=88 (Interpreted frame)
- java.lang.Thread.run() @bci=11, line=745 (Interpreted frame)
Thread 8529: (state = BLOCKED)
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information may be imprecise)
- java.util.concurrent.locks.LockSupport.parkNanos(java.lang.Object, long) @bci=20, line=215 (Compiled frame)
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(long) @bci=78, line=2078 (Compiled frame)
- java.util.concurrent.ArrayBlockingQueue.poll(long, java.util.concurrent.TimeUnit) @bci=49, line=418 (Interpreted frame)
- org.neo4j.bolt.v1.runtime.concurrent.RunnableBoltWorker.run() @bci=28, line=88 (Interpreted frame)
- java.lang.Thread.run() @bci=11, line=745 (Interpreted frame)
Thread 8525: (state = BLOCKED)
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information may be imprecise)
- java.util.concurrent.locks.LockSupport.parkNanos(java.lang.Object, long) @bci=20, line=215 (Compiled frame)
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(long) @bci=78, line=2078 (Compiled frame)
- java.util.concurrent.ArrayBlockingQueue.poll(long, java.util.concurrent.TimeUnit) @bci=49, line=418 (Interpreted frame)
- org.neo4j.bolt.v1.runtime.concurrent.RunnableBoltWorker.run() @bci=28, line=88 (Interpreted frame)
- java.lang.Thread.run() @bci=11, line=745 (Interpreted frame)
Thread 8510: (state = BLOCKED)
- java.lang.Thread.sleep(long) @bci=0 (Interpreted frame)
- io.netty.util.ThreadDeathWatcher$Watcher.run() @bci=19, line=152 (Interpreted frame)
- io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run() @bci=4, line=144 (Interpreted frame)
- java.lang.Thread.run() @bci=11, line=745 (Interpreted frame)
Thread 8509: (state = IN_NATIVE)
- sun.nio.ch.EPollArrayWrapper.epollWait(long, int, long, int) @bci=0 (Compiled frame; information may be imprecise)
- sun.nio.ch.EPollArrayWrapper.poll(long) @bci=18, line=269 (Compiled frame)
- sun.nio.ch.EPollSelectorImpl.doSelect(long) @bci=28, line=93 (Compiled frame)
- sun.nio.ch.SelectorImpl.lockAndDoSelect(long) @bci=37, line=86 (Compiled frame)
- sun.nio.ch.SelectorImpl.select(long) @bci=30, line=97 (Compiled frame)
- io.netty.channel.nio.NioEventLoop.select(boolean) @bci=91, line=746 (Compiled frame)
- io.netty.channel.nio.NioEventLoop.run() @bci=56, line=391 (Interpreted frame)
- io.netty.util.concurrent.SingleThreadEventExecutor$5.run() @bci=44, line=858 (Interpreted frame)
- java.lang.Thread.run() @bci=11, line=745 (Interpreted frame)
Thread 8507: (state = IN_JAVA)
Error occurred during stack walking:
java.lang.NullPointerException
at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:88)
at sun.jvm.hotspot.tools.StackTrace.run(StackTrace.java:45)
at sun.jvm.hotspot.tools.JStack.run(JStack.java:66)
at sun.jvm.hotspot.tools.Tool.startInternal(Tool.java:260)
at sun.jvm.hotspot.tools.Tool.start(Tool.java:223)
at sun.jvm.hotspot.tools.Tool.execute(Tool.java:118)
at sun.jvm.hotspot.tools.JStack.main(JStack.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at sun.tools.jstack.JStack.runJStackTool(JStack.java:140)
at sun.tools.jstack.JStack.main(JStack.java:106)
Thread 8506: (state = BLOCKED)
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information may be imprecise)
- java.util.concurrent.locks.LockSupport.parkNanos(java.lang.Object, long) @bci=20, line=215 (Compiled frame)
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(long) @bci=78, line=2078 (Compiled frame)
- org.eclipse.jetty.util.BlockingArrayQueue.poll(long, java.util.concurrent.TimeUnit) @bci=57, line=389 (Interpreted frame)
- org.eclipse.jetty.util.thread.QueuedThreadPool.idleJobPoll() @bci=12, line=531 (Interpreted frame)
- org.eclipse.jetty.util.thread.QueuedThreadPool.access$700(org.eclipse.jetty.util.thread.QueuedThreadPool) @bci=1, line=47 (Interpreted frame)
- org.eclipse.jetty.util.thread.QueuedThreadPool$3.run() @bci=300, line=590 (Interpreted frame)
- java.lang.Thread.run() @bci=11, line=745 (Interpreted frame)
Thread 8504: (state = BLOCKED)
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information may be imprecise)
- java.util.concurrent.locks.LockSupport.parkNanos(java.lang.Object, long) @bci=20, line=215 (Compiled frame)
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(long) @bci=78, line=2078 (Compiled frame)
- java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take() @bci=124, line=1093 (Interpreted frame)
- java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take() @bci=1, line=809 (Interpreted frame)
- java.util.concurrent.ThreadPoolExecutor.getTask() @bci=149, line=1067 (Interpreted frame)
- java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) @bci=26, line=1127 (Interpreted frame)
- java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=5, line=617 (Interpreted frame)
- java.lang.Thread.run() @bci=11, line=745 (Interpreted frame)
Thread 8463: (state = BLOCKED)
Thread 8503: (state = BLOCKED)
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information may be imprecise)
- java.util.concurrent.locks.LockSupport.parkNanos(java.lang.Object, long) @bci=20, line=215 (Compiled frame)
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(long) @bci=78, line=2078 (Compiled frame)
- java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take() @bci=124, line=1093 (Interpreted frame)
- java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take() @bci=1, line=809 (Interpreted frame)
- java.util.concurrent.ThreadPoolExecutor.getTask() @bci=149, line=1067 (Interpreted frame)
- java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) @bci=26, line=1127 (Interpreted frame)
- java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=5, line=617 (Interpreted frame)
- java.lang.Thread.run() @bci=11, line=745 (Interpreted frame)
Thread 8502: (state = IN_JAVA)
- org.neo4j.kernel.impl.api.store.StoreNodeRelationshipCursor.next() @bci=662, line=168 (Compiled frame; information may be imprecise)
- org.neo4j.kernel.impl.api.store.CursorRelationshipIterator.nextCursor() @bci=11, line=52 (Compiled frame)
- org.neo4j.kernel.impl.api.store.CursorRelationshipIterator.hasNext() @bci=9, line=67 (Compiled frame)
- org.neo4j.cypher.internal.spi.BeansAPIRelationshipIterator.hasNext() @bci=4, line=41 (Compiled frame)
- org.neo4j.cypher.internal.compiler.v3_2.pipes.CachingExpandInto$$anon$1.fetchNextOrNull() @bci=4, line=95 (Compiled frame)
- org.neo4j.cypher.internal.compiler.v3_2.pipes.CachingExpandInto$$anon$1.fetchNextOrNull() @bci=1, line=90 (Compiled frame)
- org.neo4j.helpers.collection.PrefetchingIterator.peek() @bci=14, line=60 (Compiled frame)
- org.neo4j.helpers.collection.PrefetchingIterator.hasNext() @bci=1, line=46 (Compiled frame)
- scala.collection.convert.Wrappers$JIteratorWrapper.hasNext() @bci=4, line=42 (Compiled frame)
- scala.collection.Iterator$class.isEmpty(scala.collection.Iterator) @bci=1, line=330 (Compiled frame)
- scala.collection.AbstractIterator.isEmpty() @bci=1, line=1336 (Compiled frame)
- org.neo4j.cypher.internal.compiler.v3_2.pipes.ExpandIntoPipe$$anonfun$internalCreateResults$1.apply(org.neo4j.cypher.internal.compiler.v3_2.ExecutionContext) @bci=99, line=64 (Compiled frame)
- org.neo4j.cypher.internal.compiler.v3_2.pipes.ExpandIntoPipe$$anonfun$internalCreateResults$1.apply(java.lang.Object) @bci=5, line=53 (Compiled frame)
- scala.collection.Iterator$$anon$12.nextCur() @bci=14, line=434 (Compiled frame)
- scala.collection.Iterator$$anon$12.hasNext() @bci=27, line=440 (Compiled frame)
- scala.collection.Iterator$class.isEmpty(scala.collection.Iterator) @bci=1, line=330 (Compiled frame)
- scala.collection.AbstractIterator.isEmpty() @bci=1, line=1336 (Compiled frame)
- org.neo4j.cypher.internal.compiler.v3_2.pipes.SemiApplyPipe$$anonfun$internalCreateResults$1.apply(org.neo4j.cypher.internal.compiler.v3_2.ExecutionContext) @bci=34, line=34 (Compiled frame)
- org.neo4j.cypher.internal.compiler.v3_2.pipes.SemiApplyPipe$$anonfun$internalCreateResults$1.apply(java.lang.Object) @bci=5, line=31 (Compiled frame)
- scala.collection.Iterator$$anon$13.hasNext() @bci=40, line=463 (Compiled frame)
- scala.collection.Iterator$$anon$13.hasNext() @bci=11, line=461 (Compiled frame)
- scala.collection.Iterator$class.foreach(scala.collection.Iterator, scala.Function1) @bci=1, line=893 (Compiled frame)
- scala.collection.AbstractIterator.foreach(scala.Function1) @bci=2, line=1336 (Compiled frame)
- org.neo4j.cypher.internal.compiler.v3_2.pipes.EagerAggregationPipe.internalCreateResults(scala.collection.Iterator, org.neo4j.cypher.internal.compiler.v3_2.pipes.QueryState) @bci=78, line=89 (Interpreted frame)
- org.neo4j.cypher.internal.compiler.v3_2.pipes.PipeWithSource.createResults(org.neo4j.cypher.internal.compiler.v3_2.pipes.QueryState) @bci=26, line=82 (Interpreted frame)
- org.neo4j.cypher.internal.compiler.v3_2.pipes.PipeWithSource.createResults(org.neo4j.cypher.internal.compiler.v3_2.pipes.QueryState) @bci=5, line=79 (Interpreted frame)
- org.neo4j.cypher.internal.compiler.v3_2.pipes.PipeWithSource.createResults(org.neo4j.cypher.internal.compiler.v3_2.pipes.QueryState) @bci=5, line=79 (Interpreted frame)
- org.neo4j.cypher.internal.compiler.v3_2.pipes.PipeWithSource.createResults(org.neo4j.cypher.internal.compiler.v3_2.pipes.QueryState) @bci=5, line=79 (Interpreted frame)
- org.neo4j.cypher.internal.compiler.v3_2.pipes.PipeWithSource.createResults(org.neo4j.cypher.internal.compiler.v3_2.pipes.QueryState) @bci=5, line=79 (Interpreted frame)
- org.neo4j.cypher.internal.compiler.v3_2.pipes.PipeWithSource.createResults(org.neo4j.cypher.internal.compiler.v3_2.pipes.QueryState) @bci=5, line=79 (Interpreted frame)
- org.neo4j.cypher.internal.compiler.v3_2.pipes.PipeWithSource.createResults(org.neo4j.cypher.internal.compiler.v3_2.pipes.QueryState) @bci=5, line=79 (Interpreted frame)
- org.neo4j.cypher.internal.compiler.v3_2.pipes.PipeWithSource.createResults(org.neo4j.cypher.internal.compiler.v3_2.pipes.QueryState) @bci=5, line=79 (Interpreted frame)
- org.neo4j.cypher.internal.compiler.v3_2.executionplan.DefaultExecutionResultBuilderFactory$ExecutionWorkflowBuilder.createResults(org.neo4j.cypher.internal.compiler.v3_2.pipes.QueryState, org.neo4j.cypher.internal.compiler.v3_2.ExecutionMode, org.neo4j.cypher.internal.frontend.v3_2.phases.InternalNotificationLogger) @bci=107, line=96 (Interpreted frame)
- org.neo4j.cypher.internal.compiler.v3_2.executionplan.DefaultExecutionResultBuilderFactory$ExecutionWorkflowBuilder.build(java.lang.Object, org.neo4j.cypher.internal.compiler.v3_2.ExecutionMode, scala.collection.immutable.Map, org.neo4j.cypher.internal.frontend.v3_2.phases.InternalNotificationLogger) @bci=138, line=74 (Interpreted frame)
- org.neo4j.cypher.internal.compiler.v3_2.BuildInterpretedExecutionPlan$$anonfun$getExecutionPlanFunction$1.apply(org.neo4j.cypher.internal.compiler.v3_2.spi.QueryContext, org.neo4j.cypher.internal.compiler.v3_2.ExecutionMode, scala.collection.immutable.Map) @bci=178, line=103 (Interpreted frame)
- org.neo4j.cypher.internal.compiler.v3_2.BuildInterpretedExecutionPlan$$anonfun$getExecutionPlanFunction$1.apply(java.lang.Object, java.lang.Object, java.lang.Object) @bci=13, line=86 (Interpreted frame)
- org.neo4j.cypher.internal.compiler.v3_2.BuildInterpretedExecutionPlan$$anon$1.run(org.neo4j.cypher.internal.compiler.v3_2.spi.QueryContext, org.neo4j.cypher.internal.compiler.v3_2.ExecutionMode, scala.collection.immutable.Map) @bci=7, line=55 (Interpreted frame)
- org.neo4j.cypher.internal.compatibility.v3_2.Compatibility$ExecutionPlanWrapper$$anonfun$run$1.apply() @bci=37, line=102 (Interpreted frame)
- org.neo4j.cypher.internal.compatibility.v3_2.Compatibility$ExecutionPlanWrapper$$anonfun$run$1.apply() @bci=1, line=100 (Interpreted frame)
- org.neo4j.cypher.internal.compatibility.v3_2.exceptionHandler$runSafely$.apply(scala.Function0, scala.Function1) @bci=1, line=90 (Interpreted frame)
- org.neo4j.cypher.internal.compatibility.v3_2.Compatibility$ExecutionPlanWrapper.run(org.neo4j.cypher.internal.spi.v3_2.TransactionalContextWrapper, org.neo4j.cypher.internal.CypherExecutionMode, scala.collection.immutable.Map) @bci=92, line=100 (Interpreted frame)
- org.neo4j.cypher.internal.PreparedPlanExecution.execute(org.neo4j.cypher.internal.spi.v3_2.TransactionalContextWrapper, scala.collection.immutable.Map) @bci=19, line=26 (Interpreted frame)
- org.neo4j.cypher.internal.ExecutionEngine.execute(java.lang.String, java.util.Map, org.neo4j.kernel.impl.query.TransactionalContext) @bci=85, line=107 (Interpreted frame)
- org.neo4j.cypher.internal.javacompat.ExecutionEngine.executeQuery(java.lang.String, java.util.Map, org.neo4j.kernel.impl.query.TransactionalContext) @bci=11, line=61 (Interpreted frame)
- org.neo4j.server.rest.transactional.TransactionHandle.safelyExecute(org.neo4j.server.rest.transactional.Statement, boolean, org.neo4j.kernel.impl.query.TransactionalContext) @bci=13, line=371 (Interpreted frame)
- org.neo4j.server.rest.transactional.TransactionHandle.executeStatements(org.neo4j.server.rest.transactional.StatementDeserializer, org.neo4j.server.rest.transactional.ExecutionResultSerializer, java.util.List, javax.servlet.http.HttpServletRequest) @bci=129, line=323 (Interpreted frame)
- org.neo4j.server.rest.transactional.TransactionHandle.commit(org.neo4j.server.rest.transactional.StatementDeserializer, org.neo4j.server.rest.transactional.ExecutionResultSerializer, javax.servlet.http.HttpServletRequest) @bci=53, line=157 (Interpreted frame)
- org.neo4j.server.rest.web.TransactionalService.lambda$executeStatementsAndCommit$1(org.neo4j.server.rest.transactional.TransactionHandle, java.io.InputStream, java.net.URI, javax.servlet.http.HttpServletRequest, java.io.OutputStream) @bci=47, line=217 (Interpreted frame)
- org.neo4j.server.rest.web.TransactionalService$$Lambda$300.write(java.io.OutputStream) @bci=21 (Interpreted frame)
- com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(javax.ws.rs.core.StreamingOutput, java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap, java.io.OutputStream) @bci=3, line=71 (Interpreted frame)
- com.sun.jersey.core.impl.provider.entity.StreamingOutputProvider.writeTo(java.lang.Object, java.lang.Class, java.lang.reflect.Type, java.lang.annotation.Annotation[], javax.ws.rs.core.MediaType, javax.ws.rs.core.MultivaluedMap, java.io.OutputStream) @bci=15, line=57 (Interpreted frame)
- com.sun.jersey.spi.container.ContainerResponse.write() @bci=514, line=302 (Interpreted frame)
- com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(com.sun.jersey.server.impl.application.WebApplicationContext, com.sun.jersey.spi.container.ContainerRequest, com.sun.jersey.spi.container.ContainerResponse) @bci=234, line=1510 (Interpreted frame)
- com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(com.sun.jersey.spi.container.ContainerRequest, com.sun.jersey.spi.container.ContainerResponse) @bci=23, line=1419 (Interpreted frame)
- com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(com.sun.jersey.spi.container.ContainerRequest, com.sun.jersey.spi.container.ContainerResponseWriter) @bci=14, line=1409 (Interpreted frame)
- com.sun.jersey.spi.container.servlet.WebComponent.service(java.net.URI, java.net.URI, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) @bci=76, line=409 (Interpreted frame)
- com.sun.jersey.spi.container.servlet.ServletContainer.service(java.net.URI, java.net.URI, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) @bci=9, line=558 (Interpreted frame)
- com.sun.jersey.spi.container.servlet.ServletContainer.service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) @bci=355, line=733 (Interpreted frame)
- javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest, javax.servlet.ServletResponse) @bci=39, line=790 (Interpreted frame)
- org.eclipse.jetty.servlet.ServletHolder.handle(org.eclipse.jetty.server.Request, javax.servlet.ServletRequest, javax.servlet.ServletResponse) @bci=89, line=808 (Interpreted frame)
- org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse) @bci=211, line=1669 (Interpreted frame)
- org.neo4j.server.rest.dbms.AuthorizationEnabledFilter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain) @bci=274, line=122 (Interpreted frame)
- org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse) @bci=103, line=1652 (Interpreted frame)
- org.neo4j.server.rest.web.CollectUserAgentFilter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain) @bci=54, line=69 (Interpreted frame)
- org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse) @bci=103, line=1652 (Interpreted frame)
- org.eclipse.jetty.servlet.ServletHandler.doHandle(java.lang.String, org.eclipse.jetty.server.Request, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) @bci=203, line=585 (Interpreted frame)
- org.eclipse.jetty.server.session.SessionHandler.doHandle(java.lang.String, org.eclipse.jetty.server.Request, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) @bci=46, line=221 (Interpreted frame)
- org.eclipse.jetty.server.handler.ContextHandler.doHandle(java.lang.String, org.eclipse.jetty.server.Request, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) @bci=349, line=1127 (Interpreted frame)
- org.eclipse.jetty.servlet.ServletHandler.doScope(java.lang.String, org.eclipse.jetty.server.Request, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) @bci=274, line=515 (Interpreted frame)
- org.eclipse.jetty.server.session.SessionHandler.doScope(java.lang.String, org.eclipse.jetty.server.Request, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) @bci=233, line=185 (Interpreted frame)
- org.eclipse.jetty.server.handler.ContextHandler.doScope(java.lang.String, org.eclipse.jetty.server.Request, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) @bci=437, line=1061 (Interpreted frame)
- org.eclipse.jetty.server.handler.ScopedHandler.handle(java.lang.String, org.eclipse.jetty.server.Request, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) @bci=20, line=141 (Interpreted frame)
- org.eclipse.jetty.server.handler.HandlerList.handle(java.lang.String, org.eclipse.jetty.server.Request, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) @bci=39, line=52 (Interpreted frame)
- org.eclipse.jetty.server.handler.HandlerWrapper.handle(java.lang.String, org.eclipse.jetty.server.Request, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse) @bci=23, line=97 (Interpreted frame)
- org.eclipse.jetty.server.Server.handle(org.eclipse.jetty.server.HttpChannel) @bci=130, line=497 (Interpreted frame)
- org.eclipse.jetty.server.HttpChannel.handle() @bci=301, line=310 (Interpreted frame)
- org.eclipse.jetty.server.HttpConnection.onFillable() @bci=189, line=257 (Interpreted frame)
- org.eclipse.jetty.io.AbstractConnection$2.run() @bci=4, line=540 (Interpreted frame)
- org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(java.lang.Runnable) @bci=1, line=635 (Interpreted frame)
- org.eclipse.jetty.util.thread.QueuedThreadPool$3.run() @bci=75, line=555 (Interpreted frame)
- java.lang.Thread.run() @bci=11, line=745 (Interpreted frame)
Thread 8490: (state = BLOCKED)
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Interpreted frame)
- java.util.concurrent.locks.LockSupport.park(java.lang.Object) @bci=14, line=175 (Interpreted frame)
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await() @bci=42, line=2039 (Interpreted frame)
- java.util.concurrent.LinkedBlockingDeque.takeFirst() @bci=22, line=492 (Interpreted frame)
- java.util.concurrent.LinkedBlockingDeque.take() @bci=1, line=680 (Interpreted frame)
- sun.nio.fs.AbstractWatchService.take() @bci=8, line=118 (Interpreted frame)
- org.neo4j.io.fs.watcher.DefaultFileSystemWatcher.startWatching() @bci=16, line=76 (Interpreted frame)
- org.neo4j.io.fs.watcher.RestartableFileSystemWatcher.startWatching() @bci=41, line=94 (Interpreted frame)
- org.neo4j.kernel.impl.util.watcher.DefaultFileSystemWatcherService$FileSystemEventWatcher.run() @bci=7, line=92 (Interpreted frame)
- java.lang.Thread.run() @bci=11, line=745 (Interpreted frame)
Thread 8489: (state = BLOCKED)
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information may be imprecise)
- java.util.concurrent.locks.LockSupport.park(java.lang.Object) @bci=14, line=175 (Compiled frame)
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await() @bci=42, line=2039 (Interpreted frame)
- java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take() @bci=100, line=1088 (Interpreted frame)
- java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take() @bci=1, line=809 (Interpreted frame)
- java.util.concurrent.ThreadPoolExecutor.getTask() @bci=149, line=1067 (Interpreted frame)
- java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) @bci=26, line=1127 (Interpreted frame)
- java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=5, line=617 (Interpreted frame)
- java.lang.Thread.run() @bci=11, line=745 (Interpreted frame)
- org.neo4j.helpers.NamedThreadFactory$2.run() @bci=1, line=109 (Interpreted frame)
Thread 8488: (state = BLOCKED)
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information may be imprecise)
- java.util.concurrent.locks.LockSupport.parkNanos(java.lang.Object, long) @bci=20, line=215 (Compiled frame)
- org.neo4j.io.pagecache.impl.muninn.MuninnPageCache.parkEvictor(long) @bci=7, line=840 (Compiled frame)
- org.neo4j.io.pagecache.impl.muninn.MuninnPageCache.parkUntilEvictionRequired(int) @bci=12, line=894 (Interpreted frame)
- org.neo4j.io.pagecache.impl.muninn.MuninnPageCache.continuouslySweepPages() @bci=21, line=875 (Interpreted frame)
- org.neo4j.io.pagecache.impl.muninn.EvictionTask.run(org.neo4j.io.pagecache.impl.muninn.MuninnPageCache) @bci=1, line=39 (Interpreted frame)
- org.neo4j.io.pagecache.impl.muninn.BackgroundTask.run() @bci=68, line=45 (Interpreted frame)
- java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) @bci=95, line=1142 (Interpreted frame)
- java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=5, line=617 (Interpreted frame)
- java.lang.Thread.run() @bci=11, line=745 (Interpreted frame)
Thread 8487: (state = BLOCKED)
- sun.misc.Unsafe.park(boolean, long) @bci=0 (Compiled frame; information may be imprecise)
- java.util.concurrent.locks.LockSupport.parkNanos(java.lang.Object, long) @bci=20, line=215 (Compiled frame)
- java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(long) @bci=78, line=2078 (Compiled frame)
- java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take() @bci=124, line=1093 (Interpreted frame)
- java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take() @bci=1, line=809 (Compiled frame)
- java.util.concurrent.ThreadPoolExecutor.getTask() @bci=149, line=1067 (Compiled frame)
- java.util.concurrent.ThreadPoolExecutor.runWorker(java.util.concurrent.ThreadPoolExecutor$Worker) @bci=26, line=1127 (Interpreted frame)
- java.util.concurrent.ThreadPoolExecutor$Worker.run() @bci=5, line=617 (Interpreted frame)
- java.lang.Thread.run() @bci=11, line=745 (Interpreted frame)
- org.neo4j.helpers.NamedThreadFactory$2.run() @bci=1, line=109 (Interpreted frame)
Thread 8486: (state = BLOCKED)
- java.lang.Object.wait(long) @bci=0 (Interpreted frame)
- java.util.TimerThread.mainLoop() @bci=201, line=552 (Interpreted frame)
- java.util.TimerThread.run() @bci=1, line=505 (Interpreted frame)
Thread 8485: (state = IN_NATIVE)
- sun.nio.fs.LinuxWatchService.poll(int, int) @bci=0 (Interpreted frame)
- sun.nio.fs.LinuxWatchService.access$600(int, int) @bci=2, line=47 (Interpreted frame)
- sun.nio.fs.LinuxWatchService$Poller.run() @bci=10, line=314 (Interpreted frame)
- java.lang.Thread.run() @bci=11, line=745 (Interpreted frame)
Thread 8479: (state = BLOCKED)
Thread 8478: (state = BLOCKED)
Thread 8477: (state = BLOCKED)
- java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be imprecise)
- java.lang.ref.ReferenceQueue.remove(long) @bci=59, line=143 (Compiled frame)
- java.lang.ref.ReferenceQueue.remove() @bci=2, line=164 (Compiled frame)
- java.lang.ref.Finalizer$FinalizerThread.run() @bci=36, line=209 (Interpreted frame)
Thread 8476: (state = BLOCKED)
- java.lang.Object.wait(long) @bci=0 (Compiled frame; information may be imprecise)
- java.lang.Object.wait() @bci=2, line=502 (Compiled frame)
- java.lang.ref.Reference.tryHandlePending(boolean) @bci=54, line=191 (Compiled frame)
- java.lang.ref.Reference$ReferenceHandler.run() @bci=1, line=153 (Interpreted frame)
谁能帮我调试/解决这个 neo4j 的高 CPU 使用率问题。
最佳答案
最后,经过一周的调试,我们发现我们没有在节点属性上创建任何索引,这导致了如此高的 CPU 使用率。
创建索引后,我们的 CPU 使用率从 400 下降到 0.3%,我们也将我们的机器从 16 GB、4 核降级到 8Gb、2 核。
请确保在需要的地方为属性和唯一约束创建索引。
关于java - Neo4j java 高 cpu 使用率仍然是 392%,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44364602/
我们有一个 SQL 服务器,其中包含大约 40 个不同的数据库(每个数据库大约 1-5GB)。该服务器是8核2.3G CPU和32Gigs RAM。 27Gig 固定到 SQL Server。 CPU
我通过创建一个简单的循环并在数组中添加元素来测试 Java 8 并行流 API 的性能。 与非并行相比,我获得了巨大的性能提升。 但是当我检查我的任务管理器时,我看到了一个不受控制的 CPU 使用率,
我在使用 JFX 应用程序时遇到了一些问题。在我的本地开发系统(Linux)上,我的应用程序的 CPU 使用率约为 0-2%。当我在客户 Windows 虚拟机系统上安装并运行我的应用程序时,CPU
我在 unix 上工作。我想知道进程当前的 cpu 使用情况。我知道 ps 给出了在进程启动之前使用的 cpu 平均值 - 这不是当前使用情况。 有没有办法从 top 命令只打印 cpu 而无需 10
我尝试对许多文件进行哈希处理,但它没有使用满 CPU 能力。它只消耗25%。我测试将繁重的进程移动到线程中。但仍然没有什么不同。我来自 nodejs 使用 sharp 库。有同样的任务。它消耗所有的C
有没有办法在 CentOS 中获取 CPU 使用率?我需要解析这些信息并将其从 Perl 脚本中绘制出来,因此它最好是一个简单的工具,可以打印出一个单一的输出。 最佳答案 更简单,看/proc/loa
早上好。 目前我正在 Ubuntu 服务器 11.10 中运行 Java Web 应用程序。对于我的 Java 应用程序,我使用的是 apache、tomcat 和 mysql。 在过去的几周里,我的
我想做的事 我有一个计算密集型 OCaml 应用程序,我希望它在后台运行而不影响正常的计算机使用。我想为用户提供两个选项: (1) 应用程序仅在 CPU 使用率几乎为 0% 时运行; (2) 应用程序
我使用Couchdb创建了一个私有(private)NPM镜像,但我发现beam.smp将我的 CPU 使用率保持在 100%,有没有办法降低它,比如 50%? 非常感谢你。 最佳答案 您不能直接限制
我正在 docker 容器内构建一个项目,在创建容器时没有任何资源限制。当我监控它时,我看到了不同的 CPU 使用率结果。 来自 ctop 来自 Grafana(全节点导出器图表) 来自 cAdvis
我需要在 Web 开发编码 session 期间收集有关 Firefox CPU 使用率的数据,我想知道是否可以监视特定 firefox 插件的 CPU 使用率。 现在我正在使用 windows 的
R 是单线程的。 使用 R,如何检查 Windows 和 Linux 中有多少内核/线程正在运行 R? (或运行了多少卢比) 使用 R,如何检查 Windows 和 Linux 中运行 R 的每个内核
我正在尝试像示例中那样测试 Kubernetes HPA here kubectl run php-apache --image=gcr.io/google_containers/hpa-exampl
在我们的办公室,我们有一个开发服务器:Win 2k8 server R2 - Coldfusion 9(.0.0) - MySQL 5 ... 几乎每天早上上类时,我都会发现服务器的 CPU 为 50
我有一组 cpu 消耗执行,每个执行都在低优先级的线程中运行。这些线程将在一个进程(如 IIS)中运行,该进程具有许多我不想减慢它们速度的其他线程。我想计算所有其他线程的 cpu 使用率,如果它大于
我是 azure 云的新手,我已经部署了我的第一个辅助角色。 在我的本地系统中需要 30 分钟才能完成的过程在 azure 辅助角色上需要 1 个多小时。 为了查找问题,我已访问辅助角色的远程桌面。我
这是我的测试 boost::tribool 示例: #include #include "boost/logic/tribool.hpp" int main() { boost::logic::tr
我正在使用 docker 远程 API 来检索正在运行的容器的统计信息。对于 CPU 使用情况,我得到的例子是: "cpu_stats": { "cpu_usage": { "to
我是 azure 云的新手,我已经部署了我的第一个辅助角色。 在我的本地系统中需要 30 分钟才能完成的过程在 azure 辅助角色上需要 1 个多小时。 为了查找问题,我已访问辅助角色的远程桌面。我
我知道意外的无限循环通常会导致 CPU 使用率较高。但是,我不太明白为什么。谁能给我解释一下吗? 最佳答案 CPU 在执行该循环(永远不会结束)时无法执行任何其他操作。即使您使用的是抢占式多任务系统(
我是一名优秀的程序员,十分优秀!