Digital Developer Conference: a FREE half-day online conference focused on AI & Cloud – North America: Nov 2 – India: Nov 9 – Europe: Nov 14 – Asia Nov 23 Register now

Close outline
  • United States
IBM?
  • Site map
IBM?
  • Marketplace

  • Close
    Search
  • Sign in
    • Sign in
    • Register
  • IBM Navigation
IBM Developer Answers
  • Spaces
    • Blockchain
    • IBM Cloud platform
    • Internet of Things
    • Predictive Analytics
    • Watson
    • See all spaces
  • Tags
  • Users
  • Badges
  • FAQ
  • Help
Close

Name

Community

  • Learn
  • Develop
  • Connect

Discover IBM

  • ConnectMarketplace
  • Products
  • Services
  • Industries
  • Careers
  • Partners
  • Support
10.190.13.195

Refine your search by using the following advanced search options.

Criteria Usage
Questions with keyword1 or keyword2 keyword1 keyword2
Questions with a mandatory word, e.g. keyword2 keyword1 +keyword2
Questions excluding a word, e.g. keyword2 keyword1 -keyword2
Questions with keyword(s) and a specific tag keyword1 [tag1]
Questions with keyword(s) and either of two or more specific tags keyword1 [tag1] [tag2]
To search for all posts by a user or all posts with a specific tag, start typing and choose from the suggestion list. Do not use a plus or minus sign with a tag, e.g., +[tag1].
  • Ask a question

Large file upload to Liberty java application

2700068WNT gravatar image
Question by GrahamONeil  (1) | May 26, 2015 at 02:54 PM libertyibmcloudliberty-for-java

Am attempting to upload files to a restful api. When attempting to upload a really large file like > 300MB I get a 500 error. Do I need to do something in server.xml to allow this to work? I do not see any error in the logs. It's like the request never makes it to the server.

People who like this

  0   Show 1
Comment
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
2700068WNT gravatar image GrahamONeil (1)   May 26, 2015 at 05:28 PM 0
Share

It may be that this is related to how long the request takes as opposed to the size of the file. Any request that lasts longer than 5 minutes appears to fail.

1 reply

  • Sort: 
100000QSQ6 gravatar image

Answer by Chemi (409) | May 26, 2015 at 03:39 PM

I suffered same issues. It seems it is related with some Cloudfoundry limitations: http://docs.cloudfoundry.org/devguide/deploy-apps/large-app-deploy.html#consid_limits

The workaround I found was to deploy from Bluemix Devops Services. The deployment from my local machine was around 45 min and from Bluemix DevOp Services was 7 min and worked fine.

Hope this helps,

Chemi.

Comment

People who like this

  0   Show 4   Share
10 |3000 characters needed characters left characters exceeded
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
2700068WNT gravatar image GrahamONeil (1)   May 26, 2015 at 04:09 PM 0
Share

To be clear I am not trying to deploy an application. I have an existing application that I am trying to send files to. I upload files to an api endpoint. When the uploaded file gets above a certain size I get 500 errors. It seems to work fine with a 50MB file at around 300MB it fails every time.

270003B4FB gravatar image Driss Amri (78) GrahamONeil (1)   May 27, 2015 at 06:57 AM 0
Share
  • Can you upload big files to your Liberty locally?

  • Are you using Servlet 2.0 or Servlet 3.x?

  • How does your REST endpoint look like where you take the file in?

Just a few things that pop in mind that might point to the problem

2700068WNT gravatar image GrahamONeil (1) Driss Amri (78)   May 27, 2015 at 11:09 AM 0
Share

I can use a large file locally. I am using JAX_RS. This seems to be related to the amount of time a request takes not the size of the file.

For example if I send a request like this:

curl -k -v --data-binary @c:\54MB.zip -H "Content-Type: application/zip" -X POST "http://bluemixenpoint" > 54MB.log

As long as the request takes less than 5 minutes I get a 200 Ok. And I can use any file size as long as the request is less than 5 minutes.

If I force a request to take longer than 5 minutes the request fails with a 500 error for example

curl -k -v --limit-rate 170K --data-binary @c:\54MB.zip -H "Content-Type: application/zip" -X POST "http://bluemixenpoint" > 54MB.log

It seem to be that any request the takes longer than 5 minutes simply fails. The odd thing is I don't see anything in the logs.

Show more comments

Follow this question

32 people are following this question.

Answers

Answers & comments

Related questions

2 problems on Liberty JAX-RS 2.0 REST service App. 2 Answers

Basic authentication for LIBERTY FOR JAVA web app not working 0 Answers

Is it possible to access object storage V2 in Java Liberty runtime? 2 Answers

JAVA Code output 6 Answers

Can't use Oracle JDK in Liberty Bluemix 1 Answer

  • Contact
  • Privacy
  • IBM Developer Terms of use
  • Accessibility
  • Report Abuse
  • Cookie Preferences

Powered by AnswerHub

Authentication check. Please ignore.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • API Connect
  • Analytic Hybrid Cloud Core
  • Application Performance Management
  • Appsecdev
  • BPM
  • Blockchain
  • Business Transaction Intelligence
  • CAPI
  • CAPI SNAP
  • CICS
  • Cloud Analytics
  • Cloud Automation
  • Cloud Object Storage
  • Cloud marketplace
  • Collaboration
  • Content Services (ECM)
  • Continuous Testing
  • Courses
  • Customer Experience Analytics
  • DB2 LUW
  • Data and AI
  • DataPower
  • Decision Optimization
  • DevOps Build
  • DevOps Services
  • Developers IBM MX
  • Digital Commerce
  • Digital Experience
  • Finance
  • Global Entrepreneur Program
  • Hadoop
  • Hybrid Cloud Core
  • Hyper Protect
  • IBM Cloud platform
  • IBM Design
  • IBM Forms Experience Builder
  • IBM Maximo Developer
  • IBM StoredIQ
  • IBM StoredIQ-Cartridges
  • IIDR
  • ITOA
  • InformationServer
  • Integration Bus
  • Internet of Things
  • Kenexa
  • Linux on Power
  • LinuxONE
  • MDM
  • Mainframe
  • Messaging
  • Node.js
  • ODM
  • Open
  • PartnerWorld Developer Support
  • PowerAI
  • PowerVC
  • Predictive Analytics
  • Product Insights
  • PureData for Analytics
  • Push
  • QRadar App Development
  • Run Book Automation
  • Search Insights
  • Security Core
  • Storage
  • Storage Core
  • Streamsdev
  • Supply Chain Business Network
  • Supply Chain Insights
  • Swift
  • UBX Capture
  • Universal Behavior Exchange
  • UrbanCode
  • WASdev
  • WSRR
  • Watson
  • Watson Campaign Automation
  • Watson Content Hub
  • Watson Marketing Insights
  • dW Answers Help
  • dW Premium
  • developerWorks Sandbox
  • developerWorks Team
  • Watson Health
  • More
  • Tags
  • Questions
  • Users
  • Badges