Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i ran a simple mysqlslap today about 2 and a half hours ago now my server wont respond to a simple q command also it doesn't seem to be responding to a control c command as well. however my website that is on same sever responds to requests. however my web-admin tool does not but i assume this is because it uses Linux to authenticate and Linux probably does not have any cpu time to give to it to authenticate.also whene i try to log in to my website i get a :
Bad Request
Your browser sent a request that this server could not understand.
the logon process uses mysql.
i thinking i probably have caused a denial of service on the system.
my top command output seems to be frozen with this at the top of the list
22296 user 20 0 994m 51m 92 S 2 20.6 4:03.48 mysqlslap
836 user 20 0 219m 9448 288 S 1 3.7 13:44.66 mysqld
33 user 20 0 0 0 0 D 1 0.0 0:36.76 kswapd0
23122 user 20 0 17304 5052 1152 D 0 2.0 0:03.22 monitor.pl
949 user 20 0 47188 616 356 S 0 0.2 0:22.33 postgres
23369 user 20 0 14156 3952 952 D 0 1.5 0:00.16 perl
23361 user 20 0 14156 4036 940 D 0 1.6 0:00.15 perl
23223 user 20 0 12316 3568 1028 D 0 1.4 0:01.92 monitor.pl
23257 user 20 0 11660 4016 968 D 0 1.6 0:01.63 monitor.pl
23265 user 20 0 15624 2464 716 D 0 1.0 0:01.36 perl
23365 user 20 0 11264 6260 1368 D 0 2.4 0:00.29 monitor.pl
21 user 20 0 0 0 0 S 0 0.0 0:24.66 kblockd/0
22 user 20 0 0 0 0 S 0 0.0 0:25.01 kblockd/1
22776 user 20 0 2620 544 316 R 0 0.2 0:07.29 top
23351 user 20 0 15212 6212 928 D 0 2.4 0:00.43 perl
23367 user 20 0 13884 2116 736 D 0 0.8 0:00.04 perl
23386 user 20 0 14016 2196 868 D 0 0.9 0:00.03 perl
947 user 20 0 47052 40 0 S 0 0.0 0:40.53 postgres
23310 user 20 0 11264 3348 1104 S 0 1.3 0:00.79 monitor.pl
23339 user 20 0 11264 5764 1320 S 0 2.2 0:00.52 monitor.pl
23370 user 20 0 13884 2240 736 D 0 0.9 0:00.04 perl
23371 user 20 0 13884 2224 736 D 0 0.9 0:00.04 perl
23373 user 20 0 13884 1968 696 D 0 0.8 0:00.04 perl
23374 user 20 0 13884 2380 736 D 0 0.9 0:00.04 perl
23388 user 20 0 2628 764 572 D 0 0.3 0:00.02 cron
if anyone could help with maby explain this or a way to fix it with out having to reboot my server i have both the windows open for top and the script that ran the mysqlslap
yes this is on the production server.should note that the load test is at the last 2 test which are testing 4 times our expected load. OK looks like the test just failed it came back with
test just failed and i had a safe guard in the script that after each test it would sleep for 5 minutes so gave me a chance to end the process. can you maby explain why so many processes went in to a D state. also is there a way to clear the virtual memory seems theirs still alot in it
Without testing this myself, I cant say why your processes started sleeping.
I will say this though: In the future, -do not- run a load test on a production server
If you need to do something like that, you need to run it on a development version far, far away from your production environment. Even if that means running a Virtual Machine.
we ran this on development server already and then was asked to test the load on production to make sure it could still handle the load after the changes where implemented even against all advice we had given theme. normally i would never ever run a load like that on production but higher ups had asked for it so.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.