Performance testing tool curl-loader (Linux)

Source: Internet
Author: User
Tags install openssl openssl binaries

 

Curl-loader Introduction

Curl-loader ( Also known as" Omes - Nik " And " Davilka " ) Yes An Open Source Of C Language Write Of Tools , Simulation Application Load And Tens of thousands Dozens Tens of thousands HTTP/   HTTPS and FTP /   Ftps Client ApplicationProgram Of Action , Each Yes Its Own Source IP address . On the contrary, OthersCurl-loader Use True C Write Of Customer End Protocol Stack , That is Libcurl and TLS /   OpenSSL SSL HTTP and FTP Protocol Stack , Supported Login And Verify Taste And Simulation User behavior Of Tools .

Therefore, although the size is small, do not underestimate his capabilities! Pai_^ curl-the loader performance testing tool was heard when it was initially tested. However, since it runs in a Linux system, it has never been downloaded and used, now we can take the opportunity to learn about Linux.

Bytes ------------------------------------------------------------------------------------------------

-Running environment:Centos 4.8-

-: Http://sourceforge.net/projects/curl-loader/files/curl-loader- -Official Configuration documentation: Http://curl-loader.sourceforge.net/index.html- Bytes ------------------------------------------------------------------------------------------------ Installation steps:     [Root @ youname test] #Tar jxvfCurl-loader-0.56.rar.bz2  Decompress the file   Decompress the package [Root @ youname test] #CDCurls-loader-0.56Enter the Directory [Root @ youname curl-loader-0.56] #VI quick-startGetting started with quick recovery The following message is displayed:
 
.............
Build it using general C development environment with Bash,
GCC (3 or 4 series), make, etc on a Linux machine.

Building pre-requirements are:
1. OpenSSL binaries;
2. OpenSSL development package with include files (On Debian package libssl-Dev)
 
............
  If your Linux system has a GCC and OpenSSL environment, you can skip the following content. If not, install it with me. -------------------- Install GCC ---------------------------------------------------------------------------- First, We must have GccEnvironment: Method 1 For RedHat/centos Linux, run the following command to download and install [Root @ youname test] #Yum install GCC gcc-C ++Download and install the C Compiler
 
Method 2
Rpm InstallationIf the system disk has been installed, you can insert the installation disc and run the following command (for details about how to insert the installation file for a VM ):
 
[Root @ youname test] # Rpm-ivh gcc *
 
 
---------------------------- Install OpenSSL Bytes ------------------------------------------------------------------------------------ Second, Requires us to install OpenSSLPackage [Root @ youname curl-loader-0.56] # Rpm-Qa | grep SSLCheck whether you have installed the OpenSSL service. Method 1 Download and install the corresponding service (the method is cumbersome. Here is the link) Download: Http://download.chinaunix.net/download/0001000/11.shtml Installation Method: Http://myswirl.blog.163.com/blog/static/513186422007101410149578/ Method 2 The above method is troublesome. The simplest method is to insert the system disk in the DVD/CD mode, and find it in the System Disk/centos/RPMS/directory: Openssl-0.9.7a-43.17.el4_7.2.rpm Openssl-devel-0.9.7a-43.17.el4_7.2.rpm For the two RPM packages, click "Install and restart.   Of course, you can also refer to Method 2 Install using commands
 
[Root @ youname test] #Rpm-IVH [file name]
Certificate ------------------------------------------------------------------------------------------------------------------------------------------------- After the prerequisite environment is met, the following command starts installation.


[Root @ youname test] #MakeAutomatic compilation   After compilation, the curl-loader executable program provides some examples for us. Let's take a look at how to configure the performance options in the example. [Root @ youname curl-loader-0.56] # CD conf-examples/Example directory [Root @ youname conf-Examples] # CP 10k. conf mysimp. confCopy the 10k. conf file to the current directory and name it mysimp. conf. [Root @ youname conf-Examples] #VI mysimp. confOpen Edit Mysimp. confFile
########### General section ########################### ##### 
Batch_name = 10 K // Name of the test object
Clients_num_max = 10000 // Maximum number of virtual users
Client _ num_start = 100 // Number of users started at the beginning
Clients_rampup_inc = 50 // Start several users every second
Interface = eth0 // Used Nic eth0
Netmask = 16 // Subnet Mask count
Ip_addr_min = 192.168.1.1 // Start IP Address
Ip_addr_max = 192.168.53.255 # actually- This Is For Self-control // Last IP address range
Cycles_num =-1 // -1 indicates an infinite loop
Urls_num = 1


########### URL section ########################### #########

Url = http://Localhost/index.html//URL to be tested
# Url = http://Localhost/ACE-INSTALL.html
Url_short_name = "Local-index"

REQUEST_TYPE = get
Timer_url_completion = 5000 # In msec. When positive, now it is enforced by canceling URL fetch on timeout
Timer_after_url_sleep = 20
After the preceding content is configured, save and exit.   Perform Performance Testing   Run the following command to start running our performance test. [Root @ youname curl-loader-0.56] # Curl-loader-F./conf-examples/mysimp. conf

During the test, the above information is constantly updated (refreshed. The environment is finally running. The detailed usage of curl-loader will be learned later.


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.