AWS Elatic Memcache会在应用程序服务器中记录堆积

时间:2018-06-07 06:04:39

标签: memcached amazon-elasticache spymemcached

我在Java中实现了Elastic Memcahce并使用以下代码部署在WildFly应用程序服务器上,当我在AWS上部署时,如何获取非停止记录器,如下所示吃掉我的服务器日志大小。有人可以帮助我是需要做的设置。

String configEndpoint = "xxxx.xxxx.xxx.xxx.cache.amazonaws.com";
Integer clusterPort = 11211;
MemcachedClient client = new MemcachedClient(new InetSocketAddress(configEndpoint, clusterPort));
client.set("key1", 1000, "test");
System.out.println("----Get From Cache-----"+client.get("key1"));
client.shutdown();

库:

<dependency>
    <groupId>com.amazonaws</groupId>
    <artifactId>elasticache-java-cluster-client</artifactId>
    <version>1.1.1</version>  
</dependency> 

错误记录

2018-06-06 23:42:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:42:58.044 INFO net.spy.memcached.ConfigurationPoller:  Endpoint to use for configuration access in this poll NodeEndPoint - HostName:xxx-elastic.xxx.0001.euc1.cache.amazonaws.com IpAddress:172.31.XX.XXX Port:11211
2018-06-06 23:43:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:43:58.043 INFO net.spy.memcached.ConfigurationPoller:  Starting configuration poller.
2018-06-06 23:43:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:43:58.044 INFO net.spy.memcached.ConfigurationPoller:  Endpoint to use for configuration access in this poll NodeEndPoint - HostName:xxx-elastic.xxx.0001.euc1.cache.amazonaws.com IpAddress:172.31.XX.XXX Port:11211
2018-06-06 23:44:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:44:58.043 INFO net.spy.memcached.ConfigurationPoller:  Starting configuration poller.
2018-06-06 23:44:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:44:58.044 INFO net.spy.memcached.ConfigurationPoller:  Endpoint to use for configuration access in this poll NodeEndPoint - HostName:xxx-elastic.xxx.0001.euc1.cache.amazonaws.com IpAddress:172.31.XX.XXX Port:11211
2018-06-06 23:45:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:45:58.043 INFO net.spy.memcached.ConfigurationPoller:  Starting configuration poller.
2018-06-06 23:45:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:45:58.044 INFO net.spy.memcached.ConfigurationPoller:  Endpoint to use for configuration access in this poll NodeEndPoint - HostName:xxx-elastic.xxx.0001.euc1.cache.amazonaws.com IpAddress:172.31.XX.XXX Port:11211
2018-06-06 23:46:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:46:58.043 INFO net.spy.memcached.ConfigurationPoller:  Starting configuration poller.
2018-06-06 23:46:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:46:58.044 INFO net.spy.memcached.ConfigurationPoller:  Endpoint to use for configuration access in this poll NodeEndPoint - HostName:xxx-elastic.xxx.0001.euc1.cache.amazonaws.com IpAddress:172.31.XX.XXX Port:11211
2018-06-06 23:47:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:47:58.043 INFO net.spy.memcached.ConfigurationPoller:  Starting configuration poller.
2018-06-06 23:47:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:47:58.044 INFO net.spy.memcached.ConfigurationPoller:  Endpoint to use for configuration access in this poll NodeEndPoint - HostName:xxx-elastic.xxx.0001.euc1.cache.amazonaws.com IpAddress:172.31.XX.XXX Port:11211
2018-06-06 23:48:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:48:58.043 INFO net.spy.memcached.ConfigurationPoller:  Starting configuration poller.
2018-06-06 23:48:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:48:58.044 INFO net.spy.memcached.ConfigurationPoller:  Endpoint to use for configuration access in this poll NodeEndPoint - HostName:xxx-elastic.xxx.0001.euc1.cache.amazonaws.com IpAddress:172.31.XX.XXX Port:11211
2018-06-06 23:49:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:49:58.043 INFO net.spy.memcached.ConfigurationPoller:  Starting configuration poller.
2018-06-06 23:49:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:49:58.044 INFO net.spy.memcached.ConfigurationPoller:  Endpoint to use for configuration access in this poll NodeEndPoint - HostName:xxx-elastic.xxx.0001.euc1.cache.amazonaws.com IpAddress:172.31.XX.XXX Port:11211
2018-06-06 23:50:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:50:58.043 INFO net.spy.memcached.ConfigurationPoller:  Starting configuration poller.
2018-06-06 23:50:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:50:58.044 INFO net.spy.memcached.ConfigurationPoller:  Endpoint to use for configuration access in this poll NodeEndPoint - HostName:xxx-elastic.xxx.0001.euc1.cache.amazonaws.com IpAddress:172.31.XX.XXX Port:11211
2018-06-06 23:51:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:51:58.043 INFO net.spy.memcached.ConfigurationPoller:  Starting configuration poller.
2018-06-06 23:51:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:51:58.044 INFO net.spy.memcached.ConfigurationPoller:  Endpoint to use for configuration access in this poll NodeEndPoint - HostName:xxx-elastic.xxx.0001.euc1.cache.amazonaws.com IpAddress:172.31.XX.XXX Port:11211
2018-06-06 23:52:58,044 ERROR [stderr] (pool-8-thread-1) 2018-06-06 23:52:58.044 INFO net.spy.memcached.ConfigurationPoller:  Starting configuration poller.

0 个答案:

没有答案