• Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Miri Yusifli
Ranch Hand
Posts: 42
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 ?
 
Tim Moores
Saloon Keeper
Posts: 3957
94
  • 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: 42
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: 3957
94
  • 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: 42
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!