09-WebLogic性能调优概要.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
09-WebLogic性能调优概要

* While it is obvious that sockets knock RMI’s lights out, don’t go away just yet. It would be just as easy to concoct a test that showed almost negligible differences based on the amount of computation the server does. Sockets are the primitive building blocks for distributed computing. As such they are more efficient than higher layer protocols like RMI. The performance gap between RMI and Sockets is much more pronounced if the server workload is light. As the compute load increases, the network I/O bottleneck imposed by upper layers decreases.. In the same way that data size impacts sockets performance, RMI performance is strongly influenced by the complexity of serializing the remote method’s parameters and return value. Complex objects are more expensive to serialize and, will weigh down RMI speed. * Threading allows programmers to multitask within their applications. However, there are often sections of code that should not be executed by more than one thread at a time. These sections of code are known as critical sections. Critical sections contain code that changes common variables, updates a table, or writes to a file, etc. The execution of the critical sections of code must be mutually exclusive. Synchronization allows programmers to make sure that only one thread executes critical sections at a time. A critical section could be a block of code, a method, or a class. Synchronization makes sure that only one thread executes a critical section at a time and all other threads block and wait. Synchronization causes a bottleneck since only one thread can execute at a time. Synchronization is key to Java programming but it should not be overused. When making architecture decisions between two classes select the simplest one. Some JDK classes use synchronization and if you don’t need that support it would just add overhead to your application. Many Java classes are used together to develop complex objects. Such a complex object may handle synchronization calls

您可能关注的文档

文档评论(0)

shuwkb + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档