Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Problem downloading large files with Apache fronting WAS
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  14 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
markp  
View profile  
 More options Jul 18 2002, 4:46 pm
Newsgroups: ibm.software.websphere.application-server.as400
From: Ma...@softlanding.com
Date: Thu, 18 Jul 2002 16:36:19 -0400
Local: Thurs, Jul 18 2002 4:36 pm
Subject: Problem downloading large files with Apache fronting WAS
WebSphere 4.03 AE
OS/400 V4R5M0
Apache - latest Group PTF's (including recent CERT fix).

We have a WebSphere app we have developed where we have a servlet that
downloads files, such as zip files or PDF's to the user.  This works great
when using the built-in WAS HTTP transport.

In our production site, the HTTP server is Apache.  The servlet works for
small files, but fails for anything over 10-16 MB, do not know the exact
amount.  After pulling our hair out on this all week, tweaking our code to
read/write the file different ways etc., we finally got the idea of
hitting the WAS transport directly, which is how we discovered that it
works fine in that mode.

Could there be any settings in the Apache/WebSphere configuration that
could effect this?  Is it a known bug?  We were about to go live with this
application and this has turned into a major setback.  While we do see
stack traces in stdout, I do not think they are necessarily meaningful.  I
am not sure how to look for errors in Apache.

The site is also using SSL, but we tried SSL on the WAS transport and it
worked fine.

The problems happen in both IE 6 and Mozilla 1.0.

Thanks for any help.

Mark Phippard


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
markp  
View profile  
 More options Jul 19 2002, 1:47 pm
Newsgroups: ibm.software.websphere.application-server.as400
From: Ma...@softlanding.com
Date: Fri, 19 Jul 2002 13:18:58 -0400
Local: Fri, Jul 19 2002 1:18 pm
Subject: Re: Problem downloading large files with Apache fronting WAS
Just as an update, I tried using the Original HTTP Server instead of
Apache and have the same problem.

What happens on the downloads that fail is that almost immediately upon
clicking the link that invokes the servlet I get a "Server Error", which I
believe is error code 500.

So, based on what I have tested, the problem has to lie in the plugin.

Mark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
markp  
View profile  
 More options Jul 22 2002, 10:50 am
Newsgroups: ibm.software.websphere.application-server.as400
From: Ma...@softlanding.com
Date: Mon, 22 Jul 2002 10:39:57 -0400
Local: Mon, Jul 22 2002 10:39 am
Subject: Re: Problem downloading large files with Apache fronting WAS
OK, this problem just gets worse as I look for a solution.

Now, if I take my servlet out of the equation and just put the file I want
to download in a path that ican be straight-served by my web app, I still
get the same problem.  In other words, even the built in WAS file-serving
servlet cannot download the big files when communicating over the plugin.
Nothing shows up in stdout or stderr in this scenario.  The browser just
gives an immediate server error.  Same test with a smaller file works
fine.

All works fine when talking directly to WAS HTTP transport.

By the way, I cannot use the WAS transport because it has SSL problems
with IE that have not been resolved.

Thanks

Mark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Art Smet  
View profile  
 More options Jul 23 2002, 1:49 pm
Newsgroups: ibm.software.websphere.application-server.as400
From: Art Smet <s...@us.ibm.com>
Date: Tue, 23 Jul 2002 12:41:12 -0500
Local: Tues, Jul 23 2002 1:41 pm
Subject: Re: Problem downloading large files with Apache fronting WAS
Yup, I finally got around to trying this out myself, I get the same failure as
you describe when trying to download a large .zip file.  I suggest reporting
this problem to IBM support.  In the meantime, you might try circumventing the
problem by having your servlet stat'ing files and when they are >16MB read the
file and write it back to the browser in pieces <16MB each (issue a
response.flushBuffer() between writes).


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
markp  
View profile  
 More options Jul 23 2002, 2:52 pm
Newsgroups: ibm.software.websphere.application-server.as400
From: Ma...@softlanding.com
Date: Tue, 23 Jul 2002 14:17:46 -0400
Local: Tues, Jul 23 2002 2:17 pm
Subject: Re: Problem downloading large files with Apache fronting WAS
Art,

Thanks.  Since you reproduced it, can you report it?  If not, I guess I
can post something via PartnerWorld.

Given that this fails instantly, do you really think rewriting the servlet
would make a difference?  I do not even think the servlet gets a chance to
send any data.  If you do think it would make a difference could you give
me more information about what you think I should do?  Are you saying to
just flush the output stream before I get to 16MB?  I already know the
file size.

The way that I have worked around the problem, which while not ideal at
least works is to do the following:

When a file over a certain size is to be download I create a unique
session folder under my HTTP server, copy the file to that folder and then
send a redirect to the browser.  I then add an object to the session that
implements HttpSessionBindingListener to delete the file and folder when
the session expires.  This works, but there is a slight sever-side delay
while the file is created.  One advantage is that I can make the download
happens over a non-SSL connection.

By the way, the same problem appears to happen when posting/uploading
large files.  I am writing a small document management system so the user
can upload files that I store in a database.  I then make the files
available for download.

Thanks

Mark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Art Smet  
View profile  
 More options Jul 24 2002, 11:22 am
Newsgroups: ibm.software.websphere.application-server.as400
From: Art Smet <s...@us.ibm.com>
Date: Wed, 24 Jul 2002 10:11:58 -0500
Local: Wed, Jul 24 2002 11:11 am
Subject: Re: Problem downloading large files with Apache fronting WAS
The failure was near immediate just as you say, so I can understand why you'd
think it never reached the app server.  But there are indications in the
plugin trace, right before the failue, that it knows the size of the large
file being returned, which means it must have reached the app server. Yes,
doing the flush is what I had in mind. If using the file-serving servlet to
serve the large file, you wont have control to issue the flush somewhere
before the 16M point.  Sounds like you have your own servlet doing the
download so it maybe it will be possible in you situation.  I'll see how far I
can get contacting IBM.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Corey  
View profile  
 More options Aug 23 2002, 3:04 pm
Newsgroups: ibm.software.websphere.application-server.as400
From: coreycartwri...@yahoo.com (Corey)
Date: 23 Aug 2002 12:04:52 -0700
Local: Fri, Aug 23 2002 3:04 pm
Subject: Re: Problem downloading large files with Apache fronting WAS
I am encountering the same problem.  We have written a java app which
is registered within WebSphere.  The application deals with uploading
files.  When uploading a small .pdf, everything is fine.  It's when I
use a file bigger than 16Mb that I encounter the problems.  I get the
same symptoms both of you have discussed in this thread.  Did we find
any answers to this problem?  Please let me know.

Corey Cartwright


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob Kittelson  
View profile  
 More options Sep 4 2002, 12:11 pm
Newsgroups: ibm.software.websphere.application-server.as400
From: "Bob Kittelson" <k7...@yahoo.com>
Date: Wed, 4 Sep 2002 10:37:16 -0500
Local: Wed, Sep 4 2002 11:37 am
Subject: Re: Problem downloading large files with Apache fronting WAS
Has there been any response from IBM as to a fix for this problem?

"Art Smet" <s...@us.ibm.com> wrote in message

news:3D3EC3BE.41C4416@us.ibm.com...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
markp  
View profile  
 More options Sep 4 2002, 1:22 pm
Newsgroups: ibm.software.websphere.application-server.as400
From: Ma...@softlanding.com
Date: Wed, 4 Sep 2002 12:53:22 -0400
Local: Wed, Sep 4 2002 12:53 pm
Subject: Re: Problem downloading large files with Apache fronting WAS
Bob,

No, I never got any respose.  Since I had developed a workaround I have
not pressed the issue further.

If you have a WebSphere support contract I would recommend reporting the
problem to IBM via official channels.  It is very simply to duplicate so
it shouldn't be difficult to get a problem opened.

Mark


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob Kittelson  
View profile  
 More options Sep 5 2002, 10:21 am
Newsgroups: ibm.software.websphere.application-server.as400
From: "Bob Kittelson" <k7...@yahoo.com>
Date: Thu, 5 Sep 2002 08:01:40 -0500
Local: Thurs, Sep 5 2002 9:01 am
Subject: Re: Problem downloading large files with Apache fronting WAS
I called the support line yesterday and opened up a PMR about this.  I am
currently waiting to see what they tell me, but the person I am dealing with
has noted that he has queried Art S. and is awaiting a response.

<Ma...@softlanding.com> wrote in message

news:al5d3q$3e5m$1@news.boulder.ibm.com...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Byron Bailey  
View profile  
 More options Sep 5 2002, 5:41 pm
Newsgroups: ibm.software.websphere.application-server.as400
From: Byron Bailey <baile...@us.ibm.com>
Date: Thu, 05 Sep 2002 14:58:59 -0500
Local: Thurs, Sep 5 2002 3:58 pm
Subject: Re: Problem downloading large files with Apache fronting WAS
Mark,

The file download problem that you are seeing is fixed in WAS 4.0.4, so please
get the latest ptf to fix this problem.  In addition, the file upload problem
has also been fixed, but due to java object size restrictions at V4R5, such
large uploads will only work if you move to V5R1.  In order to make them work
you will also have to tweak your plugin-cfg.xml file.  The tweak is present to
prevent potential DOS attacks on the HTTP server.

Open your plugin-cfg.xml file in an editor, and add the attribute
PostSizeLimit to all applicable server groups.  Set the attribute to the
mzximum value in bytes that you would like to be able to upload.  For example:

<ServerGroup Name="iSeriesBox/Default Server" PostSizeLimit="30000000">
        <Server CloneID="u0dea013" Name="Default Server">
            <Transport Hostname="iSeriesBox" Port="10542" Protocol="http"/>
        </Server>
    </ServerGroup>

Unfortunately, any time the plugin file is regenerated you will need to add
this property manually.
-Byron


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Frances Stewart  
View profile  
 More options Sep 6 2002, 10:12 am
Newsgroups: ibm.software.websphere.application-server.as400
From: Frances Stewart <franc...@us.ibm.com>
Date: Fri, 06 Sep 2002 07:37:26 -0500
Local: Fri, Sep 6 2002 8:37 am
Subject: Re: Problem downloading large files with Apache fronting WAS
Note: V4.0.4 for iSeries is not yet available but should be available over this
weekend or early next week.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bob Kittelson  
View profile  
 More options Sep 9 2002, 10:05 am
Newsgroups: ibm.software.websphere.application-server.as400
From: "Bob Kittelson" <k7...@yahoo.com>
Date: Mon, 9 Sep 2002 07:25:07 -0500
Local: Mon, Sep 9 2002 8:25 am
Subject: Re: Problem downloading large files with Apache fronting WAS
Here is the latest reply I have gotten from the support line
.
Bob,
Here is the word from the developer about WAS 3.5
Download does work at v3.56 across all servers & OS releases.  Upload
only works for apache http server at v5r1.  The reasons the other
uploads fails is due to non-WebSphere reasons (original http server cant
handle requests 16MB+), nor can the JDK objects be greater than 16MB.
.
So, there is nothing to fix with 3.5.  The problems are software
restrictions.

This statement proves to be wrong as we are on V5R1 running WAS 3.5.3 on the
Apache http server and we still have the upload barrier of 16 megs.

<Ma...@softlanding.com> wrote in message

news:ah78f2$etk$1@news.boulder.ibm.com...


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Art Smet  
View profile  
 More options Sep 9 2002, 1:09 pm
Newsgroups: ibm.software.websphere.application-server.as400
From: Art Smet <s...@us.ibm.com>
Date: Mon, 09 Sep 2002 10:33:35 -0500
Local: Mon, Sep 9 2002 11:33 am
Subject: Re: Problem downloading large files with Apache fronting WAS
Bob, the upload was meant to apply to WAS v3.56 as well as the download
statement.  I'm not sure why it is failing at WAS v3.53, but that level is over
a year old and it's possible the limitation got fixed somewhere along the way to
WAS v3.56 or perhaps in the latest level of the apache http server itself, which
WAS plugs into.  Are you able to move up to WAS v3.56, if the upload still fails
you should contact IBM support.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »