Re: [Newbie] Speed of WO - How to set up a reasonable test environment?
Re: [Newbie] Speed of WO - How to set up a reasonable test environment?
- Subject: Re: [Newbie] Speed of WO - How to set up a reasonable test environment?
- From: Denis Stanton <email@hidden>
- Date: Sun, 27 Nov 2005 15:58:08 +1300
Hi Stefan
On 27/11/2005, at 2:31 PM, Stefan Pantke wrote:
Hi,
I'm totally new to WO.
Just upgraded to the most recent XCode/WO release, compiled
the HelloWorld WO sample.
When I run the app, the browser opens this URL:
http://x2.local:49763/cgi-bin/WebObjects/HelloWorld.woa
The slow startup is related to the URL above. Try replacing the
server name 'x2.local' with 'localhost'
What you have is the default 'Bonjour" server name. I don't know why
WebObjects defaults to this as it is unreasonably slow on a mid-range
Mac.
To save the annoyance of having to modify the URL on every compile-
test iteration you can set this override in the run time arguments.
In XCode locate the Executables section near the bottom of the Groups
& Files menu. Click on your executable file, "HelloWorld".
Now click the Info button at the top. Select the Arguments panel and
add a new argument:
-WOHost localhost
While you are there you can tell XCode to use a consistent port
number for testing by setting:
-WOPort 50000
You can use other spare port numbers if you like. The advantage of
using a consistent port number is you can bookmark this on your Mac
or better yet on another Mac (or even a PC) if you have two on your
desk, one for building and one for testing. The URL on that will
begin http://x2:50000/.....
I develop on a MiniMac 1.42 with 1 GB. I upgraded the RAM as soon as
I bought it so I don't really know how it would have worked with
512MB but past experience suggest the extra ram improves the
experience. I consider it money well spent.
I purchased the generic Kingston package rather than the "guaranteed
for Mac".
This is much cheaper but you have no right to refund or replacement
unless it is faulty. i.e, you can't take it back if you made a mistake.
I am using a Kingston KVR333/1GR 1GB PC2700 CL2.5 184 - pin DIMM
Denis Stanton
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden