Beruflich Dokumente
Kultur Dokumente
Server Performance
For Sun Open Network Systems
With users working, collaborating, shopping, Sun servers with chip multithreading
and doing more on the Web, companies are technology take advantage of very high levels
looking for high-performance application of integration to help reduce latency, lower
servers to keep pace and satisfy demand. costs, and improve security and reliability.
Sun GlassFish™ Enterprise Server is a fast1, Balanced system designs provide compute
open source application server that offers cores, a memory interface, virtualization
significant price/performance advantages technologies, a variety of standards-based
over proprietary application servers. input/output interfaces, and hardware
Designed for scalability, the software can acceleration for data encryption directly
take advantage of the unique performance on the processor die—all at no additional
characteristics of Sun servers incorporating cost. Table 1 provides an overview of the
UltraSPARC® T1, T2, and T2 Plus processors family of scalable Sun servers incorporating
with chip multithreading technology (CMT) to CoolThreads™ technology.
deliver needed performance.
Table 1. Summary of Sun servers with CoolThreads technology environments with high demands. When run
on servers with many processors or processor
Server Features cores, such as Sun servers with CMT, the
Performance Advisor can be applied to help
improve performance significantly.
Sun SPARC Enterprise • 2 CPUs with up to 8 cores, up to 128 threads and 256 GB memory
T6340 Server Module • Up to 6 drive interface connections
Optimizing with Performance Analyzer
Sun SPARC Enterprise • 1 CPU with up to 8 cores, up to 64 threads and 128 GB memory Included with Sun GlassFish Enterprise Server
T6320 Server Module • Up to 8 drive interface connections subscriptions, the Performance Analyzer can
be used to optimize performance based on
Sun SPARC Enterprise • Up to 8 CPUs, 64 cores, 256 threads, and 512 GB memory the hardware architecture. Indeed, tuning the
T5440 Server • 4 network slots, up to 1.2 TB internal storage and 4 SSDs software to take advantage of the underlying
platform can help speed performance. For
Sun SPARC Enterprise • 2 CPUs with up to 8 cores, up to 128 threads and 256 GB memory example, Sun used the Performance Analyzer
T5240 Server • 4 network slots, up to 4.8 TB internal storage and 8 SSDs to tune the Sun GlassFish Enterprise Server
to take advantage of the large number of
Sun SPARC Enterprise • 1 CPU with 4 or 8 cores, up to 64 threads and 128 GB memory processor threads available on CMT servers
T5220 Server • 4 network slots, up to 4.8 TB internal storage and 4 SSDs in general, and Sun SPARC Enterprise T5220
servers in particular, to increase scalability.
Sun SPARC Enterprise • 2 CPUs with up to 8 cores, up to 128 threads and 128 GB memory
T5140 Server • 4 network slots, up to 2.4 TB internal storage and 4 SSDs Platform configuration and optimization
For the tuning effort, Sun utilized a Sun SPARC
Sun SPARC Enterprise • 1 CPU with 4 or 8 cores, up to 64 threads and 128 GB memory Enterprise T5220 server with eight processor
T5120 Server • 4 network slots, up to 2.4 TB internal storage and 4 SSDs cores and 64 execution threads running at
1.4 GHz, 64 GB memory, and one Gigabit
Sun SPARC Enterprise • 1 CPU with 4 or 8 cores, up to 32 threads and 64 GB memory
Ethernet interface. The server ran the Solaris™
T2000 Server • 4 network slots, up to 584 GB internal storage
10 Operating System 8/07 release, the Java™
Development Kit (JDK™ software) version
Sun SPARC Enterprise • 1 CPU with 6 or 8 cores, up to 32 threads and 32 GB memory
1.6.0_12, Standard Edition, and a single
T1000 Server • 4 network slots, up to 292 GB internal stor
instance of the Sun GlassFish Enterprise Server
version 2.1.
In addition, several TCP/IP settings were Once the optimizations are applied, the thresholds are exceeded. The screenshots
tuned. Performance Advisor’s Management Rules in Figure 1 demonstrate how to use the
can be used to create performance alerts. Performance Advisor, including defining
Management Rules monitor key performance the deployment configuration, setting
ndd -set /dev/tcp indicators, and generate alerts when defined parameters, and applying Management Rules.
tcp_conn_req_max_q 30000
ndd -set /dev/tcp
tcp_conn_req_max_q0 30000
ndd -set /dev/tcp
tcp_max_buf 4194304
ndd -set /dev/tcp
tcp_cwnd_max 2097152
ndd -set /dev/tcp
tcp_recv_hiwat 400000
ndd -set /dev/tcp
tcp_xmit_hiwat 400000
Delivering scalable performance The test using out-of-the-box settings For more information
To test performance, a Web application delivered 891 hits/second, while the test To learn more about Sun GlassFish Enterprise
simulating an e-commerce scenario was using recommended optimizations resulted Server, Sun servers with CoolThreads
deployed. A baseline test was performed in 6,868 hits/second for a 770% (nearly 8x) technology, and how to optimize
using out-of-the-box settings to establish improvement in throughput (Figure 2). deployments, visit sun.com/coolthreads,
standard performance characteristics and sun.com/glassfish, email glassfish@sun.com,
provide a basis for comparison. Next, the A powerful combination or see the references listed in Table 2.
Performance Advisor Tuner wizard was run Today’s Web 2.0 deployments depend
and recommended settings were applied. on high-performance infrastructure to Table 2. References for more information
Since the application was running on a Sun keep pace. The open source Sun GlassFish
Optimize GlassFish Performance in a
SPARC Enterprise T5520 server, the Running software portfolio and related support—Sun
Production Environment
on Sun’s CoolThreads (Niagara) Server GlassFish Enterprise Server, Sun GlassFish
checkbox was selected. Enterprise Service Bus, Sun GlassFish Web sun.com/offers/details/
Server, and Sun GlassFish Web Stack— OptimizeGlassFishPerformance.html
Based on the input provided to the provides the foundation for next-generation
Sun GlassFish Enterprise Server 2.1
Tuner wizard, the Performance Advisor Web infrastructure. By running these
Quick Start Guide
recommended settings for improved powerful applications on energy-efficient
performance. These settings were applied by Sun servers with chip multithreading docs.sun.com/app/docs/doc/820-4334
pressing the Confirm button. The tests were technology, and optimizing deployments
Sun GlassFish Enterprise Server 2.1
run a second time using these settings. with the Performance Advisor, companies
Administration Guide
can take advantage of outstanding price/
performance and build high-performance docs.sun.com/app/docs/doc/820-4335
Web infrastructure that costs less to run.
Sun GlassFish Enterprise Server 2.1
Optimized Deployment Planning Guide
7000
docs.sun.com/app/docs/doc/820-4342
6000 Sun GlassFish Enterprise Server 2.1
Performance Tuning Guide
5000
Throughput (Hits/Second)
docs.sun.com/app/docs/doc/820-4343
Sun Microsystems, Inc. 4150 Network Circle, Santa Clara, CA 95054 USA Phone 1-650-960-1300 or 1-800-555-9SUN Web sun.com
© 2009 Sun Microsystems, Inc. All rights reserved. Sun, Sun Microsystems, the Sun logo, CoolThreads, GlassFish, Java, JDK, MySQL, Solaris, and Sun Fire are trademarks or registered trademarks of Sun Microsystems, Inc., or its
subsidiaries in the United States and other countries. All SPARC trademarks are used under license and are trademarks or registered trademarks of SPARC International, Inc. in the US and other countries. Products bearing SPARC
trademarks are based upon an architecture developed by Sun Microsystems, Inc. Information subject to change without notice. SunWIN #561762 04/09