File Upload Questions (Related to Larger Uploads Crashing Lucee)

Just a random thought,

Are you using the express version with jetty?

When I was step debugging, I was using whichever solution comes with the
Lucee “RunAsJavaApp.java” (or whatever that’s called), from the Lucee
source code. I assume it was Express, but I’m not sure.

FWIW, normally I use the full installer version, which bundles Tomcat and
configures Apache httpd, and that’s what’s running on the server that
crashed.

Thanks,
JamieOn Wed, Sep 30, 2015 at 3:06 PM, Terry Whitney <@Terry_Whitney> wrote:

On Wednesday, September 23, 2015 at 10:20:02 AM UTC-4, Jamie Jackson wrote:

Hi Folks,

I’m having some problems where larger files are crashing my Lucee
(4.5.1.023) server.

First question:

If I give fileUpload(All) a file in the 0-50MB range, it flushes all at
once to the temp directory (full-sized file appears); however, if I give it
a file greater than about 55MB, it flushes to the temp directory
incrementally (file grows until it’s full-sized).

Can anyone explain this threshold/behavior?

I looked at the guts of fileUploadAll()
https://bitbucket.org/lucee/lucee/src/30b941b832b54c5c4c877adc8fb21ca462001b90/lucee-java/lucee-core/src/lucee/runtime/tag/FileTag.java?at=master&fileviewer=file-view-default#FileTag.java-813,
but I didn’t spot anything.

Thanks,
Jamie


See Lucee at CFCamp Oct 22 & 23 2015 @ Munich Airport, Germany - Get your
ticket NOW - http://www.cfcamp.org/

You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/920bed17-a9d1-47ce-9169-d59f0829c650%40googlegroups.com
https://groups.google.com/d/msgid/lucee/920bed17-a9d1-47ce-9169-d59f0829c650%40googlegroups.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

Tomcat doesn’t have a max upload file size, but it does have a file upload
timeout. Go to server.xml and then your HTTP connector. You should add the
following attributes:

connectionUploadTimeout=“36000000” disableUploadTimeout=“false”

This sets the upload timeout at 10 hrs. (set your timeout value based on
what’s reasonable for your app)

See:
http://blog.somepixels.net/en/502-proxy-error-uploading-from-apache-mod_proxy-to-tomcat-7/On Wednesday, September 23, 2015 at 8:20:02 AM UTC-6, Jamie Jackson wrote:

Hi Folks,

I’m having some problems where larger files are crashing my Lucee
(4.5.1.023) server.

First question:

If I give fileUpload(All) a file in the 0-50MB range, it flushes all at
once to the temp directory (full-sized file appears); however, if I give it
a file greater than about 55MB, it flushes to the temp directory
incrementally (file grows until it’s full-sized).

Can anyone explain this threshold/behavior?

I looked at the guts of fileUploadAll()
https://bitbucket.org/lucee/lucee/src/30b941b832b54c5c4c877adc8fb21ca462001b90/lucee-java/lucee-core/src/lucee/runtime/tag/FileTag.java?at=master&fileviewer=file-view-default#FileTag.java-813,
but I didn’t spot anything.

Thanks,
Jamie

Also, if you are running in IIS, there are a couple IIS settings you need
to tweak:

configuration editor
1.

  system.web/httpRuntime
  https://msdn.microsoft.com/en-us/library/e1f13641(v=vs.85).aspx
  1. 
     
     executionTimeout: 10:00:00
     2. 
     
     maxRequestLength: 512000 (500 MB)
     2. 

Request Filtering → edit feature setting

  1. Maximum allowed content length: 512000000On Wednesday, September 23, 2015 at 8:20:02 AM UTC-6, Jamie Jackson wrote:

Hi Folks,

I’m having some problems where larger files are crashing my Lucee
(4.5.1.023) server.

First question:

If I give fileUpload(All) a file in the 0-50MB range, it flushes all at
once to the temp directory (full-sized file appears); however, if I give it
a file greater than about 55MB, it flushes to the temp directory
incrementally (file grows until it’s full-sized).

Can anyone explain this threshold/behavior?

I looked at the guts of fileUploadAll()
https://bitbucket.org/lucee/lucee/src/30b941b832b54c5c4c877adc8fb21ca462001b90/lucee-java/lucee-core/src/lucee/runtime/tag/FileTag.java?at=master&fileviewer=file-view-default#FileTag.java-813,
but I didn’t spot anything.

Thanks,
Jamie