WebLogic MBean Monitor
weblogic server提供了一个dashboard让我们对mbean进行图形化的展现和分析,地址是
http://localhost:7001/console/dashboard

但有时候总是觉得weblogic的监控做出来效果不好,所以找时间自己基于JfreeChart做了一个,代码如下:
图表类
RealTimeChart.java
|
package mbeanmonitor; import java.io.IOException; import java.net.MalformedURLException; import org.jfree.chart.ChartFactory; public class RealTimeChart extends ChartPanel implements Runnable public RealTimeChart(String chartContent,String title,String yaxisName) private static JFreeChart createChart(String chartContent,String title,String yaxisName){ TimeSeriesCollection timeseriescollection = new TimeSeriesCollection(timeSeries); valueaxis = xyplot.getRangeAxis(); return jfreechart; public void run() Thread.sleep(3000); private long randomNum() private int getWebLogicTotalThread() { int totalthread =0; return totalthread; private int getWebLogicUsedHeap() { int heapused =0; return heapused; private int getJvmTotalHeap() { int heapused =0; return heapused; } //Test.java |
WebLogic Mbean类
WebLogicServerRuntime.java
|
package mbeanmonitor; import java.io.IOException; public class WebLogicServerRuntime { private static MBeanServerConnection connection; // Initializing the object name for DomainRuntimeServiceMBean }catch (MalformedObjectNameException e) { /* /* public static ObjectName[] getTotalThread() throws Exception { public int printTotalThread() throws Exception { ObjectName[] runtimeService = getServerRuntimes(); // return Integer.parseInt(totalthread); int length = (int) runtimeService.length; } public int getJvmRuntime() throws Exception { int heapused = 0; System.out.println("n……………..<"+name+" : .JVMRuntime>……………."); public int getJvmTotalHeap() throws Exception { int HeapFreePercent = 0; System.out.println("n……………..<"+name+" : .JVMRuntime>……………."); public static void main(String[] args) throws Exception { WebLogicServerRuntime s = new WebLogicServerRuntime(); |
运行主类
Test.java
|
package mbeanmonitor; import java.awt.BorderLayout; public class Test /** JFrame.setDefaultLookAndFeelDecorated(true); JFrame frame=new JFrame("WebLogic MBean Monitor"); frame.pack(); frame.addWindowListener(new WindowAdapter() }); |
运行效果

WebLogic MBean Monitor的更多相关文章
- monitor weblogic server ,Very simple to use, weblogic监控、巡检、故障简单小工具
1. 开发了一个简单的监视weblogic执行情况的小程序.各位朋友下载下来试试,不用登陆console就能够知道server的执行状况,包含了jvm.线程.jdbc.状态jms等:另一个更简 ...
- JMX monitor weblogic 总结
https://blog.csdn.net/joy_91/article/details/42774839
- WebLogic: The Definitive Guide examined WebLogic's security mechanisms--reference
reference from: http://www.onjava.com/pub/a/onjava/excerpt/weblogic_chap17/index1.html?page=1 ...... ...
- weblogic 的应用 常见问题处理 db2 链接不上(转载)
xingkaistart weblogic10之Failed to initialize the application 'wss-1-1' due to error weblogic. Weblog ...
- weblogic JDBC Connection Pools--转官方文档
http://docs.oracle.com/cd/E13222_01/wls/docs81/ConsoleHelp/jdbc_connection_pools.html#1106016 JDBC C ...
- weblogic的集群与配置
目录(?)[-] 1.Weblogic的集群 2.创建Weblogic集群前的规划 3.开始创建我们的Weblogic集群 1.1 创建集群的总控制端aminserver 2.2 创建集群中的节点my ...
- 【转】Weblogic的集群
原文链接:http://www.cnblogs.com/HondaHsu/p/4267972.html 一.Weblogic的集群 还记得我们在第五天教程中讲到的关于Tomcat的集群吗? 两个tom ...
- tomcat,Jboss,weblogic区别与比较
一.tomcat Tomcat 服务器是一个免费的开放源代码的Web 应用服务器,它是Apache 软件基金会(Apache Software Foundation)的Jakarta 项目中的一个核心 ...
- WebLogic Exception
访问Weblogic发生以下异常: 2013-08-20 10:15:11 ERROR [ExceptionConvertOnlyFilter] doFilter (line:70) Could no ...
随机推荐
- 【BZOJ】1579: [Usaco2009 Feb]Revamping Trails 道路升级
[算法]分层图最短路 [题解] 考虑k层一模一样的图,然后每个夹层都在每条边的位置新加从上一层跨越到下一层的边权为0的边,这样至多选择k条边置为0. 然后考虑方便的写法. SPFA 第一次SPFA计算 ...
- kickstart构建Live CD 添加文件问题
在构建自定义ISO的时候,有时候需要从母体机器拷贝文件到Live CD系统.比如拷贝/home/xiaoxiaoleo/hello 程序,在Kickstart配置文件里, post脚本添加--noch ...
- CSS3动画(重要)
CSS3 动画 CSS3,我们可以创建动画,它可以取代许多网页动画图像,Flash动画,和JAVAScripts. CSS3 @keyframes 规则 要创建CSS3动画,你将不得不了解@keyfr ...
- testng+IEDriverServer+yum+tomcat下载软件包
testng框架链接:http://files.cnblogs.com/files/linxinmeng/testng%EF%BC%88selenium%E6%A1%86%E6%9E%B6%EF%BC ...
- mysql 如何提高批量导入的速度
mysql 如何提高批量导入的速度 最近一个项目测试,有几个mysql数据库的表数据记录达到了几十万条,在搭建测试环境 导入 测试数据时,十分慢.在网上搜索了一下,有下面一些方法可以加快mysql数据 ...
- MySQL阅读笔记
左连接:包含所有的左边表中的记录甚至是右边表中没有和它匹配的记录.右连接:包含所有的右边表中的记录甚至是左边表中没有和它匹配的记录. select ename,deptname from emp le ...
- LayerDate渲染多个class出现闪现问题的解决
填写表单的时候有时候会需要添加一行表单的业务逻辑,而表单要用到LayerDate的话便不可避免的出现多个class的情况 这种情况下后面的class是无法渲染的,layerDate官网提出了解决方法: ...
- centeros7的redis-cli命令不生效解决方法(亲测)
如果你已经安装了redis服务器,并且已经启动,但是redis-cli命令无法生效,分析,命令未加入环境变量.那就给redis命令加入环境变量中: 注意点:redis安装目录会有不同,注意下面的PAT ...
- beijing2016
4625: [BeiJing2016]水晶 Time Limit: 10 Sec Memory Limit: 256 MBSubmit: 201 Solved: 70[Submit][Status ...
- (一)安装openvpn服务器端
环境 centos版本 [root@localhost ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core) 关闭cento ...