Lao Li case sharing: WebLogic performance optimization case

Source: Internet
Author: User

Lao Li case sharing: WebLogic performance optimization case

Poptest's Test technology QQ Group: 450192312

Website application Home size around 130K, in the previous test process, its hundred users of the average response capacity of 6.5 seconds, performance optimization after two seconds, the results in 5 seconds:

First, operating system:

Machine name CPU memory Software Environment (operating system/application software) notes
Application Server 3.07ghz*2 8GB Linux 1 Application Server (virtual machine)
Testing machine 2.50GHz 4GB WIN7 1 sets of testing machine


Second, Application server

WebLogic Version: 9.2.3, product mode

Pre-optimal configuration parameters:

Mem_args= "-xms1024m-xmx1024m-djava.net.preferipv4stack=true"
Optimized configuration parameters:

Mem_args= "-xms1536m-xmx1536m-xmn384m-xss256k-dweblogic.threadpool.minpoolsize=60- Dweblogic.threadpool.maxpoolsize=180-djava.net.preferipv4stack=true "

Home>summary of server>server>configuration>tuning> Accept Backlog modified to 100, original default value 50

Modify the number of OpenFile connections for the application server where the application server is located, use the command ulimit-n to view, 1024 before modification, and 10240 for the modification

The changes are as follows:

In the/etc/security/limits.conf file, add:

*-Nofile 102400
*-Noproc 102400

Effective after reboot

Third, the application

Parameter modification in Struts.properties:

Struts.devmode = False, the original is true;

Iv. Application Architecture Description:

Schema: Spring + ibatis + struts2

All static pages, JavaScript, CSS use Ehcache for Web caching, and use gzip to compress files;

Note: The home page size is 130Kb, the database information is not read, but the background verifies whether there is user information in the session to determine the user's login status.

V. Test results

Concurrent number response time success transaction per second transaction failed transaction run time remarks
100 6.5 5293 8.1 72 10 min before optimization
100 5 12881 20 5 10 min after optimization

http://www.cnblogs.com/laoli0201

Lao Li case sharing: WebLogic performance optimization case

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.