- Intended Audience
- Deployment Assumptions
- How the Gateway Works
- Concepts of the Rewriter
- Adding and Removing Rewriter Rules
- Methodology for Rule Extraction
- Out-Of-Box Rule Set
- Rewriting HTML Attributes
- Rewriting FORM Tag Input
- Rewriting JavaScript Content
- Rewriting Applet Parameters
- Rewriting Cascading Style Sheets
- Rewriting XML
- Performance
- Order Importance
- CASE Studies: How to Configure the Gateway to Rewrite a Web-Based JavaScript Navigation Bar
- Third Party Application Cookbooks
- Exchange
- How to Get Hot Patches
- Glossary
- Acknowledgements
Performance
Performance is an important consideration when deploying a high usage multi-user Portal Server. Detailed maximum throughput in a baseline architecture is beyond the scope of this guide, but gateway tuning parameters are discussed, along with some basic guidelines about creating rewriter rules and their affect on the overall performance of the rewriter.
Tuning Recommendations
This section contains several tables with tuning recommendations.
The following are the /etc/system entries:
Entry |
Value |
tcp_conn_hash_size |
8192 |
rlim_fd_max |
16384 |
rlim_fd_cur |
16384 |
The following are the TCP parameter values that are set on both the Portal Server and gateway components:
Entry |
Value |
tcp_time_wait_interval |
60000 (60 seconds) |
tcp_conn_req_max_q |
1024 |
tcp_conn_req_max_q0 |
4096 |
tcp_slow_start_initial |
2 |
Use ndd(1M) to check or change the default TCP parameter values to those specified above, as in the following example:
root@ips-gateway: ndd /dev/tcp tcp_time_wait_interval 240000 root@ips-gateway: ndd -set /dev/tcp tcp_time_wait_interval 60000 root@ips-gateway: ndd /dev/tcp tcp_time_wait_interval 60000
The following table contains the performance configuration for the Sun ONE Web Server 4.1 for use with Portal Server.
Parameter Name |
Location |
Value |
Remarks |
jvm.minHeapSize |
jvm12.conf |
134217728 |
64 Mbytes |
jvm.maxHeapSize |
jvm12.conf |
805306368 |
768 Mbytes |
|
jvm12.conf |
"-Xgenconfig:32m, 64m, semispaces:32m, 704m, markcompact" |
The JDK 1.2.2_09 provides better performance and scalability with the genconfig and optimize options.1 |
|
obj.conf |
Init fn="cache-init" disable="true" |
Disable Sun ONE Web Server cache for static pages and images. |
RqThrottle |
magnus.conf |
128 |
With Web Server SP5, the maximum number of active threads is calculated using the formula RqThrottle + MaxKeepAliveConnections.2 |
MaxKeepAliveConnections |
magnus.conf |
72 |
|
More gateway-specific performance tuning is discussed in the SP4 Hot Patch 1 release notes.