`
liumayulingyan
  • 浏览: 155358 次
  • 性别: Icon_minigender_2
  • 来自: 上海
社区版块
存档分类
最新评论

There is insufficient memory for the Java Runtime Environment to continue

 
阅读更多
http://tieba.baidu.com/p/2188626266


首先说一下环境:
centos6.3
业务环境:weiboyi
情况说明一下:
为了适应公司业务发展需要,公司新购买了一批新机器,作为weiboyi的新环境,安装了比较新的操作系统:通统:centos6.3
一开始硬件(Dell R410)主板坏了,更换后再进行各种测试。
测试前是用root用户启动业务,没有什么问题。但是后来在用非root用户启动时出现种问题。java报如下错误:
There is insufficient memory for the Java Runtime Environment to continue.
# Cannot create GC thread. Out of system resources.
# 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 (gcTaskThread.cpp:46), pid=50128, tid=140649625663232
同时运行java -version也报错
执行一个ls也会报资源暂时不足
害得我又是查看系统的/etc/security/limit.conf 又是搞/etc/sysctl.conf 然后换JDK版本等等,搞得精疲力尽,到处找相关的资料!
搞了几天没有搞定,今天再接着进行这方面的研究,在以前的生产环境:centos5.5下可以正常使用的系统参数时突然发现:新系统的max user processes 只有1024 而旧系统默认为278528
你M呀,问题是出在这里了,再在/etc/security/下一看。centos6多出来一个limits.d目录,下面有个文件: 90-nproc.config
此文件内容:
# Default limit for number of user’s processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
* soft nproc 1024
这里限制了1024呀,果断注释。
再运行业务程序,问题解决!汗一下,centos6加这个搞什么呢,没有搞清楚!
分享到:
评论

相关推荐

    centos8安装kafka_2.11-2.4.1.docx

    There is insufficient memory for the Java Runtime Environment to continue. Native memory allocation (mmap) failed to map 1073741824 bytes for committing reserved memory. ``` 这通常是由于系统可用...

    嵌入式移植docker报错问题(汇总)

    经过了漫长时间的移植和查询资料,得以解决一下嵌入式docker出现的问题,很多网上的资料全都是复制粘贴复制粘贴,找不到合适的解决方法让人很是苦恼,希望自己总结出的一些解决问题的经验给广大朋友减少一些负担吧!...

    docker 报错 Exited (1) 4 minutes ago的原因分析

    docker 报错 1. 查看原因 ... error=‘Cannot allocate memory’ (errno=12) # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mma

    Cut or Copy displays 'insufficient memory' error in Visual Studio 2010

    首先,我们需要理解为什么会出现“insufficient memory”(内存不足)的错误。在Visual Studio 2010中,这个错误可能由多种因素引起。可能是由于以下原因: 1. **系统资源紧张**:如果计算机的物理内存(RAM)已...

    sqlserver错误日志

    - **内存代理**:`MEMORYBROKER_FOR_RESERVE (default)` 和 `MEMORYBROKER_FOR_STEAL (default)` 分别表示用于预留和抢夺内存的代理。 - **页面**:记录了内存页的相关统计。 - **分配次数**:1280次,表示当前...

    BURNINTEST--硬件检测工具

    - Changed the Memory test to wait for the Video Playback test and 3D test to allow memory allocation for these tests. - Minor changes to the No operation error watchdog timer for the CD and Hard ...

    ( Semantic Versioning(WhitePaper 2010).pdf )

    recommendation was put in place, there was insufficient experience with versions in an environment like OSGi. The different members of the OSGi ecosystem needed the freedom to version their artifacts ...

    Domino服务起不来解决办法

    Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\Lotus\Domino] "Path"="F:\\lotus" "DataPath"="F:\\lotus\\Data" "Description"="Lotus Domino" "Name"="nserver.exe" "Version"=dword:...

    TongWeb的cacheMaxSize设置.doc

    TongWeb常见问题处理,用于运维的问题处理,便于解决应用部署时遇到的各种问题

    CRRuntime_64_32bit_13_0_30.rar

    Either the Crystal Reports registry key permissions are insufficient, or the Crystal Reports runtime is not installed correctly. Please install the appropriate Crystal Reports redistributable ...

    Insufficient Memory(处理方案).md

    项目中碰到的问题

    (标红-降重)第二版 03-21基于dsp的fft频谱分析方法研究降重.docx

    Aliasing occurs when high-frequency components fold back into the lower frequency range due to insufficient sampling rate, while spectral leakage is the spreading of energy from a single frequency ...

    Google C++ Style Guide(Google C++编程规范)高清PDF

    The main reason for making a virtual function inline is to place its definition in the class, either for convenience or to document its behavior, e.g., for accessors and mutators. The -inl.h Files...

    Big Data Made Easy - A Working Guide To The Complete Hadoop Toolset

    **Big Data Made Easy: A Working Guide to the Complete Hadoop Toolset** is an invaluable resource for anyone looking to understand and implement big data technologies. By the end of the book, readers ...

    Pro Silverlight2 in CSharp 2008

    other technologies use a plug-in to stretch the bounds of the browser, including Java, ActiveX, Shockwave, and (most successfully) Adobe Flash. Although all these alternatives are still in use, none ...

    UML and the Unified Process.pdf

    the design stages and are insufficient for completed, automated code generation. Little work has been done in order to investigate the use of well-proven and accepted re- quirements, techniques and ...

    CP340341440441帮助手册

    Oracle Database 10g: The Top 20 Features for DBAs

    ### Oracle Database 10g: The Top 20 Features for DBAs #### 1. Flashback Versions Query **Description:** This feature allows database administrators (DBAs) to query the history of data changes within ...

    我国新能源汽车产业化发展问题及对策研究.pdf

    Furthermore, the establishment of a comprehensive innovation incentive system is crucial to motivate companies to invest more in research and development, fostering a healthy competitive environment....

Global site tag (gtag.js) - Google Analytics