Allocation Memory to memcached 1.2.1 for Win32
Tormod Hystad
tormod.hystad at gmail.com
Sun Mar 9 19:16:21 UTC 2008
> Could you please tell the parameter name in the Registry settings for
> memory and ports.It would be very helpful.
Sure. I used to modify the ImagePath attribute of the "memCached
Server" record in the Registry. I just added the same parameters you
would add if running in memCached.exe directly from CMD, works fine.
An example ImagePath:
ImagePath = "C:\Admin\memcached-1.2.1-win32\memcached.exe" -d
runservice -p 11211 -m 2048
I said "used to" because I've lately found a much better way. :-)
The "memcached.exe -d install" way of installing memcached as a
service on Win32 has two problems. First, it is hard to change the
parameters for port, memory and so on. And second, it is impossible(?)
to register more than one instance as a service on the same machine.
I dug around in the windows documentation and found the handy "sc.exe"
tool, a built-in tool for managing services. So the recommended way of
setting up memcached as a service on Windows is something like this:
sc create memcached11211 binPath= "C:\Admin\memcached
runtime\memcached.exe -d runservice -p 11211 -m 2048" start= auto
DisplayName= "MemCached 11211"
This will register a service called "memcached 11211", with auto start
enabled, the DisplayName "MemCached 11211" and the parameters in the
binPath.
Additional instances can be added as services by changing the name
(right after "create"), changing the port (after the "-p" parameter in
the binPath) and changing the DisplayName.
On a side note, we're currently running Kenneth's 1.2.4 Win32-preview
build (http://www.splinedancer.com/memcached-win32/) in production
with pretty heavy traffic (largest webshop in northern Europe),
working great so far. Only problem we have detected is that the
service refuses to stop, you must kill the process to stop it. Only a
minor annoynance. :-)
(Sorry for the late answer, had some problems posting to the list)
- Tormod
> -----Original Message-----
> From: Tinkku J.P [mailto:tinkku at gmail.com]
> Sent: 5. mars 2008 22:38
> To: Tormod Hystad
> Cc: memcached at lists.danga.com
> Subject: Re: Allocation Memory to memcached 1.2.1 for Win32
>
> Hi Tormod,
> Could you please tell the parameter name in the Registry settings for
> memory and ports.It would be very helpful. I am not finding any
> parameter name, that goes with memory and ports.
>
> Regards,
> Tinkku.
>
More information about the memcached
mailing list