zoukankan      html  css  js  c++  java
  • Redis

    redis性能排查步骤

    redis-cli命令
    cd /usr/local/redis-stable/bin/
    登录:./redis-cli -h 10.11.60.8 -p 6379 -a foobared
    在交互方式下查看信息:
    查看连接池
    info clients

    redis exception

    连接存在异常

    org.springframework.data.redis.RedisConnectionFailureException: Cannot get Jedis connection

    批量操作

    Callback cannot return a non-null value as it gets overwritten by the pipeline

    redisson 连接异常

    org.redisson.client.RedisConnectionException: Can't init enough connections amount! Only 8 from 10 were initialized. Server:

    org.springframework.data.redis.RedisConnectionFailureException: java.net.SocketTimeoutException: Read timed out; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: java.net.SocketTimeoutException: Read timed out

    可以在安装redis服务机器中查看已经建立的连接个数:
    netstat -antl | grep 6379
    或者
    netstat -antl | grep 6379 | wc -l

    查看已经创建的连接,目的端口固定,而源端口随机

    redisson版本问题

    对3.5.x版本
    Caused by: java.net.URISyntaxException: Illegal character in scheme name at index 0: 10.11.42.151:6379

  • 相关阅读:
    3.4 抓取猫眼电影排行
    2.5 代理的基本原理
    第二章 爬虫基础
    1.8 爬虫框架的安装
    Python序列化
    CVE-2020-1938 Apache-Tomcat-Ajp漏洞复现
    Python定制类
    Apache Tomcat DDOS
    内网端口转发工具
    内网渗透思路简单介绍
  • 原文地址:https://www.cnblogs.com/sunzhuli/p/9696599.html
Copyright © 2011-2022 走看看