<p>Does anyone know <strong>IF</strong>, <strong>WHEN</strong> or <strong>HOW</strong> I can get <a href="https://memcached.org/" rel="noreferrer">Memcached</a> running on a Windows 64bit environment? </p>

<p>I'm setting up a new hosting solution and would much prefer to run a 64bit OS, and since it's an ASP.Net MVC solution with SQL Server DB, the OS is either going to be Windows Server 2003 or (hopefully!) 2008.</p>

<p>I know that this could spill over into a debate regarding 32bit vs 64bit on servers, but let's just say that my preference is 64bit and that I have some <a href="https://blogs.technet.microsoft.com/mscom/2005/09/26/running-microsoft-com-on-64-bitthe-dependencies-the-goodness-the-gotchas/" rel="noreferrer">very</a> <a href="https://blog.codinghorror.com/64-bit-desktop-vs-64-bit-server/" rel="noreferrer">good</a> reasons.</p>

<p>So far, I've tried a number of options and found a <a href="http://blog.rakeshxp.com/2007/09/running-memcached-on-windows.html" rel="noreferrer">bit</a> of <a href="http://www.splinedancer.com/memcached-win32/" rel="noreferrer">help</a> related to getting this up on a 32bit machine (and succeeded I might add), but since the original <a href="http://jehiah.cz/projects/memcached-win32/" rel="noreferrer">Windows port</a> is Win32 specific, this is hardly going to help when installing as a service on x64. It also has a dependency on the <a href="https://libevent.org/" rel="noreferrer">libevent</a> for which I can only get a Win32 compiled version.</p>

<p>I suspect that simply loading all this up in C++ and hitting "compile" (for 64bit) wouldn't work, not least because of the intricate differences in 32 and 64bit architectures, but I'm wondering if anyone is working on getting this off the ground? Unfortunately, my expertise lie in managed code (C#) only, otherwise I would try and take this on myself, but I can't believe I'm the only guy out there trying to get <a href="https://memcached.org/" rel="noreferrer">memcached</a> running on a 64 bit Windows server....am I?</p>

<hr>

<p>Update</p>

<p><strong>Yes I'm afraid I'm still looking for an answer to this - all my efforts (with my pathetic C++ skills) to make a stable build have failed - I've trashed one server and 3 VM's just trying it out so now I turn to the real experts.
Is anyone planning on porting this to 64bit? Or are you really suggesting that I use MS Velocity instead? I shudder at the thought.</strong></p>

<hr>

<p>Update:
@Lars - I do use Enyim actually - it's very good, but what you're referring to is a client, rather than the server part.</p>

<p>@DannySmurf - I've only been able to install it as a service on a 32 bit OS. 64 bit OS rejects the installation of this Win32 service. Of course yes, lots of Win32 code works seamlessly on x64 architecture, hence you can run 32bit apps (like Office for instance) or games on Vista/XP 64 etc, but this doesn't translate directly when it comes to services. I'm no expert, I suspect that it has to do with the syncs or eventing that services need to subscribe to, and I suspect that 64 and 32 don't play nicely. I'm happy to be corrected on any of this, but to answer your question - yes I have tried.</p>

<p>@OJ - thanks very much for the straight-forward response. I thought as much, but wasn't sure if anyone else had suggestions or had already gone down this route. Maybe when StackOverflow is LIVE, then more people will respond and let me know if this is something being looked into, and although I can try and compile it myself - I simply can't "trust" (with my C++ experience level) that it would provide "Enterprise Level" reliability in such a crucial component of large scalable solutions. I think it would need educated intervention rather than my unsanitised experimental approach before I could be confident. One little oversight on my part, could bring the site down. Oh well... till next time.</p>

[{'answer_id': 8912, 'author': 'TheSmurf', 'author_id': 1975282, 'author_profile': 'https://Stackoverflow.com/users/1975282', 'pm_score': -1, 'selected': False, 'text': "<p>Are you sure that the 32-bit version doesn't just run on 64-bit Windows, without modification? Most things do.</p>\n\n<p>Failing that, have you actually tried just compiling it for 64-bit? A brief scan of a few Google Groups etc where people asked this same question suggests that that may be exactly the solution to this. I think you're probably overestimating the difference between 32-bit and 64-bit Windows (at least as far as compiling a native application goes).</p>\n"}, {'answer_id': 9417, 'author': 'OJ.', 'author_id': 611, 'author_profile': 'https://Stackoverflow.com/users/611', 'pm_score': 2, 'selected': False, 'text': "<p>I personally feel that you'd have to recompile the application using a 64-bit compiler (obviously on a 64-bit machine) to get the most of Memcached on a 64-bit platform. This may not be an easy task depending on the code. If it was written with 64-bit portability in mind then it could be a simple recompile. If it hasn't, then you could well be up for quite a bit of patching before getting it to build.. and then you'd have to verify that you haven't broken anything!</p>\n\n<p>I don't think you're overestimating the differences between 32 and 64-bit at all. A common mistake is to assume that the job is a simple recompile when in fact it isn't. There are more portability issues than most people realise. Just because the application builds and you end up with a binary, it doesn't mean that the binary is going to behave as it should. Especially when it may interact with other 32-bit code.</p>\n\n<p>Having said that, it might be worth giving it a spin!</p>\n\n<p>Good luck. Cheers!</p>\n\n<hr>\n\n<p>@Lars: I recommend reading the question before attempting an answer.</p>\n\n<p>@John Sibly &amp; @DannySmurf: given the nature of Memcached and what it aims to achieve, surely you wouldn't want to run a 32-bit version on a 64-bit machine? If you had a 64-bit capable machine it would make sense to run a 64-bit version to make the most of the features of the hardware.</p>\n"}, {'answer_id': 612138, 'author': 'Community', 'author_id': -1, 'author_profile': 'https://Stackoverflow.com/users/-1', 'pm_score': 2, 'selected': False, 'text': "<p>I was just searching for memcached on a 64bit Windows system and found this. So far there isn't any Win64 memcached version. But I just started the memcached.exe with the appropriate commands via cmd and it's just running fine. I'm using Windows Vista 64bit, don't know if there are any differences between Vista and the server versions.</p>\n\n<p>Kindest regards\nFleshgrinder</p>\n"}, {'answer_id': 1929756, 'author': 'Uriel Katz', 'author_id': 234581, 'author_profile': 'https://Stackoverflow.com/users/234581', 'pm_score': 1, 'selected': False, 'text': '<p>The 32 bit version run on 64 bit via WOW64 but the process is still limited to 2GB,with a 64-bit version you can go beyond that to more than a single machine will have.</p>\n'}, {'answer_id': 2356710, 'author': 'Andriy Volkov', 'author_id': 76859, 'author_profile': 'https://Stackoverflow.com/users/76859', 'pm_score': 7, 'selected': True, 'text': '<p>North Scale labs have released a build of memcached 1.4.4 for Windows x64:</p>\n\n<p><a href="http://blog.couchbase.com/memcached-windows-64-bit-pre-release-available" rel="noreferrer">http://blog.couchbase.com/memcached-windows-64-bit-pre-release-available</a></p>\n\n<p><a href="http://labs.northscale.com/memcached-packages/" rel="noreferrer">http://labs.northscale.com/memcached-packages/</a></p>\n\n<p>UPDATE: they have recently released Memcached Server - still FREE but enhanced distro with clustering, web-based admin/stats UI etc. (I\'m not related to them in any way) Check it out at <a href="http://northscale.com/products/memcached.html" rel="noreferrer">http://northscale.com/products/memcached.html</a> and download at: <a href="http://www.northscale.com/download.php?a=d" rel="noreferrer">http://www.northscale.com/download.php?a=d</a></p>\n\n<p>UPDATE 2: NorthScale Memcached is no longer available as a standalone download. Now they have made it part of their commercial No-SQL DB offering called Membase. It can be configured to run in Memcached-only mode (i.e. without persistence) and there\'s a 100% free version too. Check it out here: <a href="http://www.membase.org/downloads" rel="noreferrer">http://www.membase.org/downloads</a></p>\n\n<p>UPDATE 3: MemBase has slept with CouchDB and produced a hybrid product offering, called CouchBase. They still do offer a free "Community" version at <a href="http://www.couchbase.com/download" rel="noreferrer">http://www.couchbase.com/download</a>  </p>\n'}, {'answer_id': 3311668, 'author': 'Jasper Rosenberg', 'author_id': 781654, 'author_profile': 'https://Stackoverflow.com/users/781654', 'pm_score': 0, 'selected': False, 'text': '<p>FYI, I couldn\'t get the 64 bit version (from here <a href="http://labs.northscale.com/memcached-packages/" rel="nofollow noreferrer">http://labs.northscale.com/memcached-packages/</a>) to install as a service until I ran memcached as administrator.  </p>\n\n<p>I just went to the executable\'s properties, then the Compatibility tab, and checked "Run this program as an administrator"  (There a ton of other ways to do this, but it seemed simplest)</p>\n\n<p>Then I was finally able to successfully run: memcached -d install</p>\n\n<p>Don\'t forget to start the service after it is installed too :)</p>\n'}, {'answer_id': 4640420, 'author': 'jim77', 'author_id': 366329, 'author_profile': 'https://Stackoverflow.com/users/366329', 'pm_score': 2, 'selected': False, 'text': '<p>I have an memcached-1.2.1 for win32 originally downloaded from here: <a href="http://jehiah.cz/projects/memcached-win32/" rel="nofollow">http://jehiah.cz/projects/memcached-win32/</a> (but now for some reason it is a broken link).</p>\n\n<p>This is how I managed to run memcached for Win32 on Windows Server 2008 R2, 64 bit.\n<strong>memcached.exe</strong> -> <strong>properties</strong> -> <strong>Compatibility</strong> -> <strong>Run this program in compatibility mode for: Windows XP (SP 3)</strong>.\nNotice that the user Uriel Katz mention in this discussion that this method restricted to 2GB memory of use.</p>\n'}, {'answer_id': 5887266, 'author': 'Ken', 'author_id': 72827, 'author_profile': 'https://Stackoverflow.com/users/72827', 'pm_score': 0, 'selected': False, 'text': '<p>You could always run multiple instances of 32-bit memcached processes on one box, allowing that machine to serve a total of > 2GB memcache space.</p>\n'}, {'answer_id': 9806441, 'author': 'Lennie', 'author_id': 1020503, 'author_profile': 'https://Stackoverflow.com/users/1020503', 'pm_score': 5, 'selected': False, 'text': '<p>Just so people know, the 32-bit and 64-bit version as build by the good people from membase/couchbase/whatever is still available the blog URL has changed though:</p>\n\n<p>32-bit binary of memcached 1.4.4 as Windows-service:</p>\n\n<p><a href="http://blog.couchbase.com/memcached-144-windows-32-bit-binary-now-available" rel="noreferrer">http://blog.couchbase.com/memcached-144-windows-32-bit-binary-now-available</a></p>\n\n<p><a href="http://s3.amazonaws.com/downloads.northscale.com/memcached-win32-1.4.4-14.zip" rel="noreferrer">http://s3.amazonaws.com/downloads.northscale.com/memcached-win32-1.4.4-14.zip</a></p>\n\n<p>64-bit binary of memcached 1.4.4 as Windows-service:</p>\n\n<p><a href="http://blog.couchbase.com/memcached-windows-64-bit-pre-release-available" rel="noreferrer">http://blog.couchbase.com/memcached-windows-64-bit-pre-release-available</a></p>\n\n<p><a href="http://s3.amazonaws.com/downloads.northscale.com/memcached-win64-1.4.4-14.zip" rel="noreferrer">http://s3.amazonaws.com/downloads.northscale.com/memcached-win64-1.4.4-14.zip</a></p>\n\n<p>The 64-bit version does have the wrong uptime.</p>\n\n<p>So maybe you want this binary of 1.4.2 instead:</p>\n\n<p><a href="http://www.urielkatz.com/archive/detail/memcached-64-bit-windows/" rel="noreferrer">http://www.urielkatz.com/archive/detail/memcached-64-bit-windows/</a></p>\n\n<p>The 32-bit version as included with MemCacheDManager also suppors running on Windows 2000 (no IPv6):</p>\n\n<p><a href="http://allegiance.chi-town.com/MemCacheDManager.aspx" rel="noreferrer">http://allegiance.chi-town.com/MemCacheDManager.aspx</a>\n<a href="http://allegiance.chi-town.com/Download.aspx?dl=Releases/MemCacheDManager_1_0_3_0.msi&amp;rurl=MemCacheDManager.aspx" rel="noreferrer">http://allegiance.chi-town.com/Download.aspx?dl=Releases/MemCacheDManager_1_0_3_0.msi&amp;rurl=MemCacheDManager.aspx</a></p>\n\n<p>To unpack the msi:</p>\n\n<p>msiexec /a Releases_MemCacheDManager_1_0_3_0.msi /qb TARGETDIR=c:\\memcached</p>\n'}, {'answer_id': 10026174, 'author': 'alexandrul', 'author_id': 19756, 'author_profile': 'https://Stackoverflow.com/users/19756', 'pm_score': 3, 'selected': False, 'text': '<p>Memcached 1.4.5 binary for win x64 can be found here: <a href="http://downloads.northscale.com/memcached-1.4.5-amd64.zip">http://downloads.northscale.com/memcached-1.4.5-amd64.zip</a></p>\n\n<p>Another option would be to install Couchbase Server 1.8.0 x64 from here: <a href="http://www.couchbase.com/download">http://www.couchbase.com/download</a>, the bundled memcached seems to be version 1.7.1.1 (sounds like an internal version, I can\'t tell which is the real one)</p>\n\n<p>As for running memcached as a service, this tutorial might be enough:</p>\n\n<p><a href="http://www.richardnichols.net/2010/08/install-memcached-on-windows-server/">http://www.richardnichols.net/2010/08/install-memcached-on-windows-server/</a></p>\n'}, {'answer_id': 57390546, 'author': 'David Ferenczy Rogožan', 'author_id': 971141, 'author_profile': 'https://Stackoverflow.com/users/971141', 'pm_score': 3, 'selected': False, 'text': '<h2>Up-to-date Binaries</h2>\n\n<p>NorthScale has really old versions (the newest is 1.4.5 which is from April 2010) but there\'s a guy who offers 64-bit Memcached binaries for Windows compiled using Cygwin (but they don\'t require it installed) in <a href="https://github.com/nono303/memcached/" rel="nofollow noreferrer">his GitHub repository github.com/nono303/memcached</a>.</p>\n\n<p>For example, the binaries of the most recently released version (as of writing this answer) <a href="https://github.com/nono303/memcached/tree/memcache-1.5.16" rel="nofollow noreferrer">1.5.16 are here</a>. There\'re both 32 and 64-bit versions.</p>\n\n<h2>Memcached as a Windows Service</h2>\n\n<p>If you want to install it as a Windows service, you can use for example the open-source <a href="http://nssm.cc" rel="nofollow noreferrer">Non-Sucking Service Manager</a>:</p>\n\n<pre><code>nssm install memcached c:\\path\\to\\memcached.exe\nnssm start memcached\n</code></pre>\n\n<p>See the <a href="http://nssm.cc/commands" rel="nofollow noreferrer">documentation</a> for details.</p>\n'}]
['https://Stackoverflow.com/questions/8896', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/1107/']