博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
使用 Scalable Performance Monitor 监控 和分析 solr的运行状况
阅读量:5992 次
发布时间:2019-06-20

本文共 2588 字,大约阅读时间需要 8 分钟。

hot3.png

1,首先要注册 一个用户名和账号

https://apps.sematext.com/

 

2,创建一个solr类型的监控程序。安装其指定的步骤 在服务上进行操作,下面 用centos为例。

 

  1. 安装 collected,用于收集系统信息如,cpu,内存等情况

 

        sudoyuminstallcollectd

2  安装 spm监控的客户端。

sudo rpm -Uvh http://pub-repo.sematext.com/centos/sematext-centos-repo-1.17.0.noarch.rpm 

sudo yum install spm-client

3 配置spm监控模式,有In-process monitor和使用Standalone monitor进程两种模式,推荐第一种,配置较简单,这里使用第一种。

sudo bash /opt/spm/bin/spm-client-setup-conf.sh 07219029-28e9-4102-a7a9-aca1f356183f solr javaagent

  4 在 tomcat的 catalina.sh 加入jvm参数(注意 ,后面的07219029-28e9-4102-a7a9-aca1f356183f 是 spm针对每个客户生成的,都不一样,你要复制自己的clientid )

-Dcom.sun.management.jmxremote -javaagent:/opt/spm/spm-monitor/lib/spm-monitor-solr.jar=07219029-28e9-4102-a7a9-aca1f356183f::default

5 还有很重要的一步 ,在solr中启用 jmx

在solrconf.xml中加入 <jmx/>

6, 重启 tomcat 即可,等待,大约 5分钟,即可看到 各种关于你solr和服务器的各种信息了,很好用。如下图

 

 

下面是常见问题的诊断(官方)

 

I rebooted my server and now I don't see any data in my graphs. What should I check?

A: Here are a few things to check and do:

  1. Make sure Collectd is running: sudo service collectd restart. Make sure Collectd is set up to start at boot.
  2. Make sure SPM Sender is running: sudo /etc/init.d/spm-sender restart
  3. Make sure disk is not full: df -h
  4. Make sure maximal open files limit was not reached: 

I registered for SPM more than 5 minutes ago and I don't see ANY of my data / I am getting errors when starting SPM Sender or Monitor, what should I check?

A: Here are a few things to check and do:

  1. Log into your monitored servers and make sure Collectd and SPM Sender are running.
  2. Check if system time is correct. If not, you should adjust the time, restart the SPM Sender with:
    sudo /etc/init.d/spm-sender restart

    and restart SPM Monitor by restarting your server which is being monitored (in case in-process/javaagent variant of SPM Monitor) or (in case of standalone SPM Monitor installation):

    sudo /etc/init.d/spm-monitor restart
  3. Make sure disks are not full.
  4. Make sure user spmsender can have more than 1024 files open:

     

    sudo vim /etc/security/limits.conf

    spmsender     -    nofile    32000

     

    sudo vim /etc/pam.d/su

    session    required   pam_limits.so

    Restart SPM Sender after the above changes.

  5. Check if hostname of your server is defined in /etc/hosts
  6. If you are starting your Jetty (or some other server) with command like "java ... -jar start.jar ..." and using inprocess (javaagent) version of monitor, make sure -D and -javaagent definitions occur before "-jar start.jar" part in your command
  7. If none of the suggestions helped, run bash /opt/spm/bin/spm-client-diagnostics.sh to generate diagnostics package and send it to 

转载于:https://my.oschina.net/sniperLi/blog/908787

你可能感兴趣的文章
Loadrunner中的IP欺骗的设置以及误区
查看>>
OSPF的基本配置及DR /BDR选举的实验
查看>>
排序——快速排序
查看>>
git push.default设置
查看>>
struts的结果集和应用(验证码生成,图片下载)
查看>>
完全二叉树的链式存储结构的转化 & 非递归中序遍历二叉树
查看>>
关于actor-critic,这篇文章写的很好
查看>>
Netty学习
查看>>
STM32F4中的调压器输出电压级别选择(VOS)对HCLK时钟的影响
查看>>
Suse Linux下NTP缓慢调整配置,转载至http://www.gpstime.com.cn/
查看>>
Web前端开发基础 第四课(CSS小技巧1)
查看>>
MyEclipse 8.6反编译插件安装
查看>>
聊聊elasticsearch的LagDetector
查看>>
人生总会有起起落落和许多想不开想得开(一)
查看>>
[USACO18DEC]Balance Beam
查看>>
iOS---如何截图,如何将图片保存到相册
查看>>
定位到我的位置
查看>>
卷积神经网络入门
查看>>
解决AspNet Zero Core 5.0.1无法运行的问题
查看>>
文件夹选择对话框 JS实现的两种方案
查看>>