Java运行环境的内存不足,无法继续运行:couchbase

问题描述 投票:0回答:1

我有一个JSON文档,大小为5MB。但是当我把它压缩后,它变成了144KB。这5MB的文档我保存在couchbase nosql DB中。我把它作为一个REST API公开。当应用程序把couchabse内容放到java RAM中时,我得到了bellow错误。我有16GB的内存,但仍然,只有一个请求,我有时会得到这个错误.Could you please guild me?What are the solutions?

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 470810624 bytes for committing reserved memory.
# An error report file with more information is saved as:
# /home/sanka/IdeaProjects/i/yyy/hs_err_pid3235.log
Java HotSpot(TM) 64-Bit Server VM warning: INFO: os::commit_memory(0x00000006ec600000, 470810624, 0) failed; error='Cannot allocate memory' (errno=12)

日志文件

#
# There is insufficient memory for the Java Runtime Environment to continue.
# Native memory allocation (mmap) failed to map 538443776 bytes for committing reserved memory.
# Possible reasons:
#   The system is out of physical RAM or swap space
#   In 32 bit mode, the process size limit was hit
# Possible solutions:
#   Reduce memory load on the system
#   Increase physical memory or swap space
#   Check if swap backing store is full
#   Use 64 bit Java on a 64 bit OS
#   Decrease Java heap size (-Xmx/-Xms)
#   Decrease number of Java threads
#   Decrease Java thread stack sizes (-Xss)
#   Set larger code cache with -XX:ReservedCodeCacheSize=
# This output file may be truncated or incomplete.
#
#  Out of Memory Error (os_linux.cpp:2640), pid=30646, tid=0x00007f0f1b8f8700
#
# JRE version: Java(TM) SE Runtime Environment (8.0_181-b13) (build 1.8.0_181-b13)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.181-b13 mixed mode linux-amd64 compressed oops)
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
#
java spring-boot couchbase spring-data-couchbase couchbase-java-api
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.