memcached - AWS Elatic Memcache 日志堆积在应用程序服务器中
问题描述
我在 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.
解决方案
推荐阅读
- css - 如何声明多个字体并将它们中的每一个分配给一个变量并在样式组件中访问它们
- c++ - mp4 的fourcc 代码 ('X','2','6','4'),('m','p','4','v'), ('M','P', '4','V'),('A','V','C','1'),('a','v','c','1'),('M', 'J','P','G')
- php - 如何格式化 JSON 数据以使用 POSTMAN 或 PHP cURL 以表格格式向 Microsoft Teams 发送消息
- assembly - 汇编代码 MC68k 。不知何故,一个寄存器被填满了一个数字,即使我不想
- amazon-web-services - AWS Beanstalk Spot 实例类型和排序
- mongodb - MongoDB中的数据不按时间顺序排列
- reactjs - react-router-dom 不适用于某些路由
- php - PHP print_r 显示从 CSV 文件分解的关联数组的内容,但 echo 无法访问其中的单个值
- python-3.x - 使用 python 从 .aspx 网站抓取网页
- python - Python在模块中存储预定义列表并以简单的方式编辑它们