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

  • 相关阅读:
    58. 最后一个单词的长度
    53. 最大子序和
    50. Pow(x, n)
    35. 搜索插入位置
    28. 实现 strStr()
    leetcode 27. 移除元素
    leetcode 26. 删除排序数组中的重复项
    leetcode 21. 合并两个有序链表
    20. 有效的括号
    多线程案例_循环打印_设计4个线程...
  • 原文地址:https://www.cnblogs.com/sunzhuli/p/9696599.html
Copyright © 2011-2022 走看看