转至繁体中文版     | 网站首页 | 图文教程 | 资源下载 | 站长博客 | 图片素材 | 武汉seo | 武汉网站优化 | 
最新公告:     敏韬网|教学资源学习资料永久免费分享站!  [mintao  2008年9月2日]        
您现在的位置: 学习笔记 >> 图文教程 >> 数据库 >> SyBase >> 正文
EAServer Performance Tuning Techniques         ★★★★

EAServer Performance Tuning Techniques

作者:闵涛 文章来源:闵涛的学习笔记 点击数:14276 更新时间:2009/4/22 23:10:00
escribed in the Components in general section.

In the development environment, this property must be set to TRUE if you are using live editing to build your component.

"Threading issues and component types" in PowerBuilder Application Techniques Web DataWindow Code Size

If you do not use a feature such as display formatting, validation rules, or client-side scripting, you can enhance performance by preventing the server component from generating code for the unused feature.

You can also cache client-side methods in JavaScript files to reduce the size of the generated code and increase performance on both the server and the client. Without JavaScript caching, each time a Web DataWindow is rendered in a client browser, JavaScript code for DataWindow methods is generated on the server and downloaded to the client. However, there is no performance gain if the client web browser settings prevent caching.

"Controlling the size of generated code" in PowerBuilder DataWindow Programmer's Guide Web DataWindow Container

Using a customized component instead of the preinstalled HTML generator component allows you to set properties for your component in Jaguar Manager. Setting properties reduces the number of method calls required to configure the component and can result in improved performance, maintainability, and scalability.

Specifically, you can set the source file and DataWindow object on the server so that the DataWindow object is loaded when the component instance is created, resulting in fewer method calls from server-side scripts in the Web page. You can also improve performance by having your custom component maintain its state.

"Web DataWindow Container component" in PowerBuilder Building Internet and Enterprise Applications

Using a custom server component" in PowerBuilder DataWindow Programmer's Guide

Web Target default behavior By default, the PSJaguarConnection methods for using a Web DataWindow make several trips to the server. You can set the bOneTrip argument to make one trip to the server instead. "PSJaguarConnection" in the PowerBuilder Web Target Reference

Section 4: Message Service

This section contains suggestions for the EAServer Message Service.

Category Performance Considerations More Information Message Acknowledgment

To optimize the performance of a JMS application, set REQUIRES_ACKNOWLEDGE to false so the message service will not acknowledge messages.

"Configuring a message queue's properties" in EAServer System Administration Guide Sharing SHARED_LISTENER Indicates whether multiple clients can simultaneously receive messages from the queue. When a queue is not shared, only one client at a time can receive messages from it "Configuring a message queue's properties" in EAServer System Administration Guide Transactions REQUIRES_TRANSACTION determines whether JMS publish, send, receive, and onMessage calls can participate in a transaction. If you set this to false, it significantly improves performance throughput for transient message bulk processing "Configuring a message queue's properties" in EAServer System Administration Guide Permanent Destinations To provide permanent destinations for JMS client applications, define message queues and message topics using Jaguar Manager. When you create a permanent destination, you can optimize its configuration properties, which benefits every JMS client application that uses the destination. "Adding and configuring the message service parts" in EAServer System Administration Guide Thread Pools

By default, the Reader, Writer and Worker Threads are set to 0.

For high-volume client notification with transient messages, you can improve performance by tuning the number of reader and writer threads if it improves throughput.

For component notification, you can prevent or allow parallel message processing by changing the worker threads setting.

"Configuring the message service" in EAServer System Administration Guide

Section 5: Client Applications

Be sure to follow good coding practices for the language you write the client application in. Additionally, follow these suggestions for clients you plan to use with EAServer.

Category Performance Considerations More Information Client Design Issues

In designing your client, plan to optimize network performance by keeping traffic between the client and components on the server to a minimum. To optimize network performance, plan to:

 

  • Cache property changes in client data structures
  • Validate field values on the client
  • Update only the rows and columns that have changed
  • Group data changes into larger sets with fewer method calls
  • Compress large blobs before passing them between server and client. Some free data compression tools are available, including zlib.

"Implementing components and clients" in EAServer Programmer's Guide

http://www.gzip.org/zlib/

PowerObjects article: Jaguar Performance Using ZLIB

Client Timeout

 

The IdleConnectionTimeout property specifies the amount of time a connection is allowed to sit idle. By default, connections do not timeout. Specifying a finite timeout for your client applications can improve server performance. If many instances of the client run simultaneously, a finite client connection timeout limits the number of server connections that are devoted to idle clients. A finite timeout also allows rebalancing of server load in an application that uses a cluster of servers.

For CORBA-Java clients -- If you specify an idle connection timeout, make sure the garbage collection interval (com.sybase.CORBA.GCInterval) is set to an equal or lesser value

For C++ clients, use the ORBRetryCount and ORBRetryDelay options

"Creating EJB Clients", "Creating Java-CORBA Clients", "Creating C++ Clients" in EAServer Programmer's Guide

Sockets com.sybase.ejb.socketReuseLimit, com.sybase.CORBA.socketReuseLimit, com.sybase.ORBSocketReuseLimit

Specify the number of times that a network connection may be reused to call methods from one server. The default is 0, which indicates no limit. The default is ideal for short-lived clients. The default may not be appropriate for a long-running client program that calls many methods from servers in a cluster. If sockets are reused indefinitely, the client may build an affinity for servers that it has already connected to rather than randomly distributing its server-side processing load among all the servers in the cluster. In these cases, the property should be tuned to best balance client performance against cluster load distribution. In Sybase testing, settings between 10 and 30 proved to be a good starting point. If the reuse limit is too low, client performance degrades.

"Creating EJB Clients", "Creating Java-CORBA Clients", "Creating ActiveX Clients", "Creating CORBA-C++ Clients" in EAServer Programmer's Guide CORBA C++ or ActiveX Client

Ensure that IIOP protocol tracing is not turned on via the ORBLogIIOP parameter to ORB_init, or via the JAG_LOGIIOP environment variable.

"Configure and initialize the ORB runtime", or "Initializing the ORB" in EAServer Programmer's Guide Web Proxies (a.k.a. HTTP-connect-based proxies) Web proxies can be used to improve network performance, by caching the results of frequently executed Web requests. Web proxies typically act as a gateway for outgoing connections from a group of workstations, and are sometimes used to enhance network security, by restricting and/or logging the protocols and servers used in client connections.

By default, the client ORB attempts to open IIOP connections, then attempts an HTTP-tunnelled connection if plain IIOP fails. Since Web proxy connections require HTTP tunneling, set the following property to true to eliminate the performance overhead of trying plain IIOP connections before trying HTTP-tunnelled IIOP.

CORBA property: com.sybase.CORBA.http
EJB property: com.tunnel.ejb.http

上一页  [1] [2] [3] [4] [5] [6] [7] [8]  下一页


[SyBase]用Sybase EAServer建立电子影院售票系统  [SyBase]Index & Performance
[SyBase]Optimizing SQL Anywhere performance over a WAN  [ORACLE]ORACLE PERFORMANCE SQL TUNING
[ORACLE]Oracle Tuning (Oracle 性能调整)的一些总结  
教程录入:mintao    责任编辑:mintao 
  • 上一篇教程:

  • 下一篇教程:
  • 【字体: 】【发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
      注:本站部分文章源于互联网,版权归原作者所有!如有侵权,请原作者与本站联系,本站将立即删除! 本站文章除特别注明外均可转载,但需注明出处! [MinTao学以致用网]
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)

    同类栏目
    · Sql Server  · MySql
    · Access  · ORACLE
    · SyBase  · 其他
    更多内容
    热门推荐 更多内容
  • 没有教程
  • 赞助链接
    更多内容
    闵涛博文 更多关于武汉SEO的内容
    500 - 内部服务器错误。

    500 - 内部服务器错误。

    您查找的资源存在问题,因而无法显示。

    | 设为首页 |加入收藏 | 联系站长 | 友情链接 | 版权申明 | 广告服务
    MinTao学以致用网

    Copyright @ 2007-2012 敏韬网(敏而好学,文韬武略--MinTao.Net)(学习笔记) Inc All Rights Reserved.
    闵涛 投放广告、内容合作请Q我! E_mail:admin@mintao.net(欢迎提供学习资源)

    站长:MinTao ICP备案号:鄂ICP备11006601号-18

    闵涛站盟:医药大全-武穴网A打造BCD……
    咸宁网络警察报警平台