I am running a Debian server 7, after preforming load testing using Jmeter on my website. I noticed that MySQL was dying after 50 users, PHP was dying after 100+ users and Apache 2 dying after 200+ users. Now my question is what is the best way to restart these services if they are terminated or froze up?
Keel alive mysql, php and apache2
122 Views Asked by Tony Wael At
1
There are 1 best solutions below
Related Questions in PHP
- php Variable name must change in for loop
- register_shutdown_function is not getting called
- Query returning zero rows despite entries existing
- Retrieving *number* pages by page id
- Automatically closing tags in form input?
- How to resize images with PHP PARSE SDK
- how to send email from localhost using codeigniter?
- Mariadb max Error while sending QUERY packet PID
- Multiusers login redirect different page in php
- Imaginary folder when I use "DirectoryIterator" in PHP?
- CodeIgniter + XDebug: debug only working in the main controller, index() function
- PHP script timeout when I use sleep()
- posting javascript populated form to another php page
- AJAX PHP - Reload div after submit
- PHP : How can I check Array in array?
Related Questions in MYSQL
- MySQL Select Rank
- When dealing with databases, does adding a different table when we can use a simple hash a good thing?
- Push mysql database script to server using git
- Why does mysql stop using indexes when date ranges are added to the query?
- Google Maps API Re-size
- store numpy array in mysql
- Whats wrong with this query? Using ands
- MySQL-Auto increment
- show duplicate values subquery mysql
- Java Web Application Query Is Not Working
- microsoft odbc driver manager data source name not found and no default driver specified
- Setting foreign key in phpMyAdmin
- No responses from google places text search api
- Adding to MAMP database in SQL/PHP
- I want to remove certain parent- and child-divs in all my wordpress posts with php or some other script
Related Questions in APACHE2
- How to redirect an incoming request to specific serverName to different server in apache2?
- phpinfo() uses old version. What am I missing after "make install"?
- Why does open() fails every time with EAGAIN?
- Problems with mod_auth_token installation
- Where is that folder /etc/apache2/sites-available on mac os yosemite?
- Keel alive mysql, php and apache2
- Apache2- need multiple projects with same domain that use different path after domain name
- Create vhost-file from mysql via shell script
- How can I access localhost upload.php using apache2 proxy setting from my locally running AngularJS application
- Redirecting subdomain to its sub folder, Safari showing too many redirect occured trying to open
- Redirect http to https and then redirect it to subdomain's folder?
- OctoberCMS : Have to go to index.php
- Image Magick on OpenSUSE: Fatal error: Class 'Imagick' not found
- Vagrant synced folder issue on windows?
- How to process argument with dot in .htaccess?
Related Questions in DEBIAN
- Python Requests just got very slow, better alternative?
- Getting X Cursor in WebKit GTK2+ widget if run by startx
- How to increase PHP memory_limit in Debian Jessie?
- Unable to install RabbitMQ using puppet due to curl error
- phpinfo() uses old version. What am I missing after "make install"?
- How to make home directory the root with useradd on Debian
- Is Google using Debian and Apache?
- scanbd doesn't work unless I restart it from the command line
- debconf selections for phpmyadmin unattended installation with no webserver installed and no dbconfig-common
- How to run TeamSpeak3 server on boot?
- Install Subversion 1.7 on Debian jessie
- apache proxy doesn't work
- module.js 340 error Cannot find module 'bonescript'
- Rails, Sidekiq and systemd are on a debian 8 ship
- Custon headers not working on php 5.6 - apache 2.4, debian 8 jessie
Related Questions in KEEP-ALIVE
- Reusing connections in Django with Python Requests
- setKeepAliveTimeout is deprecated in iOS9
- How to implement Web-based Client Server Keepalive Reliably?
- Keel alive mysql, php and apache2
- How to prevent keep-alive in a HTTP 1.1 request?
- QTcpSocket Keep alive option does not work
- rabbitmq keepalive timeout error
- why between nginx/nginx upstream use http/1.0?
- spring websocket status:400 websocket connect keep-alive
- The server DISCONNECT and I receive LWT message?
- android is http.keepalive false necessary when using okhttp
- Skip Connection Interruptions (Site & BeautifulSoup)
- Some variables are blank when using cron to run a script
- PHP Session Keep Alive
- Keep-alive header clarification
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Restarting a service means killing all its current processes and start a new one. In the meantime you have lost/dropped all the requests from some legitimate users that will eventually see an http error or a timeout when connections are dropped.
I would ask myself, are you happy with 200+ users? Is mysql your bottleneck? Etc.. Use some sort of monitoring service like new relic and as a workaround just restart those services when alerts start coming in, either manually or automatically.
But if you want to improve your site performance deploy your service on a better infrastructure so it can scale up to bigger numbers or improve the code/app architecture used on your site, i.e. put some extra caching between mysql and your application.
Also It would be interesting to know how you have managed to test apache, mysql and php separately especially httpd vs php processes with a tool like JMeter that in my experience sure can test apache separately and mysql separately. But your php and apache scripts are really tightly bound together.