码迷,mamicode.com
首页 > 其他好文 > 详细

ulimit: open files: cannot modify limit 解决

时间:2014-12-04 06:38:49      阅读:514      评论:0      收藏:0      [点我收藏+]

标签:valgrind

在执行该命令时报下列错误

[root@ ~]# valgrind --tool=memcheck ./run
==2932== Memcheck, a memory error detector
==2932== Copyright (C) 2002-2012, and GNU GPL‘d, by Julian Seward et al.
==2932== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==2932== Command: ./run
==2932==
./run: line 56: ulimit: open files: cannot modify limit: 不允许的操作

 

修改该文件

[root@ ~]# vim /etc/security/limits.conf

*                soft nofile            65535
*                hard nofile            65535
*                soft nproc             65535
*                hard nproc             65535

 

问题解决

[root@ ~]# valgrind --tool=memcheck ./run
==2401== Memcheck, a memory error detector
==2401== Copyright (C) 2002-2012, and GNU GPL‘d, by Julian Seward et al.
==2401== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==2401== Command: ./run
==2401==

本文出自 “云人生” 博客,请务必保留此出处http://ovcer.blog.51cto.com/1145188/1586079

ulimit: open files: cannot modify limit 解决

标签:valgrind

原文地址:http://ovcer.blog.51cto.com/1145188/1586079

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!