Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 批量加载数据C时弹性搜索5.3崩溃#_C#_<img Src="//i.stack.imgur.com/RUiNP.png" Height="16" Width="18" Alt="" Class="sponsor Tag Img">elasticsearch_Bulk Load - Fatal编程技术网 elasticsearch,bulk-load,C#,elasticsearch,Bulk Load" /> elasticsearch,bulk-load,C#,elasticsearch,Bulk Load" />

C# 批量加载数据C时弹性搜索5.3崩溃#

C# 批量加载数据C时弹性搜索5.3崩溃#,c#,elasticsearch,bulk-load,C#,elasticsearch,Bulk Load,一段时间以来,我一直在将数据批量加载到开发弹性搜索服务器中。我正在使用C#进行编程,弹性搜索服务器在Windows 2012 R2服务器上运行。弹性搜索服务器在大容量加载过程中会持续停机—我是唯一连接到服务器的服务器,因此这不是两个人试图访问或插入相同数据的问题。我不知道为什么会发生这种情况,似乎无法用谷歌搜索到适合我的情况的东西。崩溃是指服务停止(出错)并重新启动 这是我正在使用的代码。(我最初将其设置为1000,但由于根本无法加载而减少) Windows事件查看器(错误): 弹性搜索服务器日

一段时间以来,我一直在将数据批量加载到开发弹性搜索服务器中。我正在使用C#进行编程,弹性搜索服务器在Windows 2012 R2服务器上运行。弹性搜索服务器在大容量加载过程中会持续停机—我是唯一连接到服务器的服务器,因此这不是两个人试图访问或插入相同数据的问题。我不知道为什么会发生这种情况,似乎无法用谷歌搜索到适合我的情况的东西。崩溃是指服务停止(出错)并重新启动

这是我正在使用的代码。(我最初将其设置为1000,但由于根本无法加载而减少)

Windows事件查看器(错误):

弹性搜索服务器日志:

[2017-07-13T11:06:58,068][ERROR][o.e.t.n.Netty4Utils] 
fatal error on the network layer
at org.elasticsearch.transport.netty4.Netty4Utils.maybeDie
(Netty4Utils.java:140)....

[2017-07-13T11:06:59,943][WARN ][o.e.m.j.JvmGcMonitorService] 
[lm52Lqe] [gc][5070] overhead, spent [1.8s] collecting in the 
last [1.8s]...

[2017-07-13T11:07:00,052][WARN ][o.e.h.n.Netty4HttpServerTransport]
[lm52Lqe] caught exception while handling client http traffic, 
closing connection [id: 0x14bf2d5c, L:/192.168.2.75:9200 - 
R:/10.2.0.70:59266]
java.lang.OutOfMemoryError: Java heap space...

[2017-07-13T11:06:58,079][ERROR]
[o.e.b.ElasticsearchUncaughtExceptionHandler] 
[] fatal error in thread [Thread-62], exiting
java.lang.OutOfMemoryError: Java heap space ...

请从服务器端共享更多信息。崩溃是什么意思?这个过程正在消失吗?服务器是否仍在响应,但响应速度很慢?你在Elasticsearch侧的日志文件中找到了什么吗?添加了所需的信息,所以我想没有人有建议?我在使用elastic方面是新手,但我对它的性能、文档或用法印象不深。如果有人阅读,我不会推荐这个产品。信息仍然不够。例如,没有完整的堆栈跟踪。我的假设是,您试图在没有足够堆的情况下并行加载许多批量请求(或大批量请求),但这很难说,因为我们不知道整个批量请求的大小。请从服务器端共享更多信息。崩溃是什么意思?这个过程正在消失吗?服务器是否仍在响应,但响应速度很慢?你在Elasticsearch侧的日志文件中找到了什么吗?添加了所需的信息,所以我想没有人有建议?我在使用elastic方面是新手,但我对它的性能、文档或用法印象不深。如果有人阅读,我不会推荐这个产品。信息仍然不够。例如,没有完整的堆栈跟踪。我的假设是,您试图在没有足够堆的情况下并行加载许多批量请求(或大批量请求),但这很难说,因为我们不知道整个批量请求的大小。
        The Elasticsearch 5.3.0 (elasticsearch-service-x64) service
        terminated unexpectedly.  It has done this 1 time(s).  The
        following corrective action will be taken in 60000 
        milliseconds: Restart the service.
[2017-07-13T11:06:58,068][ERROR][o.e.t.n.Netty4Utils] 
fatal error on the network layer
at org.elasticsearch.transport.netty4.Netty4Utils.maybeDie
(Netty4Utils.java:140)....

[2017-07-13T11:06:59,943][WARN ][o.e.m.j.JvmGcMonitorService] 
[lm52Lqe] [gc][5070] overhead, spent [1.8s] collecting in the 
last [1.8s]...

[2017-07-13T11:07:00,052][WARN ][o.e.h.n.Netty4HttpServerTransport]
[lm52Lqe] caught exception while handling client http traffic, 
closing connection [id: 0x14bf2d5c, L:/192.168.2.75:9200 - 
R:/10.2.0.70:59266]
java.lang.OutOfMemoryError: Java heap space...

[2017-07-13T11:06:58,079][ERROR]
[o.e.b.ElasticsearchUncaughtExceptionHandler] 
[] fatal error in thread [Thread-62], exiting
java.lang.OutOfMemoryError: Java heap space ...