Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6838313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:34:54+00:00 2026-05-26T23:34:54+00:00

I am really new to memcache .I just tested memcached in java .The java

  • 0

I am really new to memcache .I just tested memcached in java .The java class builds successfully but when i run the file it keeps on running never gets stopped..

The code i used is….

public class NewMem {
    public static void main(String[] args) throws IOException, URISyntaxException{
try {
   MemcachedClient client = new MemcachedClient(new InetSocketAddress("localhost", 11211));
} catch (IOException e) {
   e.printStackTrace();
   System.err.println("connection problem");
}

}
}

When i run this code it give me the following and run doesn’t gets stopped..

init:
deps-jar:
compile-single:
run-single:
2011-11-21 12:15:58.328 INFO net.spy.memcached.MemcachedConnection:  Added {QA sa=/localhost:11211, #Rops=0, #Wops=0, #iq=0, topRop=null, topWop=null, toWrite=0, interested=0} to connect queue
2011-11-21 12:15:58.328 INFO net.spy.memcached.MemcachedConnection:  Connection state changed for sun.nio.ch.SelectionKeyImpl@1c5c1
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T23:34:54+00:00Added an answer on May 26, 2026 at 11:34 pm

    You probably need to call the shutdown method for the memcached client:

      client.shutdown();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im really new to C and just got Codeblocks to compile/run any code that
I'm really new to ASP.Net Mvc, but not new to Asp.Net. I was aware
I'm really new to HTML, but I can't find anywhere how to return the
Im really really new to Javascript but Ive got this script that loads the
Hi I am really new to rails and I am just trying to figure
i'm really new to dealing with CGContexts and i'm just trying to get my
I'm really new to PHP but what I want to do is make a
I'm really new at this jquery stuff. I have a wcf web service running
I really new in Java....i work some research in java using tool Tapestry framework...
I'm really new to java, and I need to know is this a memory

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.