Re: Slow with direct action on mavericks 10.9.2

Matt Ness <[email protected]> Sat, 3 May 2014 10:31:32 +1000
Newsgroups gmane.comp.web.webobjects.wonder-disc
Message-ID <[email protected]>
On 02/05/2014, at 6:47 PM, Jürgen Rohrbach <[email protected]> wrote:

> Hello,
> 
> i have found a solution. when i change the
> 	- Send Buffer Size
> 	- Receive Buffer Size
> 
> in the Load Balancing and Adapter Settings to 65536
> the speed is good.


Great!

> if i empty the fields and change the settings the speed is very slow.
> i never changed this values before.
> i seems that the default values changed on mavericks.
> is there a way to get the default values?
> 


I may be wrong but I think the default value in the Wonder version is also left blank.

Regards,

Matt
--
http://logicsquad.net



> Thanks,
> 
> Jürgen
> 
> 
> <Bild 10.png>
> 
> 
> 
> 
> Am 02.05.2014 um 09:51 schrieb Matt Ness:
> 
>> Hi again,
>> 
>> 1) I would still recommend it - at least some multiple of your block size, and at the very least a power of 2 value.
>> 
>> 2) terminal: > stat -f "%k" [some file]
>> 
>> eg.
>> 
>>> cd
>>> stat -f "%k" .bash_history
>> 
>> 
>> for me the result would mostly be :
>> 4096
>> 
>> I believe that's the way to do it ;)
>> 
>> 
>> 3) Just out of interest, is there a defined reason to use octet-string? Looks like you are presenting a Tagged Image as a download. I've not seen octet-string used for tif(f)s before, I've always used octet-stream.
>> 
>> 
>> 
>> Regards,
>> 
>> Matt
>> --
>> http://logicsquad.net
>> 
>> 
>> 
>> On 02/05/2014, at 4:24 PM, Jürgen Rohrbach <[email protected]> wrote:
>> 
>>> Hello Matt,
>>> 
>>> thanks for your response.
>>> 
>>> 1) changing the buffer size to smaller values does not solve the problem.
>>> 
>>> 2) it is a new mac pro with a ssd hd. where can i get/set the system block size?
>>> 
>>> 3) no, same speed.
>>> 
>>> 
>>>> Hi Jürgen,
>>>> 
>>>> What happens when you set your buffer size to a smaller value, 4096, 8192, or at least a power of 2 value?
>>>> 
>>>> What is the file system block size for the system you are serving from?
>>>> 
>>>> Is there a speed difference when you use "application/octet-stream"?
>>>> 
>>>> 
>>>> Regards,
>>>> 
>>>> Matt
>>>> --
>>>> http://logicsquad.net
>>>> 
>>>> 
>>>> 
>>>> On 29/04/2014, at 9:59 PM, Jürgen Rohrbach <[email protected]> wrote:
>>>> 
>>>>> hello,
>>>>> 
>>>>> i have a empty erxapplication with only on direct action.
>>>>> the direct action streams a large file.
>>>>> the problem is that i only get about 120kB/s download speed.
>>>>> does anybody have a solutions for this problem?
>>>>> this problem does not exits perior to mavericks!
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 	public WOActionResults downloadAction() throws Exception {
>>>>> 		WOResponse aResponse = WOApplication.application
>>>>> ().createResponseInContext(null);
>>>>> 		
>>>>> 		// contentTyp
>>>>> 		String contentType = "application/octet-string";
>>>>> 		String filepath = "large.tif";
>>>>> 		
>>>>> 		aResponse.setHeader(contentType, "Content-type");
>>>>> 		File f = new File(filepath);
>>>>> 		int bufferSize = 10000000;
>>>>> 		aResponse.setContentStream(new FileInputStream(f), bufferSize,
>>>>> (long) f.length());
>>>>> 		String fileName = NSPathUtilities.lastPathComponent( filepath );
>>>>> 		aResponse.setHeader("inline; filename="+fileName, "Content-
>>>>> disposition");
>>>>> 		return aResponse;
>>>>> 	}
>>>>> 
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>>>> Instantly run your Selenium tests across 300+ browser/OS combos.  Get
>>>>> unparalleled scalability from the best Selenium testing platform available.
>>>>> Simple to use. Nothing to install. Get started now for free."
>>>>> http://p.sf.net/sfu/SauceLabs
>>>>> _______________________________________________
>>>>> Wonder-disc mailing list
>>>>> [email protected]
>>>>> https://lists.sourceforge.net/lists/listinfo/wonder-disc
>>>> 
>>> 
>> 
> 


------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs