• Post Reply Bookmark Topic Watch Topic
  • New Topic

java.io.IOException: Too many open files  RSS feed

 
Santosh Maskar
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
We are doing testing on Pramati 3.5 server after doing some transaction i got the following error

java.io.IOException: Too many open files
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at java.io.FileReader.<init>(FileReader.java:55)
at com.pramati.admin.history.PersistenceXMLMsgMaker.buildHeader(PersistenceXMLMsgMaker.java:107)
at com.pramati.admin.history.DataCollector.updateData(DataCollector.java:227)
at com.pramati.admin.history.DataCollector.update(DataCollector.java:314)
at com.pramati.admin.history.AdminHistoryCollector.updateData(AdminHistoryCollector.java:307)
at com.pramati.admin.history.AdminHistoryCollector$TimerNotificationHandler.handleNotification(AdminHistoryCollector.java:487)
at com.pramati.admin.base.PramatiNotificationListener$1.run(PramatiNotificationListener.java:53)
at com.pramati.util.thread.ThreadPool$PooledThread.run(ThreadPool.java:150)
java.io.IOException: Cannot create a file when that file already exists
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at java.io.FileWriter.<init>(FileWriter.java:73)
at com.pramati.admin.history.PersistenceXMLMsgMaker.writeToFileSystem(PersistenceXMLMsgMaker.java:220)
at com.pramati.admin.history.PersistenceXMLMsgMaker.persistHistory(PersistenceXMLMsgMaker.java:209)
at com.pramati.admin.history.DataCollector.updateData(DataCollector.java:228)
at com.pramati.admin.history.DataCollector.update(DataCollector.java:314)
at com.pramati.admin.history.AdminHistoryCollector.updateData(AdminHistoryCollector.java:307)
at com.pramati.admin.history.AdminHistoryCollector$TimerNotificationHandler.handleNotification(AdminHistoryCollector.java:487)
at com.pramati.admin.base.PramatiNotificationListener$1.run(PramatiNotificationListener.java:53)
at com.pramati.util.thread.ThreadPool$PooledThread.run(ThreadPool.java:150)
java.io.IOException: Cannot create a file when that file already exists



Thanks in Advance.
Santosh
 
Joe Ess
Bartender
Posts: 9406
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good to see that you went right to the source. I'm tempted to move this to the Other Java Servers forum since it sounds like the problem is with your app server rather than your use of Java IO. However, let's try the obvious. Are you opening files or outputstreams in your application code? Are you explicity closing those references?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!