0

Strange issue, memcached exits as I load my java based server. I first load memcached using

sudo /usr/bin/memcached -m 128 -p 11211 -U 11211 > memcached.log 2>&1 &

The I load my java server sudo nohup java -classpath /home/ubuntu/mCruiseOnServer_lib/ -jar /home/ubuntu/mCruiseOnServer.jar 10.112.75.51 > mCruiseOn.log 2>&1

memcached terminates just after my java server loads. I wonder why. The java server uses sockets and multithreading, and memcached. It uses it own port and does not try to use 11211.

Edit : I used the -d option and the nohup command. This helped run memcached without interruption.

1 Answer 1

1

Did you try running memcached as a daemon?

sudo /usr/bin/memcached -d -m 128 -p 11211 -U 11211
Sign up to request clarification or add additional context in comments.

1 Comment

The sudo thing in memcached messes up the reporting. Gives a bunch of warnings that are useless. So I would not recommend the sudo. The memcached guys too dont like running as root or sudo. The daemon is a good idea. I have tried it but it still exists.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.