`
hbhscht
  • 浏览: 5969 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

java.io.IOException: Too many open files

阅读更多
在开发项目过程中,本地调试没问题,但到了linux的服务确出现了java.io.IOException: Too many open files,在解决这个问题的时候:
第一:我们要设置一下linux服务器的句柄;
文件打开的最大数为:
使用命令:vi /etc/rc.local

#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.

touch /var/lock/subsys/local
ulimit -SHn 65534

第二:检查一下我们的程序,是否有session没有关闭的情况!
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics