Linux PC应用程序gdb调试: 1、查看core文件参数 yinkui@yinkui-desktop:~/File_unzip/cp_module$ ulimit -a core file size (blocks, -c) 0 //产生core文件数目,不会产生core文件 data seg ...
分类:
数据库 时间:
2017-09-01 17:55:22
阅读次数:
275
mongodblinux性能优化:https://docs.mongodb.com/manual/administration/production-notes/#allocate-sufficient-ram-and-cpu性能优化:1,关闭atime包含数据库文件的存储卷。2,根据ulimit参考中的建议,将文件描述符限制,-n用户进程限制(ulimit)设置为-u20,000以上,一个..
分类:
数据库 时间:
2017-08-28 20:02:40
阅读次数:
142
ubuntu16.04ulimit最近,网站一到高峰期,CPU就会飙升到100%,但内存,IO,网络等一切正常,有可能是ulimit的问题,马上查看文件句柄数限制ulimit-n得到的结果是:1024,这个值对生产中的服务显得偏校网上给出的解决方案,大部分是直接输入ulimit-SHn65535#65535可自己根据应用..
分类:
其他好文 时间:
2017-08-23 21:47:21
阅读次数:
151
今天做压力测试 客户端数据提到2000人,在这个过程中,遇到了分配socket失败的问题提示 errno:24 Too many open files查找资料后发现是Linux系统配置了打开文件的最大数量通过 ulimit -a 查看结果(这个是修改后的了 修改前 open files 1024) ...
分类:
系统相关 时间:
2017-08-21 15:50:50
阅读次数:
229
转自:http://www.cnblogs.com/zhurizhe/p/3412369.html 在C/C++程序中打印当前函数调用栈 前几天帮同事跟踪的一个程序莫名退出,没有core dump(当然ulimit是打开的)的问题。我们知道,正常情况下,如果程序因为某种异常条件退出的话,应该会产生c ...
分类:
编程语言 时间:
2017-08-12 22:53:26
阅读次数:
484
运行环境为 centos7.2 tomcat 为 tomcat 8.0.39.0 ulimit -a ulimit -n 解决的都是 系统的问题 tomcat 报too many open files 是 tomcat 进程本身 的文件打开数 受限制了 默认设置 tomcat 文件打开数为 4096 ...
分类:
其他好文 时间:
2017-08-10 13:38:49
阅读次数:
188
Linux 下运行C++项目中遇到Segmentation fault 这样的问题,往往不会有太多错误信息,通常需要GDB来调试 1、编译Debug版本 make debug 2、生成最新版本的core文件,如果有core文件,rm。 ulimit -c unlimited -c 后面加的参数是: ...
分类:
数据库 时间:
2017-08-09 20:01:16
阅读次数:
247
1、 /etc/security/limit.conf * soft nofile 65535 * hard nofile 65535 * soft nproc 65535 * hard nproc 65535 * soft nofile 65535 * hard nofile 65535 * so ...
分类:
其他好文 时间:
2017-08-08 12:37:28
阅读次数:
304
Ubuntu Server上执行以下命令,可以看到默认打开的文件数限制为1024个。 $ ulimit -n 1024 编辑/etc/profile配置文件,在最后添加一行: ulimit -SHn 65535 要让配置生效: $ sudo source /etc/profile sudo: sou ...
分类:
系统相关 时间:
2017-08-07 01:25:49
阅读次数:
392
1. echo "ulimit -c 1024" >> /etc/profile / ulimit -c unlimited 2.echo 1 > /proc/sys/kernel/core_uses_pid 3.echo "/tmp/corefile-%e-%p-%t" > /proc/sys/k ...
分类:
系统相关 时间:
2017-08-04 18:26:50
阅读次数:
159