Category Archives: Test

Tryst Hyperlink Usa Discover Independent Escorts

Tryst Hyperlink Usa Discover Independent Escorts

At USASexGuide, we provide a wealth of options and belongings designed to counterpoint your adult leisure journey. Our in depth boards cover all states and primary cities in the U.S., providing comprehensive stories on escorts, strip clubs, streetwalkers, therapeutic massage parlors, and completely different services. Users can share scores, submit pictures, and have interaction in personal usasexguide.me conversations, fostering a vibrant and interactive surroundings. From the colourful nightlife of Miami and Atlanta to the laid-back appeal of New Orleans, the South supplies a intensive vary of adult leisure venues. Reports from locations like Dallas, Houston, Orlando, and Charlotte provide you with access to all the data you need to take pleasure in your time on this various space. It’s additional like a Personal Adverts platform the place you’ll be succesful of immediately entry the report of escort services. USASexGuide puts an emphasis on safety, providing an array of safety features and processes to ensure your night time time is protected and secure.

Is OnlyFans illegal within the US?

No, OnlyFans just isn’t illegal in the United States. It is protected under free speech laws and operates legally as a subscription-based platform. Nevertheless, creators should comply with federal and state rules regarding age verification, consent, and content material distribution.

Usasexguide

You can discover massage salons from almost every city which supply additionally further services. In USA and Canada they usually don’t promote the extra services in public. Avenue sex employees in North America are often drug customers so never have sex with no condom. Others take a extra nuanced view, recognizing that the ethical implications of solicitation for sex depend upon components corresponding to consent, agency, and autonomy.

Media

How frequent is hooking up within the USA?

Current information reveals that between 60 percent and eighty % of North American school students have skilled a “hook-up” in some capacity. An article written by Justin Garcia and colleagues aimed to explain why college college students have been the most accepting of this phenomenon.

He has worked with several SaaS and enterprise companies as an exterior consultant for his or her web optimization advertising campaigns. In addition to those causes, here are other methods to make Usasexguide.online sooner. A gradual load time could possibly be as a result of plenty of things – poor community connectivity at your finish, an unreliable internet hosting server, or a poorly optimized webpage. In Accordance to the newest CWVIQ pace report, Usasexguide.online took 0.04 seconds to load the web page. Something over 5 seconds signifies that the web site is merely too gradual to load.

What To Learn Subsequent

There are completely different kind of different sexual services and locations in North America. Homosexual modeling in internet is getting extra in style on a daily basis and it is a massive market alongside with homosexual porn. You can watch homosexual live sex also in North America so long as you’re related to web. A massive percentage of North American girls are open minded and ready for some one evening enjoyable with a stranger. What the problem is is watching a man for four hours an evening do the exact same issue each single evening, they get to the purpose the place they’re like, you inform us if something pops up of interest. I’m sitting there doing the investigation, so I’m sitting there after a while, and I’m like, shit, why not?

You can discover transsexual escorts selling their services in a lot of places in USA and Canada. Also from different parts of North America it’s not very troublesome to seek out shemale company if wanted. If you don’t really feel like visiting or can’t find any native sex retailers in North America, you’ll have the ability to simply order adult merchandise from Online Sex Store. You can discover massage salons from nearly every city which provide additionally additional services. In USA and Canada they usually don’t promote the additional services in public. Whether Or Not you’re in a long-term relationship or navigating the dating scene, enhancing your sexual health and effectivity can rework your life.

Create The Proper Environment

How to repair ChatGPT scroll not working?

By urgent F5 or clicking the refresh button in your browser, you’ll find a way to often restore the scroll performance. Switch Browsers: Compatibility issues can sometimes be the wrongdoer. Customers have reported that switching to a special web browser (e.g., from Chrome to Firefox or vice versa) can resolve scrolling issues.

As you climb up the stars the costs have a tendency to come back down as the rental costs drop on account of larger stage flooring are much less visited. In truth some flooring the nationalities will change from mild to very darkish if you know what we mean. The Constitutional Courtroom ruled that possession for “personal use”, although still illegal, shouldn’t be prosecuted. Germany is a federal state because of this fact the interpretation of this ruling is up to the state authorities. State and city-specific reviews are basically the most fascinating and helpful. If you’d wish to drawback the belief ranking assigned, we’re pleased to take a extra in-depth look.

Is sex work legal in New York?

Prostitution is towards the law in every state except Nevada. However every state has its own prostitution legal guidelines. Ny is not any different. New York's prostitution laws target a number of offenses stemming from the prohibited act of participating or offering to have interaction in a sex act in exchange for a payment.

I’m ninety nine.9% optimistic that if you’re is usa sex guide down finding out this review correct now, you most undoubtedly don’t have hoes in any area code, let alone a quantity of. I really have always dreamt of hitting the street and seeing these nice Usa of ours from coast to coast. One of the main features of this platform is to make positive you might get laid in a brief while regardless of the place you go. AdultFriendFinder.com, as an example, lets you meet native members in Usa of America and get to know them on a personal basis sooner than you arrive. Take benefit of features like live chat rooms and member webcams so you understand who you’re chatting with earlier than arranging a face-to-face meeting.

Longer intervals of time are extra suitable if you need to go a quantity of rounds. But most of the time I found that sex itself lasted round minutes, and possibly one other quarter-hour if you’re doing a lot of foreplay. The bar for being a good client right here is low – just be polite and direct. You wouldn’t believe what number of shoppers are time wasters, are really annoying when giving screening info (usually incomplete, or makes her ask a quantity of instances to give it). Often screening info is one thing like references from other escorts you’ve seen, ID verification, or some mixture of both. She needs to make sure you’re not going to hurt or kidnap her (otherwise known as ‘arresting’).

Can you go to jail for sexting in the USA?

Legal penalties for sexting can embrace: Possession of child pornography: Five to ten years' incarceration and as a lot as a $15,000 fine. Possession of child pornography with intent to distribute: 10 to twenty years' incarceration and as much as $150,000 in fines.

Justice Department Hosts Thirty Second Annual Federal Interagency Holocaust Remembrance Program

It may also be an apartment, where often girls will do a timeshare lease with other escorts as a location to see clients. 2-3 hours is great for a drink or meal beforehand, and was personally my favorite length of time. Call me quaint, but I found I was much extra likely to enjoy the sex if I had a larger amount of time to speak beforehand. It gave me a chance to casually discuss sex preferences and compatibility, get a really feel for teasing, and fall in micro-love somewhat bit.

  • Usually talking, the cheaper the escort, the lower her minimum time (usually 30 minutes), whereas it’s common for high-end women to have a minimum of 2 hours.
  • These Days, they’ve grown as an internet categorised advertising device as nicely, although classifieds are usually used for advertising.
  • The matters might differ depending on the situation chosen, for instance, reviews on strip golf equipment, gasoline stations, information, and so forth.
  • FanCentro has served as a premium software for lots of influencers and online celebrities to earn money by creating exclusive content material.
  • It would possibly moreover be a little bit of an informal site consider to totally different sites, nonetheless it has a reasonably respectable interface.

Along with that, we can’t say that USASexguide is a disgusting dating site. These banners can get fairly graphic, which is why we don’t advocate opening the website wherever there are folks round. Customers on the forum — on which individuals fee their experience utilizing escort services — rapidly noticed this week that the alleged brothel’s website had been taken down. With usasexguide.us, you presumably can uncover this matter with the privateness, respect, and expertise you deserve. Proper care and storage are essential for maintaining the longevity and hygiene of adult merchandise. These women are right into a severe dependancy to treatment and sex which make them proceed their enterprise for survival and to fulfill their wants.

Which country has the best hookup culture?

A larger average variety of sexual partners indicates a higher probability of multiple sexual encounters and a higher level of promiscuity within the population. According to World Inhabitants Review, the country with the most sexual partners is Turkey, with an average of 14.5 sexual companions.

At All Times make use of condoms and as correctly as varied kinds of security all through sexual encounters. When it entails generating the Orlando sexguide work further efficiently usasexguide not working, there are a selection of strategies and ideas to take heed to. At All Times preserve a listing of each one of the areas you wish to visit together with the actions you wish to attempt. This ought to assist you to to put in priority and get most likely basically the most from your effort and time contained throughout the town. But you shouldn’t overlook that it promotes sex tourism, escort services, and the like.

Aside from this state, you possibly can meet the ladies from Arizona, Indiana, Iowa, Pennsylvania and others. Some of the most popular ladies live here and you may see them in numerous sex-based institutions and strip clubs. All of them are different, but there’s something in widespread, they wish to share their sex expertise on USASexGuide and be employed to ship unbelievable escort services. It is feasible to write down suggestions on particular escort experiences, talk about completely different topics, write personal messages and much more.

HTTP requests Tools

1、Postman

A powerful GUI platform to make your API development faster & easier, from building API requests through testing, documentation and sharing.express-api-development

2、Fiddlerfiddler

3、CURL

curl -i -X GET http://rest-api.io/items
curl -i -X GET http:/ /rest-api.io/items/5069b47aa892630aae059584
curl -i -X DELETE http://rest-api.io/items/5069b47aa892630aae059584
curl -i -X POST -H ‘Content-Type: application/json’ -d ‘{“name”: “New item”, “year”: “2009”}’ http://rest-api.io/items
curl -i -X PUT -H ‘Content-Type: application/json’ -d ‘{“name”: “Updated item”, “year”: “2010”}’ http://rest-api.io/items/5069b47aa892630aae059584

4、For Chrome try one of extensions:
Advanced REST client
Postman – REST Client

5、For Firefox try one of add-ons:
REST Easy (has nice design)
RESTClient
Poster plugin (it runs on Firefox 33)
•Developer Tools (F12) ->[Network] ->[Edit and resend]

refer:http://stackoverflow.com/questions/4797534/how-do-i-manually-fire-http-post-requests-with-firefox-or-chrome

渗透测试资源

开源黑盒测试工具
一般测试
• OWASPWebScarab
• OWASP CAL9000: CAL9000 是一个基于浏览器的工具集合,它可以使得手动测试更加快速高效。它包含有一个XSS 攻击
库,字符编码器/解码器,HTTP 请求生成器和响应计算器,测试清单,自动攻击编辑器以及其它很多内容。
• OWASP PanteraWeb Assessment Studio Project
• SPIKE – http://www.immunitysec.com
• Paros – http://www.parosproxy.org
• Burp Proxy – http://www.portswigger.net
• Achilles Proxy – http://www.mavensecurity.com/achilles
• Odysseus Proxy – http://www.wastelands.gen.nz/odysseus/
• Webstretch Proxy – http://sourceforge.net/projects/webstretch
• Firefox LiveHTTPHeaders, Tamper Data and Developer Tools – http://www.mozdev.org
• Sensepost Wikto (Google cached fault-finding) – http://www.sensepost.com/research/wikto/index2.html
• Grendel-Scan – http://www.grendel-scan.com

特定漏洞测试

Flash测试

  • OWASP SWFIntruder – http://www.owasp.org/index.php/Category:SWFIntruder,

http://www.mindedsecurity.com/swfintruder.html

AJAX测试

  • OWASP Sprajax Project

SQL注入测试

  • OWASP SQLiX
  • Multiple DBMS SQL Injection tool – SQL Power Injector
  • MySQL Blind Injection Bruteforcing, Reversing.org – [sqlbftools]
  • Antonio Parata: Dump Files by SQL inference on Mysql – [SqlDumper]
  • Sqlninja: a SQL Server Injection & Takeover Tool – http://sqlninja.sourceforge.net
  • Bernardo Damele and Daniele Bellucci: sqlmap, a blind SQL injection tool – http://sqlmap.sourceforge.net
  • Absinthe 1.1 (formerly SQLSqueal) – http://www.0x90.org/releases/absinthe/
  • SQLInjector – http://www.databasesecurity.com/sql-injector.htm
  • bsqlbf-1.2-th – http://www.514.es

Oracle测试

  • TNS Listener tool (Perl) – http://www.jammed.com/%7Ejwa/hacks/security/tnscmd/tnscmd-doc.html
  • Toad for Oracle – http://www.quest.com/toad

SSL测试

  • Foundstone SSL Digger – http://www.foundstone.com/resources/proddesc/ssldigger.htm

暴力破解密码测试

  • THC Hydra – http://www.thc.org/thc-hydra/
  • John the Ripper – http://www.openwall.com/john/
  • Brutus – http://www.hoobie.net/brutus/
  • Medusa – http://www.foofus.net/~jmk/medusa/medusa.html

HTTP方法测试

  • NetCat – http://www.vulnwatch.org/netcat

缓冲区溢出测试

  • OllyDbg – http://www.ollydbg.de

o “一个基于Windows 的用于分析缓冲区溢出漏洞的调试器”

  • Spike – http://www.immunitysec.com/downloads/SPIKE2.9.tgz
  • 一个可用于探寻漏洞以及执行长度测试的漏洞检查框架
  • Brute Force Binary Tester (BFB) – http://bfbtester.sourceforge.net

o 一个主动的二进制检查器

  • Metasploit – http://www.metasploit.com/projects/Framework/

o 一个快速的攻击产生和测试框架

Fuzzing工具

  • WSFuzzer

Googling

  • Foundstone Sitedigger (Google cached fault-finding) – http://www.foundstone.com/resources/proddesc/sitedigger.htm

商业黑盒测试工具

  • Typhon – http://www.ngssoftware.com/products/internet-security/ngs-typhon.php
  • NGSSQuirreL – http://www.ngssoftware.com/products/database-security/
  • Watchfire AppScan – http://www.watchfire.com
  • Cenzic Hailstorm – http://www.cenzic.com/products_services/cenzic_hailstorm.php
  • SPI Dynamics WebInspect – http://www.spidynamics.com
  • Burp Intruder – http://portswigger.net/intruder
  • Acunetix Web Vulnerability Scanner – http://www.acunetix.com
  • ScanDo – http://www.kavado.com
  • WebSleuth – http://www.sandsprite.com
  • NT Objectives NTOSpider – http://www.ntobjectives.com/products/ntospider.php
  • Fortify Pen Testing Team Tool – http://www.fortifysoftware.com/products/tester
  • Sandsprite Web Sleuth – http://sandsprite.com/Sleuth/
  • MaxPatrol Security Scanner – http://www.maxpatrol.com
  • Ecyware GreenBlue Inspector – http://www.ecyware.com
  • Parasoft WebKing (more QA-type tool)

OWASP 测试指南v3.0

  • MatriXay – http://www.dbappsecurity.com
  • N-Stalker Web Application Security Scanner – http://www.nstalker.com

源代码分析工具—开源/免费软件

  • OWASP LAPSE
  • PMD – http://pmd.sourceforge.net/
  • FlawFinder – http://www.dwheeler.com/flawfinder
  • Microsoft’s FxCop
  • Splint – http://splint.org
  • Boon – http://www.cs.berkeley.edu/~daw/boon
  • Pscan – http://www.striker.ottawa.on.ca/~aland/pscan
  • FindBugs – http://findbugs.sourceforge.net

源代码分析工具—商业软件

  • Fortify – http://www.fortifysoftware.com
  • Ounce labs Prexis – http://www.ouncelabs.com
  • Veracode – http://www.veracode.com
  • GrammaTech – http://www.grammatech.com
  • ParaSoft – http://www.parasoft.com
  • ITS4 – http://www.cigital.com/its4
  • CodeWizard – http://www.parasoft.com/products/wizard
  • Armorize CodeSecure – http://www.armorize.com/product/
  • Checkmarx CxSuite – http://www.checkmarx.com

验收测试工具—开源

jmeter distributed testing

1、环境准备

1台控制机(master)

多台测试机(slaves),控制机也可以同时作为测试机使用

1台Webserver(或集群)

 

jmeter

2、编写测试计划文件

在本地用jmeter图形界面创建测试计划,并上传到控制机(master)(如:/home/jmeter/project.jmx )

3、准备测试数据

如果在测试计划中需要使用测试数据(如:上传的文件),则将数据上传到测试机(slaves)的对应目录。

4、执行测试(分布式):

1)启动测试机(slaves)上的jmeter-server

2)在控制机(master)上执行测试

./jmeter.sh -n -t /home/jmeter/project.jmx -R ip1,ip2  -l /home/jmeter/result.jtl

5、查看测试结果

将/home/jmeter/result.jtl下载到本地,使用jmeter图形界面进行查看。

refer:

1、jmeter_distributed_testing_step_by_step

2、 jmeter_linux

3、Jmeter在linux上运行(命令行运行Jmeter)

如何生成每秒百万级别的 HTTP 请求?

  • 第一篇:《如何生成每秒百万级别的 HTTP 请求?》
  • 第二篇:《为最佳性能调优 Nginx》
  • 第三篇:《用 LVS 搭建一个负载均衡集群》

 


本文是构建能够每秒处理 3 百万请求的高性能 Web 集群系列文章的第一篇。它记录了我使用负载生成器工具的一些经历,希望它能帮助每一个像我一样不得不使用这些工具的人节省时间。

负载生成器是一些生成用于测试的流量的程序。它们可以向你展示服务器在高负载的情况下的性能,以及让你能够找出服务器可能存在的问题。通过负载测试了解服务器的缺点,是测试服务器弹性以及未雨绸缪的好方法。

负载生成工具(Load-Generating Tools)

在进行负责测试时要牢记一件重要的事:你能在 Linux 上建立多少个 socket 连接。这个限制是硬编码在内核里的,最典型的就是临时 W 端口的限制。(在某种程度上)你可以在 /etc/sysctl.conf 里扩展它。但是基本上,一台 Linux 机器只能同时打开大约 64,000 个 socket 。因此在负载测试时,我们不得不通过在单一的连接上尽可能多地发出请求来充分利用 socket 。 除此之外,我们还需要不止一台的机器来产生负载。否则,负载生成器会把可用的 socket 占用导致不能产生足够的负载。

我一开始用的是‘ab’,Apache Bench 。它是我所知道的 http 基准测试工具中最简单、最通用的。并且它是 Apache 附带的产品,因此它可能已经存在于你的系统中。不幸的是,我在使用它的时候每秒大约只能生成 900 个请求。虽然我见过其他人使用它每秒能达到 2,000 个请求,但我可以立即告诉你,‘ab’并不适合我们的基准测试。

Httperf

接着,我尝试了 ‘httperf’。这个工具更强大,但是它依然相对简单并且功能有限。要算出每秒生产了多少个请求并不是仅传递参数那么简单。经过我的多次尝试,获取了每秒超过几百请求的结果。例如:

它以每秒 1,000 个的速率创建了 100,000 个会话(session)。每次会话发起 5 次请求,时间间隔为 2 秒。

httperf --hog --server=192.168.122.10 --wsess=100000,5,2 --rate 1000 --timeout 5
Total: connections 117557 requests 219121 replies 116697 test-duration 111.423 s

Connection rate: 1055.0 conn/s (0.9 ms/conn, <=1022 concurrent connections)
Connection time [ms]: min 0.3 avg 865.9 max 7912.5 median 459.5 stddev 993.1
Connection time [ms]: connect 31.1
Connection length [replies/conn]: 1.000

Request rate: 1966.6 req/s (0.5 ms/req)
Request size [B]: 91.0

Reply rate [replies/s]: min 59.4 avg 1060.3 max 1639.7 stddev 475.2 (22 samples)
Reply time [ms]: response 56.3 transfer 0.0
Reply size [B]: header 267.0 content 18.0 footer 0.0 (total 285.0)
Reply status: 1xx=0 2xx=116697 3xx=0 4xx=0 5xx=0

CPU time [s]: user 9.68 system 101.72 (user 8.7% system 91.3% total 100.0%)
Net I/O: 467.5 KB/s (3.8*10^6 bps)

最终,我使用这些设置达到了每秒 6,622 个连接:

httperf --hog --server 192.168.122.10 --num-conn 100000 --ra 20000 --timeout 5

(总共创建了 100,000 个连接,并且以每秒 20,000 个连接的固定速率创建)

它还有一些潜在的优势,并且拥有比‘ab‘更多的特性。但它不是我要用在这个项目里的重量级工具。我需要的是能够支持分布式多负载测试节点的工具。因此,我的下一个尝试是:Jmeter。

Apache Jmeter

这是一个功能齐全的 web 应用测试套件,它可以模拟真实用户的所有行为。你可以使用 Jmeter 的代理去访问你的网站,进行点击、登陆、模仿用户可以做的所有行为。Jemeter 会把这些行为记录下来作为测试用例。然后 Jmeter 会反复执行这些动作来模拟你想要的用户数量。尽管配置 Jmeter 比 ‘ab‘ 和 ’httperf‘ 复杂得多,但它是一个很有趣的工具!

根据我的测试,它每秒可以产生 14,000 个请求!这绝对是一个好的进展。

我使用了 Googlle Code project 上的一些插件,并且使用它们的“Stepping Threads”和“HTTP RAW”请求,最终每秒大约可以产生 30,000 个请求!但这已经达到极限了,所以还要寻找另一个工具。这里有一个我之前的 Jmeter 配置,希望可以帮助到其他人。虽然这个配置离完美相差甚远,但有时它可以满足你的要求。

Tsung: 重型的(heavy-duty)、分布式的、多协议测试工具

它每秒基本可以产生 40,000 个请求,这绝对是我们想要的工具。类似于 Jmeter,你可以把一些行为记录下来在测试时运行,并且可以测试大多数的协议。比如 SSL、HHTP、WebDAV、SOAP、PostgreSQL、MySQL、LDAP 和 Jabber/XMPP。与 Jmeter 不同的是,它没有让人感到迷茫的 GUI 设置,它仅有一个 XML 配置文件,和一些你选择的分布式节点的 SSH 密钥。它的简洁和效率对我的吸引力,完全不亚于它的健壮性和可扩展性。我发现它是一个很强大的工具,在正确的配置下它可以每秒产生百万级的 HTTP 请求。

除此之外,Tsung 还可以在 html 上产生图表以及输入你的测试的详细报告。测试的结果通俗易懂,并且你甚至可以把这些图片展示给你的 boss 看!

在这个系列文章的剩余部分,我还会讲解这个工具。现在你可以继续浏览下面的配置说明,或者直接跳到下一页。

在 CentOS 6.2 上安装 Tsung

首先,你要安装(Erlang 需要的) EPEL 源。因此,在进行下一步之前要把它安装好。安装完后,继续安装你用来产生负载的每个节点需要的包。如果你还没有在节点之间建立无密码 SSH 密钥(passwordless SSH key),那么请建立之。

 yum -y install erlang perl perl-RRD-Simple.noarch perl-Log-Log4perl-RRDs.noarch gnuplot perl-Template-Toolkit firefox

从 Github 或者 Tsung 的官网上下载最新的 Tsung。

 wget http://tsung.erlang-projects.org/dist/tsung-1.4.2.tar.gz

解压并且编译。

tar zxfv  tsung-1.4.2.tar.gz
cd tsung-1.4.2
./configure && make && make install

把示例配置复制到 ~/.tsung 目录里。这是 Tsung 的配置文件和日志文件的存放地方。

cp  /usr/share/doc/tsung/examples/http_simple.xml /root/.tsung/tsung.xml

你可以根据你的需求去编辑这个配置文件,或者使用我的配置文件。经过大量的尝试以及失败后,我目前的配置文件在使用 7 个分布式节点时可以每秒产生 5 百万个 HTTP 请求。

<?xml version="1.0"?>
<!DOCTYPE tsung SYSTEM "/usr/share/tsung/tsung-1.0.dtd">
<tsung loglevel="notice" version="1.0">

<clients>
<client host="localhost" weight="1" cpu="10" maxusers="40000">
<ip value="192.168.122.2"/>
</client>
<client host="loadnode1" weight="1" cpu="9" maxusers="40000">
<ip value="192.168.122.2"/>
</client>
<client host="loadnode2" weight="1" maxusers="40000" cpu="8">
<ip value="192.168.122.3"/>
</client>
<client host="loadnode3" weight="1" maxusers="40000" cpu="9">
<ip value="192.168.122.21"/>
</client>
<client host="loadnode4" weight="1" maxusers="40000" cpu="9">
<ip value="192.168.122.11"/>
</client>
<client host="loadnode5" weight="1" maxusers="40000" cpu="9">
<ip value="192.168.122.12"/>
</client>
<client host="loadnode6" weight="1" maxusers="40000" cpu="9">
<ip value="192.168.122.13"/>
</client>
<client host="loadnode7" weight="1" maxusers="40000" cpu="9">
<ip value="192.168.122.14"/>
</client>
</clients>

<servers>
<server host="192.168.122.10" port="80" type="tcp"/>
</servers>

<load>
<arrivalphase phase="1" duration="10" unit="minute">
<users maxnumber="15000" arrivalrate="8" unit="second"/>
</arrivalphase>

<arrivalphase phase="2" duration="10" unit="minute">
<users maxnumber="15000" arrivalrate="8" unit="second"/>
</arrivalphase>

<arrivalphase phase="3" duration="30" unit="minute">
<users maxnumber="20000" arrivalrate="3" unit="second"/>
</arrivalphase>

</load>

<sessions>
<session probability="100" name="ab" type="ts_http">
<for from="1" to="10000000" var="i">
<request> <http url="/test.txt" method="GET" version="1.1"/> </request>
</for>
</session>
</sessions>
</tsung>

刚开始的时候有很多东西要理解,但你一旦理解了它们后就会变得很简单。

  • <client> 只是简单地指定了运行 Tsung 的主机。你可以指定 Tsung 使用的 IP 和 CPU 的最大数。你可以使用 maxusers 设置节点能够模拟的用户数量上限。每一个用户都会执行我们之后定义的操作。
  • <servers> 指定了你要测试的 HTTP 服务器。我们可以使用这个选项去测试一个 IP 集群,或者一个单一的服务器。
  • <load> 定义了我们的模拟用户将会在什么时候“到达”我们的网站。以及它们达到的有多快。
    •  <arrivalphase> 在持续了 10 分钟的第一个阶段里,以 每秒 8 个用户的速率到达了 15,000 个用户。
    • <arrivalphase phase=”1″ duration=”10″ unit=”minute”>
    • <users maxnumber=”15000″ arrivalrate=”8″ unit=”second”/>
    •  这里还有两个 arrivalphases,它们的用户都以同样的方式达到。
    •  这些 arrivalphases 一起组成了一个 <load>,它控制了我们可以每秒产生多少个请求。
  • <session> 这部分定义了一旦这些用户达到了你的网站,它们将会执行什么动作。
  • probability 允许你定义用户可能会做的随机事件。有时他们可能点击这里,有时他们可能点击那里。所有的Probability 加起来一定要等于 100% 。
  • 在上面的配置里,用户只做一件事,所以它的 probability 等于 100% 。
  • <for from=”1″ to=”10000000″ var=”i”> 这就是用户在 100% 的时间里做的事情。它们循环遍历 10,000,000 次并且 <request> 一个网页:/test.txt 。
  • 这个循环结构允许我们使用少量的用户连接去获取比较大的每秒请求数量。

一旦你已经很好地理解了它们,你就可以创建一个便利的别名,去快速观察 Tsung 报告。

vim ~/.bashrc
alias treport="/usr/lib/tsung/bin/tsung_stats.pl; firefox report.html"
source ~/.bashrc

然后启动 Tsung

[root@loadnode1 ~] tsung start
Starting Tsung
"Log directory is: /root/.tsung/log/20120421-1004"

结束后观察报告

cd /root/.tsung/log/20120421-1004
treport

使用 Tsung 去规划你的集群构造

现在我们拥有了一个足够强大的负载测试工具,我们可以规划余下的集群构造了:

1. 使用 Tsung 去测试一个单一的 HTTP 服务器。获取一个基本的基准。

2. 对 web 服务器进行调优,定期使用 Tsung 进行测试提高性能。

3. 对这些系统的 TCP 套接字进行调优,获取最佳的网络性能。再来一次,测试,测试,不停地测试。

4. 构造 LVS 集群,它包含了这些充分调优过的 web 服务器。

5. 使用 Tsung IP 集群对 LVS 进行压力测试。

在之后的两篇文章里,我将会向你展示如何使你的 web 服务器获取最高性能,以及怎样用 LVS 集群软件把它们整合起来。

from:http://www.techug.com/http-rank

压力测试工具Tsung安装和使用 http://blog.csdn.net/jimesum1/article/details/7847924