Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have an application hosted on AppHarbor that is visited a few times a day with a light load.
The performance experience is a SLOW first page load as the dormant worker process wakes up. Subsequent page loads are fast.
I want to reduce the amount of time for the initial load. Will buying additional instances solve this issue, or should I look towards a dedicated host
You app pool will be spun down after 20 minutes of inactivity, this is standard IIS behaviour.
To avoid this, you can upgrade from Canoe to either the Catamaran or Yacht plans. Web apps on those plan don't idle (adding a custom hostname, SSL or running more than one dyno on the Canoe plan will still give you an idling app).
You can also circumvent the idling by using services like Pingdom and StillAlive to generate requests for your site. But upgrading from Canoe is fairer to AppHarbor.
The way I do it, is have something like this running locally: https://github.com/haf/Requester
It just queries the web app every nth second and keeps it in memory. It's a hack, but it works and the problems go away when the app becomes more popular. ^^
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I have a droplet on Digital Ocean and it becomes really slow some times when I have 30-40+ users at the same time. I don't know if its the droplets capacity or my code I didn't optimise well, but it's starting to become annoying. Are there any tips to inscrease the speed of my droplet?
Here's my droplet configs:
What can I do? Should I transfer on another hosting service? Is there any configs or options I can edit or add to my droplet to increase my server's speed?
EDIT:
Sorry, I should've specified what is it my droplet is running!
I'm actually running a Laravel 5.8 app with a MySQL database. I did my own multi-tenants system so people can have their own version of my app (ex.: People can create leagues that will create a database for each league, and every leagues are independant).
I'm not familiar with all of that, but when I do the htop command on my server I get this, I believe there is one mysqld process for each league (database) on my web app.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I would like to test my web app under high load.
What I'd need to do is.
Load the page => click the button => fill the form => click the button.
I'd need to do this to simulate 5-10k page requests, which is expected to happen after we launch one service (based on previous years data as there's going to be some big pre-sale discount for only a couple of items)
What service or approach would be the most suitable to do this?
You can use services such as SoapUI or Loader.IO. Both are supposed to be free if I am not mistaken.
Gatling.io is another good tool you can use for this.
There is a number of free and open source load testing tools you can consider listed at http://www.opensourcetesting.org/category/testing-tools-overview/performance/?menu-page=overview
Given your requirement of 5-10k concurrent requests my expectation is that you need the tool which can be run in "clustered" mode as you might hit the resource limit of a single load generator so you can use several machines running the load testing tool so it can be done in distributed manner.
One more factor would be possibility to record and replay the scenario so you could just run your steps in browser and the load testing tool would capture the relevant requests so you will be able to replay them with increased number of users.
Check out Open Source Load Testing Tools: Which One Should You Use? for example evaluation and research. Once you stick to this or that tool you can ask questions regarding your scenario implementation using a specific StackOverflow tag.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I want to conduct online coding competitions. For that I am developing a website. I have a webpage to take the code from user. Once the user has finished his coding, on submitting I want to send that code to some compiler to check the code. And I can check with the test cases if its compiled without errors. Is there any online compilers available for that. I mean, Is there any site to send my_code, test_cases, programming_languages to that and get back the results? Or should I use system commands to do this process?
Compiling requires a fair amount of computation. You will have to consider how well your system will scale to user demand. Most online services would eventually charge a fee to cover their infrastructure costs (+ profit).
See ideone.com/sphere-engine
Depending on the scale, you may want to use system commands. I would suggest doing so until your project reach a certain maturity. You could also have a setup like Jenkins, were compilation work is dispatched to build nodes which can be added for increased demand.
Existing software like PC2 ask the hosts of the competition to provide the compilation server. However, the setup is local.
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 10 years ago.
Improve this question
We have a dedicated 2-server setup running magento EE v. 1.10. We are running nginx, php-fpm, memcache as the major modules. The configuration is based on a white paper that magento put out with a hosting company partner.
The server/site gets progressively slower as longer the server is online. After a fresh php-fpm restart, the performance is acceptable. However, as it progresses, time to first byte gets worse and worse. We've had sys admins here and at the hosting company with no solution. I guess the best way to find help is to ask: Has anyone experienced this problem? We don't believe the issue is related to not having enough server power or memory.
The first place that I would check would be your error logs. Super-sized logs combined with unaddressed (and therefore continually logged) errors can lead to significant load time increases.
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 11 years ago.
Improve this question
I've been developing a Silverlight-c# client-server game that has now gotten to the point that it should be hosted for a small amount of people can test it out. The problem is that I've never looked at windows hosting before an am thus a total noob. I'm looking for a place that allows me to run a c# command line program (the game server), and allows me to open non-standard ports for communication. Since this is only for testing, I'm going for min specs etc.
Just spin up an Amazon EC2 or Rackspace Cloud instance, easiest way by-far to do this.
If you want raw hosting as you described, Amazon cloud, as Paul said, is probably your best bet. However... given that you are doing a C#/Silverlight application, I would suggest that you highly consider Azure for your hosting, as it scales rather nicely and the free trial is a great way to test.
You will likely have to refactor aspects of your server to do this. But you would have had to do that anyway, since hosting of servers in a console is an unstable choice -- at a minimum you would have wanted to use a Windows Service for your game server if only for the auto-start option.