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).
So, I’m not sure why I saw the behavior I’d previously seen/described (on
Linux), but I wasn’t as scientific with the previous experiment (since I
can’t easily step debug on the server), and have to watch files/directories
change full-speed.
Back to the drawing board, I guess.
In the meantime, please let me know if you’ve had any experience with
large(r) files crashing your Railo/Lucee server.
Thanks,
JamieOn 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).
I have had serious issues with large file uploads crashing servers in the past, so much so that in a new project I wrote an AJAX-based file uploader that splits uploads into 1MB increments, uploads them separately and then re-assembles the files on the other end. If you are interested in my solution, I am going to put it into an open source project soon. I need to add broken upload resume and some other features before I open source it.
There is at least one other solution like mine, PLUpload, though I think you need to buy a commercial license for production. Ben Nadel has written about it in the past.
Robert> On Sep 24, 2015, at 10:57 AM, Jamie Jackson <@Jamie_Jackson> wrote:
So, I’m not sure why I saw the behavior I’d previously seen/described (on Linux), but I wasn’t as scientific with the previous experiment (since I can’t easily step debug on the server), and have to watch files/directories change full-speed.
Back to the drawing board, I guess.
In the meantime, please let me know if you’ve had any experience with large(r) files crashing your Railo/Lucee server.
Thanks,
Jamie
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).
So, I’m not sure why I saw the behavior I’d previously seen/described (on
Linux), but I wasn’t as scientific with the previous experiment (since I
can’t easily step debug on the server), and have to watch files/directories
change full-speed.
Back to the drawing board, I guess.
In the meantime, please let me know if you’ve had any experience with
large(r) files crashing your Railo/Lucee server.
Thanks,
Jamie
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).
I have also noticed this in the passed (on railo), firstly you need to max
your jvm memory I have mine set at 2GB but still never managed files larger
than ~50mb, it causes outofmemoryexeption’s so it seems the limitation is
between java and lucee since it tries to loas the entire file in memory.
This should be done using a filestream instead but I have never dug into it.
Regards
GXOn Wednesday, September 23, 2015 at 5:20:02 PM UTC+3, 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).
So, I’m not sure why I saw the behavior I’d previously seen/described (on
Linux), but I wasn’t as scientific with the previous experiment (since I
can’t easily step debug on the server), and have to watch files/directories
change full-speed.
Back to the drawing board, I guess.
In the meantime, please let me know if you’ve had any experience with
large(r) files crashing your Railo/Lucee server.
Thanks,
Jamie
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).
Thanks, Robert. Were you ever able to track down what the ultimate problem
was? I started a ticket, but it isn’t a very clean bug
report: [LDEV-548] - Lucee
I’ll keep an eye on your uploader if nothing comes of the ticket.On Friday, September 25, 2015 at 7:09:30 PM UTC-4, Robert Munn wrote:
I have had serious issues with large file uploads crashing servers in the
past, so much so that in a new project I wrote an AJAX-based file uploader
that splits uploads into 1MB increments, uploads them separately and then
re-assembles the files on the other end. If you are interested in my
solution, I am going to put it into an open source project soon. I need to
add broken upload resume and some other features before I open source it.
There is at least one other solution like mine, PLUpload, though I think
you need to buy a commercial license for production. Ben Nadel has written
about it in the past.
Robert
On Sep 24, 2015, at 10:57 AM, Jamie Jackson <jamie...@gmail.com <javascript:>> wrote:
So, I’m not sure why I saw the behavior I’d previously seen/described (on
Linux), but I wasn’t as scientific with the previous experiment (since I
can’t easily step debug on the server), and have to watch files/directories
change full-speed.
Back to the drawing board, I guess.
In the meantime, please let me know if you’ve had any experience with
large(r) files crashing your Railo/Lucee server.
Thanks,
Jamie
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).
I will see if we can use this as the basis of the fix
Thanks
AlexOn 29 September 2015 at 14:14, Jamie Jackson <@Jamie_Jackson> wrote:
I’m back to looking at this flushing behavior on Linux. I seem to have
been right, on Linux, files smaller than the magic threshold (~55MB) write
to the temp directory all at once, while larger files flush incrementally,
from the very beginning.
So, to sum up my questions. (I’ve got a new one, too.)
Flushing
Why/how do files get written differently to the temp directory,
depending on their size, on Linux JVMs? (Incrementally for files greater
than ~55MB, and all at once for smaller files.)
So, I’m not sure why I saw the behavior I’d previously seen/described (on
Linux), but I wasn’t as scientific with the previous experiment (since I
can’t easily step debug on the server), and have to watch files/directories
change full-speed.
Back to the drawing board, I guess.
In the meantime, please let me know if you’ve had any experience with
large(r) files crashing your Railo/Lucee server.
Thanks,
Jamie
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).
CONFIDENTIAL AND PRIVILEGED - This e-mail and any attachment is intended
solely for the addressee, is strictly confidential and may also be subject
to legal, professional or other privilege or may be protected by work
product immunity or other legal rules. If you are not the addressee please
do not read, print, re-transmit, store or act in reliance on it or any
attachments. Instead, please email it back to the sender and then
immediately permanently delete it. Pixl8 Interactive Ltd Registered in
England. Registered number: 04336501. Registered office: 8 Spur Road,
Cosham, Portsmouth, Hampshire, PO6 3EB
I would bet its not a CF issueOn 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).
When I was step-debugging locally, I was on Windows, using the debugging
server which runs on Jetty.
Why, what are you thinking?On Tue, Sep 29, 2015 at 11:40 AM, Terry Whitney <@Terry_Whitney> wrote:
What is the Web server your running…
I would bet its not a CF issue
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).
I’m back to looking at this flushing behavior on Linux. I seem to have
been right, on Linux, files smaller than the magic threshold (~55MB) write
to the temp directory all at once, while larger files flush incrementally,
from the very beginning.
So, to sum up my questions. (I’ve got a new one, too.)
Flushing
Why/how do files get written differently to the temp directory,
depending on their size, on Linux JVMs? (Incrementally for files greater
than ~55MB, and all at once for smaller files.)
It sounds to me like you might be hitting something in the servlet
container that might be causing this, perhaps the in
web.xml is set, or needs to be set:
I’m back to looking at this flushing behavior on Linux. I seem to have been
right, on Linux, files smaller than the magic threshold (~55MB) write to
the temp directory all at once, while larger files flush incrementally,
from the very beginning.
So, to sum up my questions. (I’ve got a new one, too.)
Flushing
Why/how do files get written differently to the temp directory,
depending on their size, on Linux JVMs? (Incrementally for files greater
than ~55MB, and all at once for smaller files.)
So, I’m not sure why I saw the behavior I’d previously seen/described (on
Linux), but I wasn’t as scientific with the previous experiment (since I
can’t easily step debug on the server), and have to watch files/directories
change full-speed.
Back to the drawing board, I guess.
In the meantime, please let me know if you’ve had any experience with
large(r) files crashing your Railo/Lucee server.
Thanks,
Jamie
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).
Tomcat has a max upload set of 50 meg by default.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).
Hi Pete, according to (my interpretation of) the docs you sent, the default
is unlimited (-1), and since I don’t see any overrides in the stock Lucee
web.xml, I don’t think this is in play.On Tuesday, September 29, 2015 at 1:15:17 PM UTC-4, Pete Freitag wrote:
On Tue, Sep 29, 2015 at 9:14 AM, Jamie Jackson <jamie...@gmail.com <javascript:>> wrote:
I’m back to looking at this flushing behavior on Linux. I seem to have
been right, on Linux, files smaller than the magic threshold (~55MB) write
to the temp directory all at once, while larger files flush incrementally,
from the very beginning.
So, to sum up my questions. (I’ve got a new one, too.)
Flushing
Why/how do files get written differently to the temp directory,
depending on their size, on Linux JVMs? (Incrementally for files greater
than ~55MB, and all at once for smaller files.)
It sounds to me like you might be hitting something in the servlet
container that might be causing this, perhaps the in
web.xml is set, or needs to be set:
That is unlikely to be the correct one: it will control the manager, but
not Lucee. Depending on how you installed Tomcat the correct web.xml is
either in //conf/, /etc/tomcat?/ or
//webapps/ROOT/.
Can you tell me how you know about this default?On Tuesday, September 29, 2015 at 1:43:03 PM UTC-4, Terry Whitney wrote:
Tomcat has a max upload set of 50 meg by default.
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).
Are you using the express version with jetty?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).
Based on the rest of the discussion, it looks like maybe the Tomcat config issue will fix it, but I never got that far because i decided that i would rather chunk large files into parts. A benefit of this strategy is broken file upload resume so if, for instance, your 700MB ISO upload fails midway through, you can resume without re-uploading the entire file.> On Sep 28, 2015, at 12:40 PM, Jamie Jackson <@Jamie_Jackson> wrote:
Thanks, Robert. Were you ever able to track down what the ultimate problem was? I started a ticket, but it isn’t a very clean bug report: [LDEV-548] - Lucee
I’ll keep an eye on your uploader if nothing comes of the ticket.
On Friday, September 25, 2015 at 7:09:30 PM UTC-4, Robert Munn wrote:
I have had serious issues with large file uploads crashing servers in the past, so much so that in a new project I wrote an AJAX-based file uploader that splits uploads into 1MB increments, uploads them separately and then re-assembles the files on the other end. If you are interested in my solution, I am going to put it into an open source project soon. I need to add broken upload resume and some other features before I open source it.
There is at least one other solution like mine, PLUpload, though I think you need to buy a commercial license for production. Ben Nadel has written about it in the past.
Robert
On Sep 24, 2015, at 10:57 AM, Jamie Jackson <jamie...@gmail.com <javascript:>> wrote:
So, I’m not sure why I saw the behavior I’d previously seen/described (on Linux), but I wasn’t as scientific with the previous experiment (since I can’t easily step debug on the server), and have to watch files/directories change full-speed.
Back to the drawing board, I guess.
In the meantime, please let me know if you’ve had any experience with large(r) files crashing your Railo/Lucee server.
Thanks,
Jamie
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).
Also, my questions still stand, but I’m still investigating–I’m not quite
ready to give up on stock Lucee uploads (I really want to find out what’s
going on).
I’ll keep you guys’ uploaders in mind if I can’t get to the bottom of this,
though, so thanks for mentioning them.
Thanks,
JamieOn Tue, Sep 29, 2015 at 9:14 AM, Jamie Jackson <@Jamie_Jackson> wrote:
I’m back to looking at this flushing behavior on Linux. I seem to have
been right, on Linux, files smaller than the magic threshold (~55MB) write
to the temp directory all at once, while larger files flush incrementally,
from the very beginning.
So, to sum up my questions. (I’ve got a new one, too.)
Flushing
Why/how do files get written differently to the temp directory,
depending on their size, on Linux JVMs? (Incrementally for files greater
than ~55MB, and all at once for smaller files.)
So, I’m not sure why I saw the behavior I’d previously seen/described (on
Linux), but I wasn’t as scientific with the previous experiment (since I
can’t easily step debug on the server), and have to watch files/directories
change full-speed.
Back to the drawing board, I guess.
In the meantime, please let me know if you’ve had any experience with
large(r) files crashing your Railo/Lucee server.
Thanks,
Jamie
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).