- 浏览: 154043 次
- 性别:
- 来自: 上海
文章分类
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加这个搞什么呢,没有搞清楚!
首先说一下环境:
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加这个搞什么呢,没有搞清楚!
发表评论
-
Json-JsonUtil
2014-06-25 17:45 1001http://www.open-open.com/lib ... -
Google Gson 使用简介
2014-06-25 17:17 793http://www.cnblogs.com/haippy/ ... -
JSP-获取spring 的容器ApplicationContext
2014-06-24 15:36 467http://hw1287789687.iteye.com/ ... -
Java-读取Properties文件的六种方法
2014-06-24 10:04 752http://hi.baidu.com/hgd0324/it ... -
Quartz定时任务学习(九)Quartz监听器
2014-06-22 12:43 1890转载:http://hi.baidu.com/xulin_ ... -
Quartz定时任务学习(六)作业
2014-06-22 12:44 1370转载:http://hi.baidu.com/ ... -
Quartz定时任务学习(五)触发器
2014-06-20 17:06 1571转载:http://hi.baidu.com/xulin_ ... -
Quartz定时任务学习(四)调度器
2014-06-20 17:03 1807转载:http://hi.baidu.com/xulin_1 ... -
Quartz定时任务学习(三)属性文件和jar
2014-06-20 17:00 1734转载:http://hi.baidu.com/xulin_1 ... -
Quartz定时任务学习(二)web应用
2014-06-20 16:57 924转载: http://hi.baidu.com/xuli ... -
Quartz定时任务学习(一)简单任务
2014-06-20 16:50 886转载:http://hi.baidu.com/ ... -
com.google.common.cache.CacheLoader 本地緩存的使用方法
2014-06-19 13:58 3943http://blog.sina.com.cn/s/blog ... -
javascript-json字符串数组转json数组对象
2014-06-18 16:43 1081后台的数据为 [{"use ... -
LDAP-Java LDAP操作
2014-06-18 14:03 800Java LDAP操作http://blog.csdn.n ... -
html-8款流行前沿的HTML5文本编辑器
2014-06-13 15:19 1125http://www.evget.com/article/2 ... -
Redis-Jedis
2014-06-12 16:49 510http://snowolf.iteye.com/blog/1 ... -
Jetty-嵌入式开发
2014-06-06 12:38 548http://blog.csdn.net/cdl2008sky ... -
SSO-使用 CAS 在 Tomcat 中实现单点登录
2014-06-05 16:31 633http://www.ibm.com/developerwor ... -
SSO-https原理及tomcat配置https方法
2014-06-04 18:22 1438http://jingyan.baidu.com/articl ... -
Java-加密技术
2014-06-04 18:13 450http://snowolf.iteye.com/blog/3 ...
相关推荐
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 报错 1. 查看原因 ... error=‘Cannot allocate memory’ (errno=12) # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mma
首先,我们需要理解为什么会出现“insufficient memory”(内存不足)的错误。在Visual Studio 2010中,这个错误可能由多种因素引起。可能是由于以下原因: 1. **系统资源紧张**:如果计算机的物理内存(RAM)已...
- **内存代理**:`MEMORYBROKER_FOR_RESERVE (default)` 和 `MEMORYBROKER_FOR_STEAL (default)` 分别表示用于预留和抢夺内存的代理。 - **页面**:记录了内存页的相关统计。 - **分配次数**:1280次,表示当前...
- 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 ...
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 ...
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:...
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 ...
项目中碰到的问题
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 ...
TongWeb常见问题处理,用于运维的问题处理,便于解决应用部署时遇到的各种问题
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** is an invaluable resource for anyone looking to understand and implement big data technologies. By the end of the book, readers ...
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 ...
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 ...
### 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 ...
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....