Operating System Resource monitoring
Use operating system tools and utilities to monitor and gather information about process and resource utilization.
Microsoft Windows platforms:
Free Monitoring Tools from Sysinternals
asp?n=1&c=rp_BestBets&siteid=us&target=http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tools/perfutil_5702.asp?frame=true">Performance Monitor documentation
Solaris:
commands vmstat, iostat, mpstat
Sun Performance page
Load / Stress testing
You should always stress test an application before putting it into production. A variety of stress testing tools are available, to help you simulate a load to test if the application will scale and perform at acceptable levels. Some of the tools are available free of cost. For example, OpenSTA is free from http://www.opensta.org/
Benchmarking
A whitepaper is available that points out the fundamentals involved in an application server benchmark, and outlines the results for EAServer tests for the nile.com benchmark.
Application Server Benchmarking Fundamentals white paper
Section 12: PowerDynamo
This section includes suggestions for those sites that use PowerDynamo.
Category
Performance Considerations
More Information
Achieving Optimum Performance with PowerDynamo
How to optimize performance using caching, scheduling, load balancing, minimizing use of expensive methods and properties, and more
Chapter 10 of the PowerDynamo User's Guide
Tracing
Ensure both the EAServer property com.sybase.jaguar.server.dynamo.trace and PowerDynamo trace configuration setting are set to false.
"Repository Properties Reference" in EAServer System Administration Guide, and "Changing Dynamo configuration settings" in the PowerDynamo User's Guide
Data Source configuration
If you are connecting to a database server on the same machine as the Web server, do not select Client as the Agent. This would result in the local connection being made through the network, which would cause a decline in performance.
"Setting up the Adaptive Server Anywhere database server for PowerDynamo" in the PowerDynamo User's Guide
Text substitution
Rather than text substitution, significant performance improvements can result in some circumstances using host variables in a SQL statement, since it can be executed repeatedly without being reparsed
"Text substitution and host variables" in the PowerDynamo User's Guide
Connection pool settings
Configure the connection pool minimum, maximum, and timeout for optimum results
"Managing the connection pool" in the PowerDynamo User's Guide
Temporary connections
Avoid using temporary connections, since they do not utilize pooling.
"Working with connections" in the PowerDynamo User's Guide
Script and Template properties
If a script or template does not require any connections to a database to complete execution, specifying <no connection> in the definition, so that no connection object is created during the execution of the document.
"Using <no connection>" in the PowerDynamo User's Guide
Performance Monitor
On NT, use the performance monitor for feedback on utilization and processing of caches, queries, scripts, and requests
"Using the Performance Monitor" in the PowerDynamo User's Guide
Java Class Cache
To improve performance, information about the methods and properties of Java classes is cached.
"Configuring Dynamo to use Java" in the PowerDynamo User's Guide
Java class storage
Java classes can be accessed from within a database or within the file system. If you do not need the Java classes stored in the database (for replication or other reasons), you should store them in the file system for performance reasons.
"Using Java in a PowerDynamo script" in the PowerDynamo User's Guide
XML Document Nodes
It is generally more efficient to use explicit objects instead of the generic node interface to XML documents.
"The object interface to XML documents" in the PowerDynamo User's Guide
XML Document parsing
Parsing large documents with toDOMDocument can be expensive. Design your site so this occurs as infrequently as possible. You can avoid unnecessary parsing of the document by attaching the DOMDocument object to the session object.
"Creating the DOMDocument object" in the PowerDynamo User's Guide
Section 13: Localization
Category
Performance Considerations
More Information
Global Sort component
The Global Sort component, which provides high performance sorting of small to medium length lists and supports multiple alphabets and sort orders. This feature is documented in Using Global Sort.
Using Global Sort
XML conversion
The XML conversion module (XCM) tool is a high-performance EAServer component development tool that provides encoding verification and character set conversion for XML data. Using the XCM Tool describes how to use this feature.
Using the XCM Tool
Section 14 -- Development Environment
Category
Performance Considerations
More Information
Deployment and code generation
EAServer 4.0 introduces Java-to-IDL and IDL-to-Java code generation optimizations. These optimizations can increase your productivity when you deploy Java based applications with complicated component class hierarchies and when you generate Java stubs for these applications. The J2EE EAR importer, EJB JAR importer, and the Java code generator have been enhanced to allow you to specify a code generation strategy as follows:
- Full - Always generates Java or IDL types for every interface and type.
- Incremental - Compares IDL and Java timestamps to determine whether new versions must be generated. Java timestamps are maintained in a database in the EAServer repository.
- Optimistic - Similar to Incremental, except that the check for changed types in each IDL module or Java package ends if the first comparison indicates no change.
"Deployment and code generation performance" in What's New in EAServer 4.1
Class Loader
EAServer supports hot refresh of components by using a Java class loader. This feature speeds the development process by allowing you to deploy new class versions without restarting the server. To enable refresh, set com.sybase.jaguar.component.refresh to true, which is set by default.
"Repository Properties Reference" in EAServer System Administration Guide
Additional Information
It is important to review performance information for the languages, operating systems, databases, protocols, etc you are working with.
Here are a few sample links to get you started.
Java Related:
- Java Developer Connection: java.sun.com/developer/onlineTraining/Programming/JDCBook/perfTech.html">Advanced Programming for the Java 2 Platform Chapter 8: Performance Techniques
- Java Developer Connection: java.sun.com/docs/books/performance/">JAVA PLATFORM PERFORMANCE STRATEGIES AND TACTICS
- JavaWorld: Design for performance. Part 1: Interfaces matter, Part 2: Reduce object creation, Part 3: Remote interfaces
- JavaWorld: Java performance programming, Part 1: Smart object-management saves the day
上一页 [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 性能调整)的一些总结
|