LINUX Installation Tsung stress test for OpenFire

Source: Internet
Author: User

Tags: style blog http color os using Java IO strong

Reference: http://www.centoscn.com/image-text/install/2014/0818/3503.html

http://my.oschina.net/jielucky/blog/167405

http://blog.csdn.net/bxc168/article/details/6020683

Required Packages:

The package to be used has a third package, fourth and fifth packages

1. First execute in terminal, enter

Yum-y install make GCC gcc-c++ kernel-devel M4 ncurses-devel Openssl-devel

2. Re-execute, enter

Yum Install Perl-extutils-cbuilder Perl-extutils-makemaker

3. Then execute, enter

Yum-y Install Perl

4. Then execute, input (may appear not found something, regardless of the first)

Yum-y Install Gnuplot

Put a picture first:

5. First install Erlang, unzip the third package (I extracted to the USR directory below, otp_src_r16b01), enter

TAR-ZXVF otp_src_r16b01.tar.gz-c/usr

6. Configure the installation, first CD to the extracted folder, before the CD to confirm that you are now where the file path, you can use PWD to view your path, enter

CD OTP_SRC_R16B01

Then configure the installation (I am directly configured under the USR directory, a folder will be generated after configuration, Erlang in the figure above), input

./configure--prefix=/usr/erlang

Make && make install

7. Install Tsung, unzip the fifth package (I also extracted to the USR folder, the above image of the tsung-1.5.0) input

TAR-ZXVF tsung-1.5.0.tar.gz-c/usr

8.cd to tsung-1.5.0 folder, before the CD to confirm your current file path is, you can use PWD to view your path, enter

CD tsung-1.5.0

9. Configure Tsung, (my path is set directly in USR, Tsung in), enter

./configure--prefix=/usr/tsung--with-erlang=/usr/erlang (the path of this place to write your own decompression configuration of the path, the configuration process occurs when the confirmation of the input Y to confirm it)

Make && make install

10. Check if the Tsung is installed successfully, enter

Tsung-v

General error is because no PATH variable is configured

11. Configure the Tsung path variable, enter

Vim/etc/profile

Edit the profile file, and at the end of the Nineth step add the Bin directory in the Tsung (i configured the Java JDK variable, so add it directly later:/usr/tsung/bin, Colon also to add, such as)

After editing, save (press ESC First, then enter: Wq, save)

12. Application configuration, input

Source/etc/profile

13. Check again if the Tsung is successfully installed, enter

Tsung-v

If the installation is successful, it will show

14. Install the Perl template, unzip the fourth package, mine is extracted to the USR directory below, in the template-toolkit-2.24, input

TAR-ZXVF template-toolkit-2.24.tar.gz-c/usr

CD to template-toolkit-2.24 directory, enter

CD template-toolkit-2.24

16. Re-configure, enter

Perl makefile.pl

Make

Make Test

Make install

17. Enter the command in the fourth step at this time and enter

Yum-y Install Gnuplot

Show

18. This time input Tsung tart will error, said Root/.tsung/tsung.xml file does not exist, so first create the directory, enter

Cd

19. Create one after the root directory. The beginning of the file, after creation can be viewed in FTP, in the FTP to manually enter that path/root/.tsung will enter this hidden folder. Input

mkdir ~/.tsung

20. Find yourself a tsung.xml on the Internet put in the folder you just created, a bit to

1 <?xml version= "1.0"?>
2<!DOCTYPE Tsung SYSTEM "/usr/tsung-1.5.0/tsung-1.0.dtd">3 <Tsungloglevel= "notice"dumptraffic= "false"version= "1.0">4 <Clients>5 <ClientHost=" "USE_CONTROLLER_VM= "true"maxusers= "50000" />6 </Clients>7 <Servers>8 <ServerHost= ' 'Port= ' 6222 'type= ' TCP ' />9 </Servers> One <Load> A <ArrivalphasePhase= "1"Duration= " the"Unit= "Minute"> - <UsersMaxNumber= "50000"Interarrival= "0.0025"Unit= "Second"></Users> - </Arrivalphase> the </Load> - <Options> - <optiontype= "Ts_jabber"name= "Global_number"value= "5"></option> + <optiontype= "Ts_jabber"name= "Userid_max"value= "50000"></option> - <optiontype= "Ts_jabber"name= "Domain"value=" "></option> + <optiontype= "Ts_jabber"name= "username"value= "Tsung"></option> A <optiontype= "Ts_jabber"name= "passwd"value= "Tsung"></option> at </Options> - <Sessions> - <Sessionprobability= "+"name= "Jabber-example"type= "Ts_jabber"> - <Request> in <Jabbertype= "Connect"ack= "No_ack"></Jabber> - </Request> to <ThinkTimevalue= "2"></ThinkTime> - <Request> the <Match Do= "Abort" when= "Match">Error</Match> * <Jabbertype= "Register"ack= "local"ID= "new"></Jabber> $ </Request> - <Transactionname= "Authenticate"> the <Request> + <Jabbertype= "Auth_get"ack= "local"></Jabber> A </Request> the <Request> + <Jabbertype= "Auth_set_plain"ack= "local"></Jabber> - </Request> $ </Transaction> - <Request> the <Jabbertype= "Presence:initial"ack= "No_ack" /> - </Request>Wuyi <ThinkTimevalue= "+"></ThinkTime> Wu <Request> - <Jabbertype= "Close"ack= "No_ack"></Jabber> About </Request> - </Session> - </Sessions> A </Tsung>

The second line in the code above,

<! DOCTYPE Tsung SYSTEM "/usr/tsung-1.5.0/tsung-1.0.dtd" > here to write your own path
Client and host fill in the server's hostname and IP address separately, my port number is 6222

Start, enter

Tsung Start

To view the OpenFire console:

A log is generated,

21. Generate the report, to use the tsung_stats.pl, the file in/usr/tsung/lib/tsung/bin, my is USR, copy to/usr/tsung/bin directory, enter

Cp/usr/tsung/lib/tsung/bin/tsung_stats.pl-r/usr/tsung/bin

22. Configure the environment variables, with 11 steps, added later:/usr/tsung/bin save.

23.ctrl+c, stop after the CD to the log directory below the folder/root/.tsung/log/20140828-1922 input

cd/root/.tsung/log/20140828-1922

24. Generate Reports, enter

CD 20140828-1922/

tsung_stats.pl

25. Then enter

Ls

Can see the file generation, with FTP to the folder down, you can see the report. The data you want should be in it.

LINUX Installation Tsung stress test for OpenFire

Related Article

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.

Tags Index: