Forums/Cloud Foundry Forums/Archived: CloudFoundry.com Q&A

Answered

Too many open files

tsss_srinu
asked this on March 20, 2012 02:00

Hi,

when i deployed my webapplication i got this exception what was the problem in my application,

SEVERE: Missing default web.xml, using application web.xml only conf/web.xml /var/vcap/data/dea/apps/dealwallet-0-cfea87077e44356f2f6d60ead5f99362/tomcat/conf/web.xml
java.io.FileNotFoundException: /var/vcap/data/dea/apps/dealwallet-0-cfea87077e44356f2f6d60ead5f99362/tomcat/conf/web.xml (Too many open files)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:106)
at org.apache.catalina.startup.ContextConfig.defaultWebConfig(ContextConfig.java:615)
at org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:1075)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:261)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142)

 

WARNING: Error reading /dev/urandom
java.io.FileNotFoundException: /dev/urandom (Too many open files)
at java.io.FileInputStream.open(Native Method)

 

thanks

srinu

 

Comments

User photo
tsss_srinu

i attached the log files

March 20, 2012 07:25
User photo
tsss_srinu

ss

March 20, 2012 07:26
User photo
Ali Moghadam
Cloud Foundry

Hey Srinivas,

Base on your post, it seems your application is missing the web.xml. 

Can you attach a war file of your app so that we can take a look.

March 20, 2012 10:39
User photo
tsss_srinu

Hi Ali,

My war file is 40mb that why  I attached the zip file of code  please check it.

Thanks

Srinu

March 20, 2012 22:04
User photo
Ali Moghadam
Cloud Foundry
Ajax_loader_small Answer

Hey Srinivas,

The error "java.io.FileNotFoundException: /dev/urandom (Too many open files)" means that you are using more than the 256 limit of file descriptors. Currently Cloud Foundry doesn't support over 256 file descriptors. Please modify your application to use lesser than the limit.

March 21, 2012 15:03
User photo
jimwjackson

I am having the same problem, but I don't have any usage of the java File object. I do use servlets. I do flush and close the writer after I generate the response, but that has not made much difference. So, I don't know how to reduce my usage of file descriptors.

August 13, 2012 18:46
User photo
Glenn Oppegard
Cloud Foundry

Hi Jim,

The the forums here are no longer under active use. For assistance with CloudFoundry.com please either create a question at http://stackoverflow.com and tag it with "cloudfoundry" or file a ticket at http://support.cloudfoundry.com/tickets/new .

August 27, 2012 09:05
Topic is closed for comments