WebLogic Server 性能优化 (4) JMS篇
来源:互联网 发布:自建域名服务器 编辑:程序博客网 时间:2024/05/22 09:38
对于JMS的优化,主要介绍一下Paging Store。
JMS Destination里面的消息,默认是存储在JVM堆内存中的,即使打开了Persistent Store,也会在内存中和Persistent介质(例如File或者JDBC)中都有一份。如果JMS消息比较多,并且消息比较大的时候,会发生 JMS消息占用大量内存的问题。这种情况通常出现在WebLogic Integration应用上,因为WLI大量的使用到了JMS。如果配置了Paging Store,那么达到设定的阈值之后,消息会交换到Store里面,JVM堆内存中只是剩下一个引用,这样可以极大的节省JVM堆内存。当然了,这样会带来一点点的性能消耗。
以File Store为例,配置步骤如下,在WebLogic Console上,
1. Services>JMS>Stores,然后点击Configure a new JMS File Store,填写Directory,然后点击[Create]按钮
2. Services>JMS>Servers,点击你的JMS Server,在下拉列表中选择在第1步创建的Paging Store,然后点击[Apply]按钮
3. 在右侧Thresholds & Quotas,启用Bytes Paging Enabled选项,然后填写Messages Threshold High和Messages Threshold Low选项。这两个选项是当未处理的JMS的Bytes大小达到Messages Threshold High的时候,将会将JMS Message 交换到Store中去;低于Messages Threshold Low的时候,会从Store中再交换回来。Messages Maximum可以不用去设置。当然了,也可以根据消息的数量而不是Bytes大小来设置Paging,但是使用Bytes可能更容易估算和度量。
另外,如果同时启用了Persistent Store和Paging,可能不会看到Paging Store里面有东西,猜测是Paging的时候直接使用的Persistent Store,这样更能够节省资源。具体是什么机制,还得BEA的高手来解答了。
- WebLogic Server 性能优化 (4) JMS篇
- WebLogic Server 性能优化 (3) 应用篇
- WebLogic Server 性能优化 (3) 应用篇
- WebLogic Server 性能优化 (1) 执行线程篇
- WebLogic Server 性能优化 (2) JDBC连接池篇
- WebLogic Server 性能优化—JDBC连接池篇
- WebLogic Server 性能优化 (1) 执行线程篇
- WebLogic Server 性能优化 (2) JDBC连接池篇
- WebLogic性能优化配置
- weblogic性能优化
- weblogic性能优化
- weblogic性能优化
- weblogic性能优化
- WebLogic Server中jms message的状态
- 【Weblogic】 Weblogic Server环境下使用JMS服务
- WebLogic Server 性能调优
- WebLogic Server 性能调优
- WebLogic Server 性能调优
- WebLogic Server 性能优化 (2) JDBC连接池篇
- 调研分享:Flipboard的使用特点和页面信息抽取机制
- WebLogic Server 性能优化 (3) 应用篇
- 正式进入IT业
- SELECT ... INTO OUTFILE报错ERROR 1 (HY000) at line 1: Can't create/write to file...
- WebLogic Server 性能优化 (4) JMS篇
- Store.JS文件 手动加载数据
- Android中shape的使用
- 在同一 IIS 进程中不可能运行两个不同的 ASP.NET 版本。请使用 IIS 管理工...
- html中form表单的使用实例
- ViewState对象序列化
- Android线程操作AsyncTask的用法
- 查看数据库对象
- 公告:此博客不再更新。如看最新博文请到 http://androidtoast.iteye.com