performance-testing

YourKit - The retained size of an object doesn't equal the retained size of all the objects referred by it

…衆ロ難τιáo~ 提交于 2019-12-21 15:07:06
问题 The retained size of an object doesn't equal the retained size of all the objects referred by it. Here is what is happening: Using YourKit to capture memory snapshot. click on an object & show instances by class type let's say the instance's retained memory is A bytes (600mb) expand and sum the retained size for the underlying instances let's say the sum is B (300mb) A >> B 回答1: Let me give you an example. First of all, you need to understand what retained size is. From the official

YourKit - The retained size of an object doesn't equal the retained size of all the objects referred by it

爷,独闯天下 提交于 2019-12-21 15:02:22
问题 The retained size of an object doesn't equal the retained size of all the objects referred by it. Here is what is happening: Using YourKit to capture memory snapshot. click on an object & show instances by class type let's say the instance's retained memory is A bytes (600mb) expand and sum the retained size for the underlying instances let's say the sum is B (300mb) A >> B 回答1: Let me give you an example. First of all, you need to understand what retained size is. From the official

Java Profiling in Continuous Integration

廉价感情. 提交于 2019-12-21 12:56:17
问题 Are there any Java profiling tools that integrate with CI servers like Jenkins? I've no idea if such things exist, but what would be splendid would be some kind of test framework that yielded results like YourKit Profiler's snapshots. These would be invoked by the CI server, and the results stored along with the build. The result being that one could see a history of performance changes in code units, to aid more holistic performance investigations at a system integration level. 回答1: Take a

Performance issue: “java.text.MessageFormat.format” vs “StringBuilder”

▼魔方 西西 提交于 2019-12-21 11:30:12
问题 I want to know in compare of MessageFormat or StringBuilder class. Let say an example i have a String. For performance wise which one is fast among: java.text.MessageFormat.format or StringBuilder("Test ").append("Hello ") ? String txt = java.text.MessageFormat.format("Test {0}"," Hello") String txt1= new StringBuilder("Test ").append("Hello ") I just want to know which one is use in case of best practice or performance wise 回答1: Try it yourself: long start = System.nanoTime(); String txt =

Can i set ramp up period 0 in JMeter? [closed]

人盡茶涼 提交于 2019-12-21 05:45:12
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . I am doing performance load testing in a web based application. I learnt from JMeter Tutorial that how can I set the Ramp Up period, eg: If 10 threads are used, and the ramp-up period is 100 seconds, then JMeter will take 100 seconds to get all 10 threads up and running. Each thread will start 10 (100/10)

how to clear JSESSIONID of each Thread(user) in Jmeter on demand

…衆ロ難τιáo~ 提交于 2019-12-21 04:46:50
问题 I want to clear Jmeter JsessionID variable at any time (on my demand). I know there is a check box option in Jmeter CookieManager named " Clear Cookie on each Iteration ". But it clears the session on each iteration while I want to clear it at any time in the iteration. How can i do that in Jmeter? 回答1: Currently you cannot simply , particularly if you want to clear one particular cookie. You should raise an enhancement request at JMeter Bugzilla giving precision on what you want to do. I

access the response from a web coded performance test

风格不统一 提交于 2019-12-21 02:26:14
问题 WebTestRequest request1 = new WebTestRequest((this.Context["Environment"].ToString() + "/IBWeb/DefaultSB.aspx")); request1.Headers.Add(new WebTestRequestHeader("Referer", (this.Context["Environment"].ToString() + "/IBWeb/"))); ExtractHiddenFields extractionRule1 = new ExtractHiddenFields(); extractionRule1.Required = true; extractionRule1.HtmlDecode = true; extractionRule1.ContextParameterName = "1"; request1.ExtractValues += new EventHandler<ExtractionEventArgs>(extractionRule1.Extract);

How do I calculate the number of concurrent users to use in a load test?

时间秒杀一切 提交于 2019-12-20 09:20:10
问题 We’ve come across this question fairly often at Load Impact, so I thought I’d add it to the Stack Overflow community to make it easier to find. How do I calculate the number of concurrent users (VUs) that I need to simulate during a load test, in order to stress my system with the same kind of traffic that it will normally see in the course of a month, week or day? 回答1: Running a load test requires that you specify how many concurrent users should be simulated during testing. In other words,

How to perform load testing for website using JMeter

青春壹個敷衍的年華 提交于 2019-12-20 08:40:40
问题 I want to create a script in JMeter that simulates e.g. 100 users accessing our site over a period of 3-4 minutes. We need to test whether our application can allow 25.000 users/day - that is 1.100 per hour. For that i have made this Jmeter test: and here is the result and here is the graph I want to know what this result is exactly telling us, if my test pass or fails, if yahoo.com (for which we have run this test for our example) can allow 25.000 users/day and if i am inputting my criteria

How do I install jmeter on a Mac?

假装没事ソ 提交于 2019-12-20 08:08:54
问题 We want to use JMeter. I've downloaded the production version as directed in the user manual at http://jmeter.apache.org/usermanual/get-started.html But how do I get started and install the software? I don't know java and I can't find any instructions on what I'm supposed to do with the download. I am on a Mac. How do I install the product as a usable program? 回答1: The easiest way to install it is using Homebrew: brew install jmeter Or if you need plugins also: brew install jmeter --with