logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Memcached on Windows
Author
gijs



Joined: 27 Apr 2012
Posts: 189
Location: The Netherlands

PostPosted: Thu 01 Jan '15 18:44    Post subject: Memcached on Windows Reply with quote

I'm trying to install memcached from: http://blog.elijaa.org/index.php?post/2010/10/15/Memcached-for-Windows&similar

When I try to run it with the -d command line option I get the following error:

Failed to ignore SIGHUP: No error
failed to daemon() in order to daemonize

When I run it without -d it appears to run normally, but I need -d to install it as a service...

I've tried the following tutorials but they don't explain how to solve this.

http://shiki.me/blog/installing-memcached-for-php-5-3-on-windows-7/

http://pureform.wordpress.com/2008/01/10/installing-memcache-on-windows-for-php/

http://zurmo.org/wiki/installing-memcache-on-windows

https://stackoverflow.com/questions/14777857/how-to-install-and-use-memcached-in-windows-for-php

I've tried both the 32 and 64 bit versions but it didn't make a difference.
I also tried the version from: http://code.jellycan.com/files/memcached-1.2.6-win32-bin.zip

Which does not give this error but still doesn't create the service.

Anyone know how to get this working?
Back to top
Jan-E



Joined: 09 Mar 2012
Posts: 1248
Location: Amsterdam, NL, EU

PostPosted: Thu 01 Jan '15 19:54    Post subject: Reply with quote

Try NSSM to run it as a service:
https://nssm.cc/scenarios
Back to top
gijs



Joined: 27 Apr 2012
Posts: 189
Location: The Netherlands

PostPosted: Fri 02 Jan '15 2:32    Post subject: Reply with quote

I don't have to run it with -d so it runs as a deamon?
It appears to work, but its memory usage doesn't increase over 353mb.

I currently run it with the following commandline:
-L -m 4096 -I 15000000

I also noticed that my webpages don't appear to load that much faster, TTFB is still roughly the same.
I assume everything was cached from the files stored on my SSD previously, so there is not a huge increase in performance.

I assume the current botleneck is the database, is it possible to memcache it?

I also noticed that when running it with -l 127.0.0.1 the test script said the connection failed..
So now it runs on all IP's, is this dangerous? (I assume not, since the windows firewall by default blocks incoming traffic, and I haven't added a firewall rule for it)

The last thing I noticed is that this is a more developed version of the interface for linux: http://pecl.php.net/package/memcached

but it's not available for windows.
Back to top
puertoblack2003



Joined: 31 Jul 2009
Posts: 118
Location: U.S

PostPosted: Sat 03 Jan '15 23:55    Post subject: Reply with quote

Im Currently using this version for 64 bit http://windows.php.net/downloads/pecl/releases/memcache/3.0.8/ and for windows service file v 1.4.4 which is the latest windows http://stackoverflow.com/questions/8896/memcached-on-windows-x64/9806441#9806441
Back to top


Reply to topic   Topic: Memcached on Windows View previous topic :: View next topic
Post new topic   Forum Index -> Other Software