• 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

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: 4702
117
  • 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: 4702
117
  • 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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!