stress-testing

How to tune a Ruby on Rails application running on Heroku which uses production level Heroku Postgres?

橙三吉。 提交于 2019-12-03 21:31:09
The Company I work for decided on moving their entire stack to Heroku. The main motivation was it's ease of use: No sysAdmin, no cry. But I still have some questions about it... I'm making some load and stress tests on both application platform and Postgres service. I'm using blitz as an addon of Heroku. I attack on the site with number of users between 1 to 250. There are some very interesting results I got and I need help on evaluating them. The Test Stack: Application specifications It hasn't anything that much special at all. Rails 4.0.4 Unicorn database.yml set up to connect to Heroku

Why does SHA1.ComputeHash fail under high load with many threads?

三世轮回 提交于 2019-12-03 12:33:28
I'm seeing an issue with some code I maintain. The code below has a private static SHA1 member (which is an IDisposable but since it's static , it should never get finalized). However, under stress this code throws an exception that suggests it has been closed: Caught exception. Safe handle has been closed" Stack trace: Call stack where exception was thrown at System.Runtime.InteropServices.SafeHandle.DangerousAddRef(Boolean& success) at System.Security.Cryptography.Utils.HashData(SafeHashHandle hHash, Byte[] data, Int32 cbData, Int32 ibStart, Int32 cbSize) at System.Security.Cryptography

How to set up a load/stress test for a web site? [closed]

烂漫一生 提交于 2019-12-03 09:19:55
问题 Closed . This question is opinion-based. It is not currently accepting answers. Want to improve this question? Update the question so it can be answered with facts and citations by editing this post. Closed 6 years ago . I've been tasked with stress/load testing our company web site out of the blue and know nothing about doing so. Every search I make on google for "how to load test a web site" just comes back with various companies and software to physically do the load testing. For now I'm

HashedWheelTimer vs ScheduledThreadPoolExecutor for higher performance

。_饼干妹妹 提交于 2019-12-03 06:58:33
I'm figuring what a timer implementation to use if you need to schedule tons of (non blocking) tasks as fast as possible inside jvm on one machine. I've studied ScheduledThreadPoolExecutor and HashedWheelTimer sources (+wheel timer general docs) and here are basic differences (N - number of all outstanding scheduled tasks so far, C - wheel size): ScheduledThreadPoolExecutor O(log N) for adding new task O(1) per each timer tick (but tick per each task, so N overall) O(log N) cancelling the task lock per each tick/task HashedWheelTimer O(1) adding new task O(m) per each timer tick (m ~ N/C where

Best way to stress test a rails web app? [closed]

风格不统一 提交于 2019-12-03 03:41:58
问题 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 6 years ago . Are there any good (preferably free) tools out there? Can they give accurate estimates that reflect production results when the app goes live? 回答1: This is definitely not a free solution, but webmetrics will get the job done. (As well as any website monitoring company in general). They give thorough reports on

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

試著忘記壹切 提交于 2019-12-02 18:30:08
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? Running a load test requires that you specify how many concurrent users should be simulated during testing. In other words, how many simulated users will be active, loading things or interacting with your site/app at the same time.

Load Testing and Benchmarking With siege vs wrk

∥☆過路亽.° 提交于 2019-12-02 15:18:12
I have been looking around for tools that can help me to do load testing and benchmarking. I found couples like: https://github.com/wg/wrk , http://www.joedog.org/siege-home/ , https://github.com/rakyll/boom . I'm wondering if anyone has any experience with these tools and have any feedback pros vs cons of these tools. My load stress will include different test cases using DELETE, PUT, GET, POST... headers Thanks I've used wrk and siege, siege is a really easy to use tool, but I'm not sure if you can test DELETE or PUT with siege. Wrk can use provided lua script to generate requests, so DELETE

Way to use locust.io by supplying user list

自古美人都是妖i 提交于 2019-12-02 15:12:29
I need to stress-test a system and http://locust.io seems like the best way to go about this. However, it looks like it is set up to use the same user every time. I need each spawn to log in as a different user. How do I go about setting that up? Alternatively, is there another system that would be good to use? Locust author here. By default, each HttpLocust user instance has an HTTP client that has it's own separate session . Locust doesn't have any feature for providing a list of user credentials or similar. However, your load testing scripts are just python code, and luckily it's trivial to

Stresstest Memory on Android

旧巷老猫 提交于 2019-12-02 07:31:14
Is it possible to stresstest an Android system to check what happens if available memory decreases (and therefor which applications are killed, ...). I currently have a testing application that periodically allocates 10MB in a vector. But an OutOfMemory exception is thrown reaching 500MB. But the system under test was not influenced sufficiently. I need to aquire even more memory. Are there any known libraries/programs to use or is there any other method that let an application use more memory than 500MB. Add: I'm already using android:largeHeap="true" in my manifest. Other than rooting the

Stresstest Memory on Android

时光总嘲笑我的痴心妄想 提交于 2019-12-01 12:49:45
问题 Is it possible to stresstest an Android system to check what happens if available memory decreases (and therefor which applications are killed, ...). I currently have a testing application that periodically allocates 10MB in a vector. But an OutOfMemory exception is thrown reaching 500MB. But the system under test was not influenced sufficiently. I need to aquire even more memory. Are there any known libraries/programs to use or is there any other method that let an application use more