---
title: "Too many open files"
author: "xiaoych"
date: "2007-12-27T11:40:31Z"
tags: []
slug: "too-many-open-files"
draft: false
lastmod: "2007-12-27T11:40:31Z"
id: 151177
url: "https://xiaoych.iteye.com/blog/151177"
---

今天做压力测试的时候发现的问题。

tomcat打开了1024个最大连接，但是还没有到1024个并发请求的时候tomcat挂掉了。看错误日志，发现了大量的异常：Too many open files

原来是linux下面的描述符开的不够，一查只开了1024个，增加到6W多个就解决问题咯。