A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
I/O and Streams
Joined: Sep 13, 2005
Aug 01, 2008 14:13:00
I am working in a web application(
1.4/jsp/struts/postgres/linux/tomcat).Some times our server is going to down. While checking the logs we commonly got the following exception.
: /opt/test/logs/test01082008.log (Too many open files)
at java.io.FileOutputStream.openAppend(Native Method)
We are writing the logs in files like "test01082008.log". I am not sure the
' object is closed each time after writing. We are creating the
object using "new
Please let me know what may be the cause of this types of exception.Is it related to
closing problem, or it related to
or operating system or any other reason.
Joined: Oct 27, 2005
Aug 01, 2008 14:59:00
The error is quite clear: you have too many open file handles. You should really close all streams / readers / writers when you're done with them. Always.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
I agree. Here's the link:
subject: Application down
Tomcat4.1.24 not working as a NT service??
Problem with Tomcat installation
Tomcat Hangs during startup
error in deployment
tomcat log file!!
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014