• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

I am using multiple image upload but my heap size can be problem  RSS feed

 
Ranch Hand
Posts: 49
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using multiple image upload , but my JVM heap size is 128mb on my hosting. If users try to upload file which is above 128mb . Server throw exception java.lang.OutOfMemoryError: Java heap space . Which way can be much more efficient?How can I solve this problem ?
 
Saloon Keeper
Posts: 5046
134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think there are ways to upload images via HTTP that don't require the entire image to be in memory, so you may be out of luck. But uploading files that big over HTTP isn't fun for the user, anyway. Can you provide FTP space for that purpose? Or is using an FTP client beyond your users?
 
Miri Yusifli
Ranch Hand
Posts: 49
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Moores wrote:I don't think there are ways to upload images via HTTP that don't require the entire image to be in memory, so you may be out of luck. But uploading files that big over HTTP isn't fun for the user, anyway. Can you provide FTP space for that purpose? Or is using an FTP client beyond your users?




Yes I have FTP account . But if i will use FTP account , Will not happen any heap problems? I think that if file size is much more than my heap space , again I will face the problem
 
Tim Moores
Saloon Keeper
Posts: 5046
134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is the FTP server implemented in Java as part of your web app? That would be quite unusual.
 
Miri Yusifli
Ranch Hand
Posts: 49
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Tim Moores wrote:Is the FTP server implemented in Java as part of your web app? That would be quite unusual.


I am not using FTP , But in my hosting have FTP function and i can use it . If FTP will solve my problem , i can use it
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!