• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
Bartenders:

Too many open files - A p:graphicImage Error (I guess)

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there

I an jsf application the user upload photos and I am using primefaces <p:graphicImage> tag to show the photos and <p:fileUpload> to upload then, but when put this code in the production server, it start to get really slow and throws a "too many open files" Error

Do you have any idea what could be possibly wrong?

my code for uploading :



And to read the image:



Of course I found no way to close this fileInputStream so far but I sow its implementation of finalize and it seems the garbage collector should be able to handle it... I guess


Do any of you know who to fix it?

By the way, I'm using glassfish 3.1.2 and the homologation server often behaves differently than the glassfish in my computer.

Thanks in advance
 
She said she got a brazillian. I think owning people is wrong. That is how I learned ... tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic