报错Native memory allocation (malloc) failed to allocate 32744 bytes for ChunkPool::allocate

时间:2025-03-27 16:46:55
ES报错 Unable to parse response body for Response

大概是因为我姓黄: [code=java] import ; import ; @Bean("restHighLevelClient") public RestHighLevelClient restHighLevelClient() { requestConfigCallback = requestConfigBuilder -> (2 * 1000).setSocketTimeout(30 * 1000); RestClientBuilder restClientBuilder = ((knnElasticSearchHost)) .setRequestConfigCallback(requestConfigCallback).setDefaultHeaders(compatibilityHeaders()); return new RestHighLevelClient(restClientBuilder); } private Header[] compatibilityHeaders() { return new Header[]{new BasicHeader(, "application/+json;compatible-with=7"), new BasicHeader(HttpHeaders.CONTENT_TYPE, "application/+json;compatible-with=7")}; } [/code]