ChinaUnix.net
相关文章推荐:

open files

ulimit -a后得出的结果: core file size (blocks, -c) 0 data seg size (kbytes, -d) unlimited scheduling priority (-e) 20 file size (blocks, -f) unlimited pending signals (-i) 16382 max locked memory (kbytes, -l) 64 max memory size (kbytes, -m) unlimited open files (-n) 65536 pipe size (512 byte...

by hrdxwandg - Linux系统管理 - 2012-12-06 12:22:48 阅读(2900) 回复(23)

相关讨论

请各位大神帮忙,我读一个文件结果在标准出错给我打印了这句话,说打开的文件太多。可是那个文件也不多。我拿其他小的程序就能打开而且没有错误。请各位大神帮忙解释一下这是怎么回事。谢谢

by dragonlrx - Solaris - 2012-09-20 14:37:21 阅读(1469) 回复(1)

linux下 c socket 编程 我的程序客户端和服务端建立连接后,就用这个socket下载一个文件,大约3M,每次到2.8M左右程序就不动了。客户端关掉,然后在连接, 服务端就会报错:too many open files ,我只打开了一个socket而已,加上第二次的也就两个。为什么会报:too many open files 这个错误呢。有的时候select(socket) 时还会报Segmentation fault 错误,程序退出。郁闷死!! 哪位大侠之前遇到过类似的问题,麻烦指教1,2

by liujq110 - C/C++ - 2008-12-14 15:30:42 阅读(3325) 回复(15)

How Many open files? Topic: GNU/Linux Posted:2003-07-30 Printer Friendly: We knew the answer to this question once, back when the world was young and full of truth. Without hesitation, we'd have spouted "Just take the output of lsof | wc -l!" And it's true enough, in a general sort of way. But if you asked me the same question now, my answer would be: "Why do you want to know?" Are you...

by shinelian - Linux文档专区 - 2007-12-22 17:29:30 阅读(537) 回复(0)

In the Linux world, people usually just mount their ISO images by typing as root : $ mkdir /mnt/isotmp $ mount isofile.iso /mnt/isotmp -o loop And once they're done, unmount the virtual disk : $ umount /mnt/isotmp This can be very annoying. 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/19782/showart_270200.html

by g_hk - Linux文档专区 - 2007-04-03 14:10:44 阅读(607) 回复(0)

Hi, I hit the following message although I had set the limit to infinite for all the user. 2006-07-08-06.18.57.889084+480 I26511174C505 LEVEL: Severe (OS) PID : 1417446 TID : 772 PROC : db2hmon 0 INSTANCE: db2repl NODE : 000 FUNCTION: DB2 UDB, SQO Memory Management, sqlocshr2, probe:200 CALLED : OS, -, shmat OSERR : EMFILE (24) "Too many open files"...

by sunnyloke - DB2 - 2006-07-17 15:58:20 阅读(2092) 回复(0)

大家好,我在OS/2上写了一个通讯程序,写日志的时候老是出现fopen时的错误,提示 too many open files,不能再打开文件,可是我所有打开的文件都关闭了,这时怎么回事呢?

by nmzqzw - C/C++ - 2006-03-11 10:28:00 阅读(1003) 回复(3)

我写了一个应用程序,维持着客户端可能千于个客户端,最近发现日志文件里面出现这样的错误,首先文件不能被open了,然后accept返回“Too many open files” 我用ulimit -a,看到open files是1024 那么事情就有两个可能,第一我打开了超过1024个文件没有close,但是我想我打开的文件数量应该没有那么多。 另外还有一种可能就是每个保持连接的客户端都算一个open 的file.这样,我就只能调整open files的数量对不对? 可是我用非r...

by babizhu - Linux论坛 - 2004-08-09 14:13:54 阅读(1095) 回复(8)

我写了一个应用程序,维持着客户端可能千于个客户端,最近发现日志文件里面出现这样的错误,首先文件不能被open了,然后accept返回“Too many open files” 我用ulimit -a,看到open files是1024 那么事情就有两个可能,第一我打开了超过1024个文件没有close,但是我想我打开的文件数量应该没有那么多。 另外还有一种可能就是每个保持连接的客户端都算一个open 的file.这样,我就只能调整open files的数量对不对? 可是我用非r...

by babizhu - Linux系统管理 - 2004-08-09 14:13:54 阅读(1057) 回复(8)

How Many open files? Topic: GNU/Linux Posted:2003-07-30 Printer Friendly: We knew the answer to this question once, back when the world was young and full of truth. Without hesitation, we'd have spouted "Just take the output of lsof | wc -l!" And it's true enough, in a general sort of way. But if you asked me the same question now, my answer would be: "Why do you want to know?" Are you, ...

by javavsnet - Linux文档专区 - 2008-09-04 16:14:28 阅读(930) 回复(0)

有时候在程序里面需要打开多个文件,进行分析,系统一般默认数量是1024,(用ulimit -a可以看到)对于正常使用是够了,但是对于程序来讲,就太少了。 修改办法: 重启就OK 修改2个文件。 1./etc/security/limits.conf vi /etc/security/limits.conf 加上: * soft nofile 8192 * hard nofile 20480 2./etc/pam.d/login session required /lib/security/pam_limits.so ulimit -a查看 下 OK 本文来自ChinaUnix博客,如...

by sjhf - Linux文档专区 - 2009-03-23 11:32:43 阅读(516) 回复(0)