Return-Path: Delivered-To: apmail-axis-java-dev-archive@www.apache.org Received: (qmail 44671 invoked from network); 13 Mar 2011 02:49:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Mar 2011 02:49:25 -0000 Received: (qmail 92208 invoked by uid 500); 13 Mar 2011 02:49:24 -0000 Delivered-To: apmail-axis-java-dev-archive@axis.apache.org Received: (qmail 92038 invoked by uid 500); 13 Mar 2011 02:49:23 -0000 Mailing-List: contact java-dev-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@axis.apache.org Delivered-To: mailing list java-dev@axis.apache.org Received: (qmail 92030 invoked by uid 99); 13 Mar 2011 02:49:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Mar 2011 02:49:23 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,RFC_ABUSE_POST,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mgainty@hotmail.com designates 65.55.116.107 as permitted sender) Received: from [65.55.116.107] (HELO blu0-omc3-s32.blu0.hotmail.com) (65.55.116.107) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Mar 2011 02:49:14 +0000 Received: from BLU142-W7 ([65.55.116.72]) by blu0-omc3-s32.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.4675); Sat, 12 Mar 2011 18:48:54 -0800 Message-ID: Content-Type: multipart/alternative; boundary="_41866c53-56a9-4982-9955-d858c52ed90f_" X-Originating-IP: [71.232.85.137] From: Martin Gainty To: Subject: RE: [jira] Created: (AXIS2-4978) Copying data from inputStream to OuputStream needs appropriate buffer size Date: Sat, 12 Mar 2011 21:48:53 -0400 Importance: Normal In-Reply-To: <763910792.15855.1299982860152.JavaMail.tomcat@hel.zones.apache.org> References: <763910792.15855.1299982860152.JavaMail.tomcat@hel.zones.apache.org> MIME-Version: 1.0 X-OriginalArrivalTime: 13 Mar 2011 02:48:54.0191 (UTC) FILETIME=[30FBD3F0:01CBE129] X-Virus-Checked: Checked by ClamAV on apache.org --_41866c53-56a9-4982-9955-d858c52ed90f_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable if there is no Constants.java in the plugin you can add an entry in=20 org.apache.axis2.databinding.Constants.java //add the constant BASE_BUFFER_SIZE=20 public static final int BASE_BUFFER_SIZE=3D10240=3B =20 (good call btw) Martin=20 ______________________________________________=20 Verzicht und Vertraulichkeitanmerkung/Note de d=E9ni et de confidentialit= =E9 =20 Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaeng= er sein=2C so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiter= leitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient l= ediglich dem Austausch von Informationen und entfaltet keine rechtliche Bin= dungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen w= ir keine Haftung fuer den Inhalt uebernehmen. Ce message est confidentiel et peut =EAtre privil=E9gi=E9. Si vous n'=EAtes= pas le destinataire pr=E9vu=2C nous te demandons avec bont=E9 que pour sat= isfaire informez l'exp=E9diteur. N'importe quelle diffusion non autoris=E9e= ou la copie de ceci est interdite. Ce message sert =E0 l'information seule= ment et n'aura pas n'importe quel effet l=E9galement obligatoire. =C9tant d= onn=E9 que les email peuvent facilement =EAtre sujets =E0 la manipulation= =2C nous ne pouvons accepter aucune responsabilit=E9 pour le contenu fourni= . > Date: Sun=2C 13 Mar 2011 02:21:00 +0000 > From: jira@apache.org > To: java-dev@axis.apache.org > Subject: [jira] Created: (AXIS2-4978) Copying data from inputStream to Ou= putStream needs appropriate buffer size >=20 > Copying data from inputStream to OuputStream needs appropriate buffer siz= e > -------------------------------------------------------------------------= - >=20 > Key: AXIS2-4978 > URL: https://issues.apache.org/jira/browse/AXIS2-4978 > Project: Axis2 > Issue Type: Bug > Components: modules > Affects Versions: 1.5.4 > Reporter: Xiaoming Shi >=20 >=20 > In the file=20 >=20 > ./axis2-1.5.4/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axi= s2/tools/wizardframe/WizardFrame.java line:323 >=20 > The buffer size is fixed at 1024 bytes. >=20 > To copy 10M data with 1024-byte buffer it takes 338=2C591=2C180 nano-seco= nd=2C while it takes 105=2C384=2C689 nano-second with a 10240-byte buffer. >=20 >=20 > Similar code can be found at: >=20 > ./axis2-1.5.4/modules/kernel/src/org/apache/axis2/util/IOUtils.java > ./axis2-1.5.4/modules/kernel/src/org/apache/axis2/classloader/IoUtil.java > ./axis2-1.5.4/modules/kernel/src/org/apache/axis2/classloader/JarResource= Location.java > ./axis2-1.5.4/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axi= s2/tools/wizardframe/WizardFrame.java >=20 >=20 > This is similar to the Apache Bug https://issues.apache.org/bugzilla/show= _bug.cgi?id=3D32546 >=20 > -- > This message is automatically generated by JIRA. > For more information on JIRA=2C see: http://www.atlassian.com/software/ji= ra >=20 > --------------------------------------------------------------------- > To unsubscribe=2C e-mail: java-dev-unsubscribe@axis.apache.org > For additional commands=2C e-mail: java-dev-help@axis.apache.org >=20 = --_41866c53-56a9-4982-9955-d858c52ed90f_ Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable if there is no Constants.java in the plugin you can add an entry in
org= .apache.axis2.databinding.Constants.java

//add the constant BASE_BUF= FER_SIZE
 =3B =3B =3B public static final int BASE_BUFFER_S= IZE=3D10240=3B
 =3B =3B
(good call btw)
Martin
______= ________________________________________
Verzicht und Vertraulichkeitan= merkung/Note de d=E9ni et de confidentialit=E9
 =3B
Diese Na= chricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein= =2C so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung= oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglic= h dem Austausch von Informationen und entfaltet keine rechtliche Bindungswi= rkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir kein= e Haftung fuer den Inhalt uebernehmen.
Ce message est confide=
ntiel et peut =EAtre privil=E9gi=E9. Si vous n'=EAtes pas le destinataire p=
r=E9vu=2C nous te demandons avec bont=E9 que pour satisfaire informez l'exp=
=E9diteur. N'importe quelle diffusion non autoris=E9e ou la copie de ceci e=
st interdite. Ce message sert =E0 l'information seulement et n'aura pas n'i=
mporte quel effet l=E9galement obligatoire. =C9tant donn=E9 que les email p=
euvent facilement =EAtre sujets =E0 la manipulation=2C nous ne pouvons acce=
pter aucune responsabilit=E9 pour le contenu fourni.




<= br>>=3B Date: Sun=2C 13 Mar 2011 02:21:00 +0000
>=3B From: jira@apac= he.org
>=3B To: java-dev@axis.apache.org
>=3B Subject: [jira] Cre= ated: (AXIS2-4978) Copying data from inputStream to OuputStream needs appro= priate buffer size
>=3B
>=3B Copying data from inputStream to Ou= putStream needs appropriate buffer size
>=3B -------------------------= -------------------------------------------------
>=3B
>=3B = Key: AXIS2-4978
>=3B URL: https://issues= .apache.org/jira/browse/AXIS2-4978
>=3B Project: Axis2>=3B Issue Type: Bug
>=3B Components: modules>=3B Affects Versions: 1.5.4
>=3B Reporter: Xiaomi= ng Shi
>=3B
>=3B
>=3B In the file
>=3B
>=3B ./= axis2-1.5.4/modules/tool/axis2-idea-plugin/src/main/java/org/apache/axis2/t= ools/wizardframe/WizardFrame.java line:323
>=3B
>=3B The buffer = size is fixed at 1024 bytes.
>=3B
>=3B To copy 10M data with 102= 4-byte buffer it takes 338=2C591=2C180 nano-second=2C while it takes 105=2C= 384=2C689 nano-second with a 10240-byte buffer.
>=3B
>=3B
&g= t=3B Similar code can be found at:
>=3B
>=3B ./axis2-1.5.4/modu= les/kernel/src/org/apache/axis2/util/IOUtils.java
>=3B ./axis2-1.5.4/m= odules/kernel/src/org/apache/axis2/classloader/IoUtil.java
>=3B ./axis= 2-1.5.4/modules/kernel/src/org/apache/axis2/classloader/JarResourceLocation= .java
>=3B ./axis2-1.5.4/modules/tool/axis2-idea-plugin/src/main/java/= org/apache/axis2/tools/wizardframe/WizardFrame.java
>=3B
>=3B >=3B This is similar to the Apache Bug https://issues.apache.org/bugzil= la/show_bug.cgi?id=3D32546
>=3B
>=3B --
>=3B This message i= s automatically generated by JIRA.
>=3B For more information on JIRA= =2C see: http://www.atlassian.com/software/jira
>=3B
>=3B ------= ---------------------------------------------------------------
>=3B T= o unsubscribe=2C e-mail: java-dev-unsubscribe@axis.apache.org
>=3B For= additional commands=2C e-mail: java-dev-help@axis.apache.org
>=3B = --_41866c53-56a9-4982-9955-d858c52ed90f_--