Mac OS X Yosemite上的ElasticSearch + Node:JRE崩溃了吗?

时间:2015-12-17 13:55:44

标签: node.js macos elasticsearch jvm coredump

这个有点困惑,可能是因为我经常遇到JRE核心转储。

我正在使用官方ElasticSearch模块进行Node.js,并试图在我的某个索引中创建一个新文档。

我的节点应用程序似乎很好地连接到ES实例,但是当我执行create请求时,我的JRE咬了一口尘!这是由Node发出的错误:

Elasticsearch INFO: 2015-12-16T21:40:47Z
  Adding connection to http://my.server.address/:9200
Elasticsearch DEBUG: 2015-12-16T21:40:53Z
  starting request { method: 'POST',
    path: '/test/document',
    body: { foo: 'bar' },
    query: { op_type: 'create' } }

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00000001004f3616, pid=40975, tid=1299
#
# JRE version: Java(TM) SE Runtime Environment (7.0_79-b15) (build 1.7.0_79-b15)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (24.79-b02 mixed mode bsd-amd64 compressed oops)
# Problematic frame:
# C  [node+0x4f3616]  _ZN4node8debugger5Agent14MessageHandlerERKN2v85Debug7MessageE+0x34
#
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
# An error report file with more information is saved as:
# /Path/To/My/App/hs_err_pid42140.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.java.com/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
#

以下是the contents of the core dump

1 个答案:

答案 0 :(得分:1)

在节点5.2.0中出现console.log()语句的错误似乎是http://github.com/nodejs/node/issues/4261

如果你降级到节点5.1.1,你应该好好去。