You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by zmerry <ma...@hotmail.com> on 2009/12/18 09:24:56 UTC

[users@httpd] Newbie question:How to change chunk size?


When I use Apache and PHP to learn Chunked Transfer Encoding, I found all chunk-size are about 8k bytes.
However, I saw some chunk-size are less than 100 bytes in a http tutorial.

I spend lots of time trying to solve the question, but get nothing.

Could you tell me where I can set chunk size in Apache?

I can never thank you enough for your help !









 		 	   		  
_________________________________________________________________
MSN十周年庆典,查看MSN注册时间,赢取神秘大奖
http://10.msn.com.cn

Re: [users@httpd] Newbie question:How to change chunk size?

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
On 25.12.09 15:49, zmerry wrote:
> I guess you are surprised why I want to set the small chunk size.
> 
> Do you ever see the following example about Chunked Encoding?
> 29<html><body><p>The file you requested is
> 53,40023
> bytes long and was last modified:1dSat, 20 Mar 2004 21:12:00 GMT
> 13.</p></body></html>0
> 
> You must find the chunk size is really small( 29 ,5, 23, 1d), so I consider chunk size can be set in Apache.

there can be different reason for small chuink size, so your assumption may
be incorrect.

> I don't find where to set the value, but really want to find it.

and I still do not understand WHY you want to set it. What do you want to
achieve?

> > Date: Tue, 22 Dec 2009 11:18:56 +0100
> > From: uhlar@fantomas.sk
> > To: users@httpd.apache.org
> > Subject: Re: [users@httpd] Newbie question:How to change chunk size?
> > 
> > On 18.12.09 16:24, zmerry wrote:
> > > When I use Apache and PHP to learn Chunked Transfer Encoding, I found all
> > > chunk-size are about 8k bytes. However, I saw some chunk-size are less
> > > than 100 bytes in a http tutorial.
> > > 
> > > I spend lots of time trying to solve the question, but get nothing.
> > > 
> > > Could you tell me where I can set chunk size in Apache?
> > 
> > why?

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Honk if you love peace and quiet. 

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Newbie question:How to change chunk size?

Posted by zmerry <ma...@hotmail.com>.
I guess you are surprised why I want to set the small chunk size.

Do you ever see the following example about Chunked Encoding?
29<html><body><p>The file you requested is
53,40023
bytes long and was last modified:1dSat, 20 Mar 2004 21:12:00 GMT
13.</p></body></html>0

You must find the chunk size is really small( 29 ,5, 23, 1d), so I consider chunk size can be set in Apache.
I don't find where to set the value, but really want to find it.

Could you give a hand? 
Thanks in advance. 


> Date: Tue, 22 Dec 2009 11:18:56 +0100
> From: uhlar@fantomas.sk
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] Newbie question:How to change chunk size?
> 
> On 18.12.09 16:24, zmerry wrote:
> > When I use Apache and PHP to learn Chunked Transfer Encoding, I found all
> > chunk-size are about 8k bytes. However, I saw some chunk-size are less
> > than 100 bytes in a http tutorial.
> > 
> > I spend lots of time trying to solve the question, but get nothing.
> > 
> > Could you tell me where I can set chunk size in Apache?
> 
> why?
> -- 
> Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
> Warning: I wish NOT to receive e-mail advertising to this address.
> Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
> Silvester Stallone: Father of the RISC concept.
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
 		 	   		  
_________________________________________________________________
立刻下载最新版 Windows Live Messenger!
http://www.windowslive.cn

[users@httpd] Re: Sporadic Apache delays

Posted by LuKreme <kr...@kreme.com>.
On 22-Dec-2009, at 18:03, Alok Chugh wrote:

Please don't hijack other threads. Your post has nothing to do with "Newbie Question:How to change chunk size"

Start a NEW message.

-- 
Mister Teatime had a truly brilliant mind, but it was brilliant like a fractured mirror, all marvellous facets and rainbows but, ultimately, also something that was broken. --Hogfather


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Sporadic Apache delays

Posted by Sander Temme <sc...@apache.org>.
Alok,

This is indeed very strange. Rest assured that Apache does not have a  
"swamp-1%-of-requests-just-to-mess-with-Alok" config option: we would  
not turn that on by default.

How does the delay manifest itself?  Are you running analysis software  
like Wily CEM or Tealeaf?

Search for commonality in the problem requests: origin, destination,  
resource, etc.  Try to get a packet trace and analyze it. Try to see  
where the delay occurs: a nameserver lookup?  A retransmission?

All Apache does is read a request from a file descriptor, and write  
the response to that same file descriptor.  All the network stuff  
happens outside its purview (except for NS lookups).

Good luck,

S.

On Dec 22, 2009, at 5:03 PM, Alok Chugh <Al...@optus.com.au> wrote:

> Hi Apache Gurus,
>
> I am really troubled by this. Please provide your suggestions on how  
> to address this:
>
> My website is having sporadic delays (about 1% of requests are  
> delayed). Most of the delayed resources are placed locally on the  
> same box as Apache only and are not being proxied...
> See the below log entries in extended log format:
>
> 210.56.91.174 - - [05/Aug/2009:23:01:48 +1000] 89 "GET /dafiles/OCA/ 
> OptusHome/HomeRedesign/lib/jquery.js HTTP/1.1" 200 100196 "http://mobile.optuszoo.com.au/cocoon/cgi-bin/info2you/static_file/display_file.cgi?file=helppictures.html 
> " "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0;  
> GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR  
> 3.0.4506.2152; .NET CLR 3.5.30729)"
>
> 220.238.26.112 - - [05/Aug/2009:23:07:24 +1000] 90 "GET /home/ 
> contents/personal/banner_central_1.jpg?_=1 HTTP/1.1" 200 55745 "http://www.optus.com.au/home/index.html 
> " "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0;  
> GTB6; .NET CLR 1.1.4322)"
>
> 219.90.225.57 - - [05/Aug/2009:23:02:59 +1000] 174 "GET /dafiles/OCA/ 
> OptusHome/HomeRedesign/lib/jquery.js HTTP/1.1" 200 100196 "http://mobile.optuszoo.com.au/cocoon/aggregate/game.optus.mmode.ws/ojg_prd/html/gameMain.php?node_id=30121 
> " "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
> Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729 
> )"
>
> All of these log entries took more than 60 seconds despite of being  
> present locally.
> I am using Apache 2.0.52 on Red Hat Enterprise Linux ES release 4  
> (Nahant Update 3).
> The Apache is built in prefork mode.
> This is a Production website serving millions of requests daily but  
> we are having a large farm serving the customers and have sufficient  
> capacity.
> The interesting thing is consistently and at all times 1% of the  
> requests are being delayed and the web resources being delayed are  
> random and most often local.
>
>
> Thanks,
>
> Kind Regards,
> Alok Chugh
>
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server  
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>   "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


[users@httpd] Sporadic Apache delays

Posted by Alok Chugh <Al...@optus.com.au>.
Hi Apache Gurus,

I am really troubled by this. Please provide your suggestions on how to address this:

My website is having sporadic delays (about 1% of requests are delayed). Most of the delayed resources are placed locally on the same box as Apache only and are not being proxied...
See the below log entries in extended log format:

210.56.91.174 - - [05/Aug/2009:23:01:48 +1000] 89 "GET /dafiles/OCA/OptusHome/HomeRedesign/lib/jquery.js HTTP/1.1" 200 100196 "http://mobile.optuszoo.com.au/cocoon/cgi-bin/info2you/static_file/display_file.cgi?file=helppictures.html" "Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"

220.238.26.112 - - [05/Aug/2009:23:07:24 +1000] 90 "GET /home/contents/personal/banner_central_1.jpg?_=1 HTTP/1.1" 200 55745 "http://www.optus.com.au/home/index.html" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; GTB6; .NET CLR 1.1.4322)"

219.90.225.57 - - [05/Aug/2009:23:02:59 +1000] 174 "GET /dafiles/OCA/OptusHome/HomeRedesign/lib/jquery.js HTTP/1.1" 200 100196 "http://mobile.optuszoo.com.au/cocoon/aggregate/game.optus.mmode.ws/ojg_prd/html/gameMain.php?node_id=30121" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1;
Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)"

All of these log entries took more than 60 seconds despite of being present locally.
I am using Apache 2.0.52 on Red Hat Enterprise Linux ES release 4 (Nahant Update 3).
The Apache is built in prefork mode.
This is a Production website serving millions of requests daily but we are having a large farm serving the customers and have sufficient capacity.
The interesting thing is consistently and at all times 1% of the requests are being delayed and the web resources being delayed are random and most often local.


Thanks,

Kind Regards,
Alok Chugh



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Newbie question:How to change chunk size?

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
On 18.12.09 16:24, zmerry wrote:
> When I use Apache and PHP to learn Chunked Transfer Encoding, I found all
> chunk-size are about 8k bytes. However, I saw some chunk-size are less
> than 100 bytes in a http tutorial.
> 
> I spend lots of time trying to solve the question, but get nothing.
> 
> Could you tell me where I can set chunk size in Apache?

why?
-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Silvester Stallone: Father of the RISC concept.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org