国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

windows運(yùn)行elasticsearch報錯Native memory allocation (mmap) failed to map 4294967296 bytes for G1

這篇具有很好參考價值的文章主要介紹了windows運(yùn)行elasticsearch報錯Native memory allocation (mmap) failed to map 4294967296 bytes for G1。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報違法"按鈕提交疑問。

今天下載了一個elasticsearch8.4.3 windows版本的es,配置好相應(yīng)的配置后,啟動bat文件,輸出一行信息后,窗口就閃退了。于是通過cmd窗口運(yùn)行,發(fā)現(xiàn)了報錯信息如下

Exception in thread "main" java.lang.RuntimeException: starting java failed with [1]
output:
#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 4294967296 bytes for G1 virtual space
# An error report file with more information is saved as:
# logs/hs_err_pid3913340.log
error:
OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x0000000700000000, 4294967296, 0) failed; error='???????С???
??????????' (DOS error/errno=1455)
        at org.elasticsearch.server.cli.JvmOption.flagsFinal(JvmOption.java:113)
        at org.elasticsearch.server.cli.JvmOption.findFinalOptions(JvmOption.java:80)
        at org.elasticsearch.server.cli.MachineDependentHeap.determineHeapSettings(MachineDependentHeap.java:59)
        at org.elasticsearch.server.cli.JvmOptionsParser.jvmOptions(JvmOptionsParser.java:132)
        at org.elasticsearch.server.cli.JvmOptionsParser.determineJvmOptions(JvmOptionsParser.java:90)
        at org.elasticsearch.server.cli.ServerProcess.createProcess(ServerProcess.java:211)
        at org.elasticsearch.server.cli.ServerProcess.start(ServerProcess.java:106)
        at org.elasticsearch.server.cli.ServerProcess.start(ServerProcess.java:89)
        at org.elasticsearch.server.cli.ServerCli.startServer(ServerCli.java:234)
        at org.elasticsearch.server.cli.ServerCli.execute(ServerCli.java:91)
        at org.elasticsearch.common.cli.EnvironmentAwareCommand.execute(EnvironmentAwareCommand.java:54)
        at org.elasticsearch.cli.Command.mainWithoutErrorHandling(Command.java:85)
        at org.elasticsearch.cli.Command.main(Command.java:50)
        at org.elasticsearch.launcher.CliToolLauncher.main(CliToolLauncher.java:64)

解決辦法如下,修改config目錄下的jvm.options文件,

4294967296 bytes,elasticsearch,elasticsearch,windows,java?

?32行和33行是配置java內(nèi)存的,這里注釋掉,就是默認(rèn)是沒有配置的,這里自己單獨(dú)配置小一點(diǎn),我這邊配置了2g,就可以正常啟動起來了,如下圖

4294967296 bytes,elasticsearch,elasticsearch,windows,java

?文章來源地址http://www.zghlxwxcb.cn/news/detail-577913.html

到了這里,關(guān)于windows運(yùn)行elasticsearch報錯Native memory allocation (mmap) failed to map 4294967296 bytes for G1的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請點(diǎn)擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • docker 報錯 library initialization failed - unable to allocate file descriptor table - out of memory

    docker 報錯 library initialization failed - unable to allocate file descriptor table - out of memory

    docker容器,啟動的時候 容器日志報: library initialization failed - unable to allocate file descriptor table - out of memory docker啟動容器時,若未給容器配置ulimit,則從docker守護(hù)進(jìn)程上設(shè)置的默認(rèn)ulimits繼承, 這個值太大? 會報這個錯 官方文檔: dockerd | Docker Docs ulimit nofile這個值太大報錯的

    2024年04月29日
    瀏覽(27)
  • docker 啟動報錯 library initialization failed - unable to allocate file descriptor table - out of memory

    docker 啟動報錯 library initialization failed - unable to allocate file descriptor table - out of memory 1.報錯日志 library initialization failed - unable to allocate file descriptor table - out of memory/cm-server/aiboxCloud-web/boot/entrypoint.sh: line 2: 6 Aborted (core dumped) java -Xms1024m -Xmx2048m -jar -XX:+PrintGCDateStamps -XX:+PrintGCDetai

    2024年02月11日
    瀏覽(27)
  • yolov7的export.py轉(zhuǎn)換時顯存報錯 If reserved memory is >> allocated memory try setting max_split_size_mb to a

    yolov7的export.py轉(zhuǎn)換時顯存報錯 If reserved memory is >> allocated memory try setting max_split_size_mb to a

    報錯內(nèi)容:export failure: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 4.00 GiB total capacity; 2.45 GiB already allocated; 0 bytes free; 2.54 GiB reserved in total by PyTorch) If reserved memory is allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF 解決方

    2024年02月12日
    瀏覽(21)
  • 報錯記錄torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 90.00 MiB (GPU 0; 7.93 GiB to

    原因,我選的卡號選錯了, 確認(rèn)好兩件事: 1、本地文件和遠(yuǎn)程文件同步好了 2、代碼中有沒有指定哪塊GPU的操作 他這個報錯很反直覺的一個地方:如果你指定了2卡,2卡顯存滿了,他會說0卡顯存滿了,你去看0發(fā)現(xiàn)0根本沒人用,這就很容易被繞進(jìn)去

    2024年02月12日
    瀏覽(22)
  • -bash: fork: Cannot allocate memory處理

    /proc/sys/kernel/pid_max是一個系統(tǒng)內(nèi)核參數(shù),用于設(shè)置系統(tǒng)可以分配的最大進(jìn)程ID(PID)數(shù)。每個新創(chuàng)建的進(jìn)程都會被分配一個唯一的PID,該值決定了系統(tǒng)能夠支持的最大進(jìn)程數(shù)量。 /etc/security/limits.d/90-nproc.conf是一個配置文件,用于設(shè)定每個用戶或用戶組在系統(tǒng)中可同時運(yùn)行的最

    2024年02月13日
    瀏覽(18)
  • docker容器出現(xiàn)Cannot allocate memory問題解決方法

    執(zhí)行一下命令查看系統(tǒng)pid_max的值(最大進(jìn)程數(shù)) 總進(jìn)程數(shù)超限,需要臨時調(diào)大pid_max 查看配置進(jìn)程數(shù) 執(zhí)行以下命令查看系統(tǒng)內(nèi)部總進(jìn)程數(shù),命令執(zhí)行不成功,需要自己安裝(yum -y install psmisc) 定位啟動進(jìn)程較多的程序 最大進(jìn)程數(shù)闕值永久生效需修改配置文件

    2024年02月09日
    瀏覽(24)
  • DefaultCPUAllocator: not enough memory: you tried to allocate

    DefaultCPUAllocator: not enough memory: you tried to allocate

    DefaultCPUAllocator: not enough memory: you tried to allocate XXX 問題:系統(tǒng)內(nèi)存不足。 解決方案(1):重啟電腦/使用任務(wù)管理器關(guān)閉多余應(yīng)用釋放系統(tǒng)內(nèi)存(臨時方案) 任務(wù)管理器啟用方式:ctrl+alt+del 到達(dá)進(jìn)程頁面-右鍵進(jìn)程結(jié)束任務(wù) 解決方案(2):增加電腦虛擬內(nèi)存(建議選該方案

    2024年02月12日
    瀏覽(21)
  • memory泄露分析方法(native篇)

    memory泄露分析方法(native篇)

    #本文介紹native泄露分析方法# Native泄露非常難以治理,因?yàn)橄到y(tǒng)Native內(nèi)存可共享的,不像JavaHeap內(nèi)存是私有的 捕捉泄露:測試每天從monkey中篩選出內(nèi)存超標(biāo)的app, 從dumpsys_meminfo_pid看 native?heap 大,我們采用幾種工具可以找到泄露調(diào)用棧: 上述工具使用方法網(wǎng)上有詳細(xì)介紹,

    2024年02月01日
    瀏覽(19)
  • Tomcat 運(yùn)行報錯 This is very likely to create a memory leak

    服務(wù)器上某個Tomcat服務(wù)運(yùn)行一段時間后自動停止,查看日志輸出,提示: This is very likely to create a memory leak. Stack trace of thread. 查閱資料得知,產(chǎn)生該異常的原因?yàn)閮?nèi)存溢出。 在 tomcat目錄/bin 下修改 calalina.sh ,添加 JVM 啟動參數(shù): 如果遇到無法識別短橫杠 - 的問題,則可以使

    2024年02月07日
    瀏覽(19)
  • RuntimeError: CUDA out of memory See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

    報錯: If reserved memory is allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF 當(dāng)reserved memory is allocated memory,進(jìn)行如下設(shè)置,可解決此bug: 代碼如下:

    2024年02月11日
    瀏覽(19)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包