0
우리는 memcached로 전용 서버를 가지고 있습니다. 그것은 아래의 구성을 가지고 있습니다 :put 작업 중 InterruptedException SSM Xmemcached
STAT curr_connections 242
STAT total_connections 684
STAT chunk_size 48
STAT num_threads 64
STAT num_threads_per_udp 64
그러나 개체 설정 중에 캐시에 대해 InterruptedException 예외가 표시됩니다. 아래의 로그
WARN [com.google.code.ssm.spring.SSMCache] (hystrix-ABCGROUP-45) An error has ocurred for cache APP_CACHE_1 and key 51BREAnullUFLDE384nullHOnull: com.google.code.ssm.providers.CacheException: java.lang.InterruptedException
at com.google.code.ssm.providers.xmemcached.MemcacheClientWrapper.set(MemcacheClientWrapper.java:240)
at com.google.code.ssm.CacheImpl.set(CacheImpl.java:290)
at com.google.code.ssm.CacheImpl.set(CacheImpl.java:128)
at com.google.code.ssm.spring.SSMCache.put(SSMCache.java:109)
at org.springframework.cache.interceptor.AbstractCacheInvoker.doPut(AbstractCacheInvoker.java:82)
at org.springframework.cache.interceptor.CacheAspectSupport$CachePutRequest.apply(CacheAspectSupport.java:651)
at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:358)
at org.springframework.cache.interceptor.CacheAspectSupport.execute(CacheAspectSupport.java:299)
at org.springframework.cache.interceptor.CacheInterceptor.invoke(CacheInterceptor.java:61)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
at com.sun.proxy.$Proxy140.cleanseAddress(Unknown Source)
at org.hystrix.command.ABCommand.runTask(ABCommand.java:33)
at org.hystrix.command.ABCommand.runTask(ABCommand.java:13)
at org.hystrix.BaseHystrixCommand.run(BaseHystrixCommand.java:75)
at com.netflix.hystrix.HystrixCommand$1.call(HystrixCommand.java:293)
at com.netflix.hystrix.HystrixCommand$1.call(HystrixCommand.java:288)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:50)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:50)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:50)
at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30)
at rx.Observable.unsafeSubscribe(Observable.java:8460)
at com.netflix.hystrix.AbstractCommand$5.call(AbstractCommand.java:521)
at com.netflix.hystrix.AbstractCommand$5.call(AbstractCommand.java:497)
at rx.Observable.unsafeSubscribe(Observable.java:8460)
at rx.internal.operators.OperatorSubscribeOn$1.call(OperatorSubscribeOn.java:94)
at com.netflix.hystrix.strategy.concurrency.HystrixContexSchedulerAction$1.call(HystrixContexSchedulerAction.java:56)
at org.util.ContextCallable.call(ContextCallable.java:51)
at com.netflix.hystrix.strategy.concurrency.HystrixContexSchedulerAction.call(HystrixContexSchedulerAction.java:69)
at rx.internal.schedulers.ScheduledAction.run(ScheduledAction.java:55)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [rt.jar:1.8.0_92]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [rt.jar:1.8.0_92]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_92]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_92]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_92]
Caused by: java.lang.InterruptedException
at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1326) [rt.jar:1.8.0_92]
at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:277) [rt.jar:1.8.0_92]
at net.rubyeye.xmemcached.XMemcachedClient.latchWait(XMemcachedClient.java:2516)
at net.rubyeye.xmemcached.XMemcachedClient.sendStoreCommand(XMemcachedClient.java:2498)
at net.rubyeye.xmemcached.XMemcachedClient.set(XMemcachedClient.java:1338)
at net.rubyeye.xmemcached.XMemcachedClient.set(XMemcachedClient.java:1396)
at net.rubyeye.xmemcached.XMemcachedClient.set(XMemcachedClient.java:1383)
at com.google.code.ssm.providers.xmemcached.MemcacheClientWrapper.set(MemcacheClientWrapper.java:238)
... 39 more
있습니다 아래는 memcached와 버전
<dependency>
<groupId>com.googlecode.xmemcached</groupId>
<artifactId>xmemcached</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>com.google.code.simple-spring-memcached</groupId>
<artifactId>xmemcached-provider</artifactId>
<version>3.6.0</version>
</dependency>
<dependency>
<groupId>com.google.code.simple-spring-memcached</groupId>
<artifactId>spring-cache</artifactId>
<version>3.1.0</version>
</dependency>
나는이 예외에 대한 이유가 될 수 있는지 모르겠습니다에게 있습니다. 여러 개의 캐시가 구성되어 있지만이 예외는 APP_CACHE_1에 대해서만 발생합니다. APP_CACHE_1의 만기는 7200
사용하고있는 SSM의 어떤 버전 :
는 xmemcached - 공급자와 스프링 캐시의 최신 버전을 사용? xmemcached 부분을 포함하여 전체 스택 추적을 제공하십시오. – ragnor