|
Home > Archive > WebSphere Application Server > September 2005 > Slow speed when uping a file from WAS 6.0
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Slow speed when uping a file from WAS 6.0
|
|
|
| To resume to situation i've a servlet wich retrieve a text/pdf/xml/excel document from IBM On demand content manager and then write the stream in the res.getOutputStream().
Some lines of code:
private void processRequest(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
byte[] pdfByteArray = null;
pdfByteArray = odHit.retrieve(ODConstant.NATIVE); // retrieve from Ondemande Content Manager
sMimeType = odHit.getMimeType();
res.setContentType(sMimeType);
res.setContentLength(pdfByteArray.length);
res.getOutputStream().write(pdfByteArray, 0, pdfByteArray.length);
res.getOutputStream().flush();
res.getOutputStream().close();
}
For big files (like 150Mo) sometimes i've lost the stream...and i've have always a up streamin speed of 400/500ko/s on my network. Here ( http://publib.boulder.ibm.com/infoc.../v6r0/index.jsp ) I saw that we could tune tcp/ip parameters but I di
d not find the chgtcpa command anywhere. Anyone have already use it?
Perhaps some tuning on http server side?
My architecture:
- 100Mbits network (i've made some test with a ftp server and it's ok),
- xSeries PIV 3Ghz Dual Core, 4Gig RAM
- Linux Redhat Advanced Server 4.0
- WAS 6.0.2.1 (last update)
- IBM HTTP Server 6.0.2.1 (last update)
Thanks for your responses!
| |
|
| Hi,
CHGTCPA is an iSeries command and cannot be found on any other platform.
Do all the components of your network (switches, hubs, nic's) have the
correct settings for speed (10/100/1000M) and duplex (Half/Full)?
Rgds,
Henk
<laurent.s@speos.be> schreef in bericht
news:1636520246.1127214577342.JavaMail.wassrvr@ltsgwas007.sby.ibm.com...
> To resume to situation i've a servlet wich retrieve a text/pdf/xml/excel
> document from IBM On demand content manager and then write the stream in
> the res.getOutputStream().
>
> Some lines of code:
>
> private void processRequest(HttpServletRequest req, HttpServletResponse
> res) throws ServletException, IOException {
>
> byte[] pdfByteArray = null;
> pdfByteArray = odHit.retrieve(ODConstant.NATIVE); // retrieve from
> Ondemande Content Manager
> sMimeType = odHit.getMimeType();
> res.setContentType(sMimeType);
> res.setContentLength(pdfByteArray.length);
> res.getOutputStream().write(pdfByteArray, 0, pdfByteArray.length);
> res.getOutputStream().flush();
> res.getOutputStream().close();
> }
>
>
>
> For big files (like 150Mo) sometimes i've lost the stream...and i've have
> always a up streamin speed of 400/500ko/s on my network. Here (
> http://publib.boulder.ibm.com/infoc.../v6r0/index.jsp ) I saw
> that we could tune tcp/ip parameters but I did not find the chgtcpa
> command anywhere. Anyone have already use it?
> Perhaps some tuning on http server side?
>
> My architecture:
> - 100Mbits network (i've made some test with a ftp server and it's ok),
> - xSeries PIV 3Ghz Dual Core, 4Gig RAM
> - Linux Redhat Advanced Server 4.0
> - WAS 6.0.2.1 (last update)
> - IBM HTTP Server 6.0.2.1 (last update)
>
> Thanks for your responses!
| |
|
| Okay for CHGTCPA
No network problem, i transfer some file a 14mo/s via ftp
|
|
|
|
|