• 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
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

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

 
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: 6082
154
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • 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: 6082
154
Android Mac OS X Firefox Browser VI Editor Tomcat Server Safari
  • 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
 
It's feeding time! Give me the food you were going to give to this tiny ad:
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!