gorn.ch

Tobias Ebnöther's personal blog

Start memcached with SystemStarter

I used to start Memcached via launchd for a while now. Today I realized that it will use a lot (128MB) of memory after running a couple of days. I searched after a better solution and found this script which will start memcached via StartupItems/SystemStarter.

What I do now is reload Memcached every hour via launchd to purge the memory.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.server.restartMemcached</string>
<key>ProgramArguments</key>
<array>
<string>SystemStarter</string>
<string>restart</string>
<string>Memcached</string>
</array>
<key>StartInterval</key>
<integer>3600</integer>
</dict>
</plist>
Related Entries:
Start memcached with launchd [Updated]
xchat on OSX / Command as alt
Setting up relayhost for postfix on OSX (with ssl and authentication)
MacHeist Software Bundle
Leopard native apache with custom (64bit) PHP
 Permalink
Powered by Flux CMS