`
liumayulingyan
  • 浏览: 148799 次
  • 性别: 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加这个搞什么呢,没有搞清楚!
分享到:
评论

相关推荐

    嵌入式移植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

    VCP测试试题以及试题分析,

    VCP测试试题以及试题分析, An application running in a virtual machine is experiencing ... There is insufficient disk space assigned to the virtual machine. D. The application is not virtualization aware.

    LogStashBook

    There are a few different devices that all have varying reasons for not being able to run the agent: •Small virtual machine with limited memory insufficient to run the agent. •Some embedded ...

    Out of memory

    Out of memory,insufficient memory to continue.

    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:...

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

    修复在VS2010中不能复制粘贴Bug,你懂得!

    Oracle WebLogic Server 10gR3: Troubleshooting Methodologies

    This course provides administrators with the tools for supporting an enterprise infrastructure and helps to significantly improve operational efficiencies. Learn to: Identify, investigate, and ...

    TongWeb的cacheMaxSize设置.doc

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

    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...

    The use of Bayes and causal modelling in decision making, uncertainty and risk

    Yet such approaches are inadequate when risks are rare or novel because there is insufficient relevant data. Less sophisticated commonly used methods of risk assessment, such as risk registers, make ...

    Pro Silverlight4 in C#.pdf

    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...

    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 ...

    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 ...

    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 ...

    PHP and MySQL by Example.pdf

    And then there is the issue of the database management system. Where does the processed data get stored? Who designs the database and its tables? Who administers it? How does the information get from...

    CP340341440441帮助手册

    机器学习经典制作(英语)

    This book is a general introduction to machine learning that can serve as a textbook for students and researchers in the field. It covers fundamental modern topics in machine learning while providing ...

Global site tag (gtag.js) - Google Analytics