LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-12-2007, 11:42 PM   #1
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Rep: Reputation: 22
virtual dedicated web server bottlenecks (CPU?)


Hey guys:

I've been working with Apache & MySQL for quite a while, but I've recently moved to a virtual dedicated server and I'm getting some bottlenecks. Support from my provider is not exactly satisfactory. They first said memory. Then I stopped a bunch of processes, and now they're saying bandwidth. I checked vmstat and found some interesting stuff.

Here's the setup:
CentOS
Apache2
MySQL 4.2ish
PHP5

I used top for a while but found nothing too bad. I got 256Mb of RAM down to 17Mb a few times, but no swapping. I had some rather large includes that didn't have to be included, so I cut those out. I also stopped some java crap, tomcat, and cpanel which also gave back like 30-40 MB.

Then they come back w/ the bandwidth (10Mb/s) story. I tried to monitor this, but iftop doesn't seem to be as intuitive as it should. Assuming that might be it, I capped dl speeds to 100kb/s. I don't have that many users, and I don't host that many large files to be honest.

Anyway, the problem persisted. So, I started browing, tailing the httpd access log, and running vmstat. Looks like cpu hoggage is the error [last field -- wait time]:

vmstate in 3 second increments
NORMAL
Code:
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 0  0 4384088  15488  17216 1026180    0    0     0     0    0  7002  1  0 99  0
 0  0 4384088  14976  16744 1034192    0    0     0     0    0  6558  0  0 100  0
 0  0 4384088  15496  16384 1035332    0    0     0     0    0  6920  1  0 99  0
 0  0 4384088  15056  14792 1037704    0    0     0     0    0  6738  0  0 100  0
 0  0 4384088  17416  14708 1038812    0    0     0     0    0  6328  0  0 100  0
 0  0 4384088  17080  13664 1041472    0    0     0     0    0  6713  0  0 100  0
 0  0 4384088  14728  12724 1043380    0    0     0     0    0  7204  0  0 100  0
 0  0 4384088  17416  12296 1046588    0    0     0     0    0  6927  1  0 99  1
 0  0 4384088  16256  11948 1046232    0    0     0     0    0  7215  0  0 100  0
 0  0 4384088  14584  11268 1050292    0    0     0     0    0  6426  0  0 100  0
 0  0 4384088  15616  11344 1054376    0    0     0     0    0  7217  2  0 96  2
 0  0 4384088  16032  11468 1049312    0    0     0     0    0  6656  1  0 99  0
 0  0 4384088  14680  11784 1059564    0    0     0     0    0  6388  0  0 100  0
SCREWED:
Code:
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 0  2 4384096  15488  23080 1029088    0    0     0     0    0  5224  0  0 76 24
 0  0 4384096  14544  24204 1031704    0    0     0     0    0 18289  1  0 96  3
 0  4 4384096  14824  24972 1030932    0    0     0     0    0 10714  0  0 87 13
 0  4 4384096  16336  24988 1031176    0    0     0     0    0  5202  0  0 49 51
 0  3 4384096  16584  25056 1030328    0    0     0     0    0  5334  0  0 51 49
 0  0 4384096  14600  27784 1042244    0    0     0     0    0 31894  2  0 87 11
 0  1 4384096  16200  29368 1023540    0    0     0     0    0 42547  0  0 80 20
 0  1 4384096  19872  27888 1014204    0    0     0     0    0  5818  0  0 75 25
 0  2 4384096  18656  27952 1015128    0    0     0     0    0  5389  0  0 67 33
 0  2 4384096  17296  28020 1015320    0    0     0     0    0  5460  1  0 49 50
 0  2 4384096  16664  28008 1007792    0    0     0     0    0  5133  0  0 50 50
 0  2 4384096  20656  27120 991248    0    0     0     0    0  6379  0  0 60 39
 0  3 4384096  16952  27496 971948    0    0     0     0    0  6560  0  0 60 40
 2  1 4384096  17424  25320 948384    0    0     0     0    0  8045  1  0 42 57
 0  3 4384096  17224  21904 939248    0    0     0     0    0 10412  2  0 28 70
 1  3 4384096  27480  22112 953168    0    0     0     0    0 11827  4  1 46 49
 4  0 4384096  20872  25312 980668    0    0     0     0    0 17213 12  1 29 57
 0  1 4384096  32456  27536 995156    0    0     0     0    0 11948 20  8 56 16
So, I think it's fair to say that it's the CPU. As before, this is a virtual dedicated server. I'm trying to find out if CPU usage is throttled like memory & bandwidth. In the case that it is, that still points to a problem of my own doing (or bad config on their side). In that case, what other tools can I use to figure out what the hell is going on? During the above example, /var/log/messages prints out nothing, and httpd.access.log nothing until the bottle neck finishes. Please don't tell me to get a fully dedicated server (I know that's a very likely option at this point) but I'd rather avoid the cost and for the love of God... the work in migrating.

There was an incident where the machine was unreachable (ssh or http). They had to power cycle it. They said it was due to "lack of memory" which sounded pretty lame. It's not happened again and I've been running the same stuff. Only time I've seen something like that happen would be something in a infinite loop, or some key component crashed.

Anyways, cheers

EDIT: This perhaps should've gone somewhere else? It was originally going to be Apache-centric, but I don't think that's the issue.

Last edited by GaijinPunch; 12-13-2007 at 12:54 AM.
 
Old 12-14-2007, 10:28 AM   #2
tedfordgif
Member
 
Registered: Dec 2003
Posts: 43

Rep: Reputation: 15
The wa field is IO wait time. It looks like an average 50% wait time for IO. That seems like bandwidth--the low bi/bo figures indicate it is not disk*. It is also informative that context switches (cs) double, and buffer allocations double as well, which fits with a bandwidth limit.

*Actually, I'm a little suspicious of the 0's in [sb]/[io] and in. Perhaps being in a virtual machine is messing those numbers up.

Here's a page with more info: http://www.bytemark.co.uk/page/Live/...al/vm_too_slow I would especially like to know the result of the fifth item on that page:
Quote:
5. Run dmesg and look for the dreaded __alloc_pages() : 0-order allocation failed (gfp=0×1d2/0) message – this is a sign that the kernel has hit its memory limit and has had to take drastic action to keep the system running.
This would fit with your ssh and http being unavailable that one time.

Which virtualization solution are you hosted in? (Xen, VMWare, etc.)
 
Old 12-14-2007, 10:57 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
IMHO it ain't CPU - it's disk. That iowait% is the percentage of time the CPU was idle, but I/O was outstanding. Probably all your I/O now goes to one "container" - maybe on the same (real) disk as other clients.
If you were short on CPU, when your (virtualized) client got dispatched, it'd go nuts trying to catch up - the "using" numbers don't show that.
Try installing the sysstat package - for sar and iostat.

In the interim, maybe add the "-d" switch to your vmstat runs.
 
Old 12-18-2007, 06:30 AM   #4
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Original Poster
Rep: Reputation: 22
Hey guys, thanks for the replies. Sorry I'm late getting back.
I killed some crappy processes, freeing up some 120MB of RAM, and it's still persisting. I have noticed the last few times that the bottlenecks happened, there were 50 httpd processes running. I have dropped MaxClients down to 40 (w/ 25 threads per process) but it still happens.

Quote:
Run dmesg and look for the dreaded __alloc_pages() : 0-order allocation failed (gfp=0×1d2/0) message
I guess due to the virtuality, I get no dmesg.


Quote:
Which virtualization solution are you hosted in? (Xen, VMWare, etc.)
Not sure. I would have to check. It's whatever GoDaddy offers. I'm thinking of just going dedicated. It seems I get 400+ visitors (that's unique visitors) daily, and that's not counting webcrawlers (well, most of them anyway). I'm not sure if that warrants my own server or not. I guess that would depend on how much each person does, which I should probably log a bit better. Some of the pages load other pages (from other sites) and parse them... I assume that doesn't help too much either. I could probably smarten up the code a bit, but something tells me it's not going to make a ton of difference.

Quote:
Probably all your I/O now goes to one "container" - maybe on the same (real) disk as other clients.
In the interim, maybe add the "-d" switch to your vmstat runs.

More frownies:
Your kernel doesn't support diskstat (2.5.70 or above required)

Another point for going fully dedicated?

Last edited by GaijinPunch; 12-18-2007 at 06:32 AM.
 
Old 12-18-2007, 06:41 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Erk - a 2.4 kernel !!!
I can't help, haven't seen one in years.

What does uptime (or top) show for the load averages ???.
 
Old 12-18-2007, 07:03 AM   #6
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Original Poster
Rep: Reputation: 22
Here's an update.
-Web server was crucified
-SSH okay
-top not bad (below)
-vmstat (below)
-apache access log (chugging along.. showing almost no activity likely due to stall)
-apache processes (40: max)

TOP
Code:
top - 21:55:06 up 4 days, 6 min,  4 users,  load average: 0.25, 0.19, 0.12
Tasks:  86 total,   1 running,  85 sleeping,   0 stopped,   0 zombie
Cpu(s):  2.3% us,  0.8% sy,  0.0% ni, 96.8% id,  0.0% wa,  0.0% hi,  0.0% si
Mem:   8145020k total,  8089500k used,    55520k free,    59312k buffers
Swap: 12586916k total,  4661852k used,  7925064k free,  1160936k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
21660 apache    15   0 28236  11m 4860 S    1  0.1   0:26.00 httpd
22274 apache    15   0 27588 9972 3980 S    1  0.1   0:29.92 httpd
20065 apache    15   0 28516  10m 4260 S    1  0.1   0:24.09 httpd
21677 apache    15   0 28568  11m 4792 S    1  0.1   0:24.13 httpd
 1655 apache    15   0 28004  10m 4772 S    1  0.1   0:20.78 httpd
18205 apache    16   0 28592  11m 4772 S    1  0.1   0:19.69 httpd
26164 apache    15   0 28444  10m 4264 S    1  0.1   0:18.69 httpd
 3510 apache    15   0 27748  10m 4300 S    1  0.1   0:17.37 httpd
 5734 apache    15   0 27420 9736 3964 S    1  0.1   0:16.19 httpd
19853 apache    15   0 27540 9784 3968 S    1  0.1   0:14.26 httpd
21799 apache    16   0 27848  10m 4780 S    1  0.1   0:09.74 httpd
13585 apache    15   0 27968  10m 4728 S    1  0.1   0:05.36 httpd
 1591 apache    15   0 27888  10m 4172 S    1  0.1   0:03.77 httpd
24099 apache    15   0 28516  11m 4748 S    0  0.1   0:29.09 httpd
27649 apache    16   0 28468  10m 4252 S    0  0.1   0:28.81 httpd
29786 apache    15   0 27924  10m 4320 S    0  0.1   0:28.46 httpd
13979 apache    15   0 27732  10m 4232 S    0  0.1   0:24.67 httpd
 3597 apache    15   0 28152  11m 4832 S    0  0.1   0:18.53 httpd
 3615 apache    15   0 28032  10m 4792 S    0  0.1   0:19.82 httpd
 5737 apache    15   0 28040  10m 4688 S    0  0.1   0:14.81 httpd
 9753 apache    15   0 28076  10m 4696 S    0  0.1   0:14.86 httpd
 9755 apache    15   0 27464 9840 3972 S    0  0.1   0:15.24 httpd
22212 apache    15   0 27832  10m 4816 S    0  0.1   0:12.21 httpd
 1543 apache    15   0 27536 9868 3960 S    0  0.1   0:12.03 httpd
 1561 apache    15   0 27308 9596 3892 S    0  0.1   0:11.99 httpd
 9552 apache    15   0 28432  11m 4880 S    0  0.1   0:09.86 httpd
10055 apache    15   0 27684  10m 4604 S    0  0.1   0:10.64 httpd
11612 apache    15   0 28720  11m 4952 S    0  0.1   0:07.73 httpd
11957 apache    15   0 27552 9944 3992 S    0  0.1   0:09.69 httpd
18197 apache    15   0 27852  10m 4892 S    0  0.1   0:08.06 httpd
 3558 apache    15   0 27580 9932 3980 S    0  0.1   0:05.24 httpd
 7184 apache    15   0 27864  10m 4212 S    0  0.1   0:07.33 httpd
 7766 apache    15   0 27580 9.9m 4176 S    0  0.1   0:06.08 httpd
16366 apache    15   0 28648  11m 4852 S    0  0.1   0:04.53 httpd
16376 apache    15   0 27728  10m 4688 S    0  0.1   0:03.89 httpd
21636 root      16   0  1896 1020  796 R    0  0.0   0:00.65 top
vmstat:
Code:
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 0  0 4661856  60064  54036 1154040    0    0     0     0    0    14  2  0 98  1
 1  0 4661856  56968  54268 1154848    0    0     0     0    0  6572  3  1 97  0
 0  0 4661856  55552  54500 1156956    0    0     0     0    0  7789  3  1 95  1
 0  0 4661856  72928  54644 1157568    0    0     0     0    0  6990  2  1 97  0
 0  0 4661856  67760  54696 1158036    0    0     0     0    0  6390  3  1 96  0
 0  0 4661856  71016  54748 1158216    0    0     0     0    0  6360  3  1 97  0
 0  0 4661856  63488  54932 1165572    0    0     0     0    0  7525  3  1 97  0
 2  0 4661856  51416  55556 1169888    0    0     0     0    0  7532  3  1 94  2
 0  0 4661856  40848  55668 1189276    0    0     0     0    0  7138  3  1 96  0
 0  0 4661856  38096  55904 1190080    0    0     0     0    0  7018  3  1 96  0
 0  0 4661856  35856  56068 1190956    0    0     0     0    0  7060  2  1 97  0
 0  0 4661856  38632  56296 1191508    0    0     0     0    0  6762  3  1 97  0
 0  0 4661856  43736  56324 1192000    0    0     0     0    0  7007  2  1 97  0
 1  0 4661856  43088  56364 1192220    0    0     0     0    0  6469  2  1 97  0
 0  0 4661856  39016  56404 1192700    0    0     0     0    0  7321  2  1 97  0
 0  0 4661856  36200  57116 1193288    0    0     0     0    0  7027  3  1 97  0
 1  0 4661856  36816  57140 1194304    0    0     0     0    0  9702  3  1 97  0
 0  0 4661856  38088  57232 1194732    0    0     0     0    0  6599  2  1 97  0
 0  0 4661856  36720  57252 1194556    0    0     0     0    0  6664  2  1 97  0
 1  0 4661856  36176  57396 1194968    0    0     0     0    0  6736  2  1 97  0
 0  0 4661856  32192  57468 1195676    0    0     0     0    0  6970  2  1 97  0
 0  0 4661856  36488  57480 1195660    0    0     0     0    0  6497  3  1 97  0
 0  0 4661856  29760  57500 1195640    0    0     0     0    0  6323  2  1 97  0
 0  0 4661856  33456  57544 1196116    0    0     0     0    0  6743  2  1 97  0
 0  0 4661856  33520  57576 1196344    0    0     0     0    0  6434  3  1 97  0
 0  0 4661856  38152  57612 1196308    0    0     0     0    0  6215  2  1 97  0
 0  0 4661856  37840  57616 1196564    0    0     0     0    0  6117  2  1 97  0
 1  0 4661856  35712  57948 1196720    0    0     0     0    0  6795  2  1 97  0
 0  0 4661856  39736  57996 1196672    0    0     0     0    0  6515  2  1 97  0
 0  0 4661856  19872  58292 1207036    0    0     0     0    0  6908  2  1 97  0
 0  0 4661856  24200  58316 1207012    0    0     0     0    0  6713  2  1 97  0
 0  0 4661856  22848  58384 1207464    0    0     0     0    0  6878  3  1 97  0
 0  0 4661852  16848  58252 1205792    0    0     0     0    0  6622  2  1 97  0
 0  0 4661852  22600  58300 1205744    0    0     0     0    0  7218  3  1 96  0
 0  0 4661852  19728  58500 1206064    0    0     0     0    0  7032  2  1 97  0
 0  0 4661852  14768  58516 1206308    0    0     0     0    0  7370  2  1 97  0
 0  0 4661852  22288  58356 1203868    0    0     0     0    0  6478  2  1 97  0
 0  0 4661852  22472  58360 1203864    0    0     0     0    0  6621  2  1 97  0
 0  0 4661852  16304  58496 1203988    0    0     0     0    0  6497  2  1 97  0
 0  0 4661852  22232  58528 1203956    0    0     0     0    0  6255  3  1 97  0
procs -----------memory---------- ---swap-- -----io---- --system-- ----cpu----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in    cs us sy id wa
 1  0 4661852  24584  58452 1200392    0    0     0     0    0  6686  2  1 97  0
 0  0 4661852  23408  58464 1200640    0    0     0     0    0  6499  2  1 97  0
 0  0 4661852  20816  58588 1200776    0    0     0     0    0  6360  2  1 97  0
 0  0 4661852  19480  58516 1195128    0    0     0     0    0  7159  3  1 97  0
 0  0 4661852  27488  58616 1195028    0    0     0     0    0  6519  3  1 97  0
 0  0 4661852  26696  58652 1196292    0    0     0     0    0  6630  2  1 97  0
 1  0 4661852  34896  58728 1189716    0    0     0     0    0  6734  3  1 97  0
 0  0 4661852  33016  59148 1189816    0    0     0     0    0  7527  2  1 97  0
 0  0 4661852  33128  59320 1189904    0    0     0     0    0  6407  2  1 97  0
 0  1 4661852  28584  59336 1189888    0    0     0     0    0  6635  2  1 81 16
 0  1 4661852  26152  59380 1190104    0    0     0     0    0  6776  2  1 73 24
 0  0 4661852  25752  59608 1191956    0    0     0     0    0  7187  3  1 95  2
 0  0 4661852  26104  59636 1191928    0    0     0     0    0  6175  3  1 97  0
 0  0 4661852  25976  59644 1191920    0    0     0     0    0  6456  3  1 97  0
 0  0 4661852  22776  59748 1194416    0    0     0     0    0  6487  3  1 97  0
 1  0 4661852  20800  59816 1194608    0    0     0     0    0  6730  2  1 97  0
 0  0 4661852  20136  60000 1195464    0    0     0     0    0  6456  3  1 97  0
 0  0 4661852  16528  59968 1193676    0    0     0     0    0  7116  2  1 97  0
 0  0 4661852  41320  59112 1161136    0    0     0     0    0  7417  2  1 98  0
 0  0 4661852  56808  59120 1161128    0    0     0     0    0  6536  2  1 97  0
 0  0 4661852  60664  59424 1163424    0    0     0     0    0  7184  2  1 97  0
 1  0 4661852  62568  59792 1164096    0    0     0     0    0  7505  2  1 97  0
 0  0 4661852  57544  59884 1164264    0    0     0     0    0  6850  2  1 97  0
 0  0 4661852  55480  59952 1164976    0    0     0     0    0  6788  3  1 97  0
 0  0 4661852  54752  60052 1165396    0    0     0     0    0  6728  2  1 97  0
 0  0 4661852  56192  60128 1165840    0    0     0     0    0  6368  2  1 97  0
 0  0 4661852  51492  60136 1165832    0    0     0     0    0  6648  2  1 97  0
 0  0 4661852  57648  60140 1166088    0    0     0     0    0  6266  3  1 97  0
 0  0 4661852  62672  60328 1166160    0    0     0     0    0  6664  3  1 97  0
 0  0 4661852  53576  60372 1167868    0    0     0     0    0  7077  2  1 97  0
 1  0 4661852  52984  60392 1167848    0    0     0     0    0  6431  2  1 97  0
 1  0 4661852  50800  60452 1167788    0    0     0     0    0  7130  2  1 97  0
 1  0 4661852  53328  60492 1168008    0    0     0     0    0  6752  2  1 97  0
 0  0 4661852  53880  60516 1167984    0    0     0     0    0  6446  2  1 97  0
 0  0 4661852  53136  60568 1168192    0    0     0     0    0  6708  2  1 97  0
In this instance, I had to restart apache. Once I did, I had many connections, and only one httpd process.

The problem with iftop is I can only see as many connections as can fit in my terminal. Anyone know of a better network logging tool? One that can tell me a bit of historical data (max connections hit, when, what port, etc)?
 
Old 12-18-2007, 07:05 AM   #7
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Original Poster
Rep: Reputation: 22
Quote:
Erk - a 2.4 kernel !!!
I can't help, haven't seen one in years.

What does uptime (or top) show for the load averages ???.
Yeah, I've not seen one in ages either. Haha.

I pasted top above. uptime shows a pretty small load
Quote:
22:04:03 up 4 days, 15 min, 4 users, load average: 0.04, 0.13, 0.12
I'm going to power cycle in a minute. I borked up the email server somehow and I'm not paying $75 per 30 minutes for some nimrod that knows less than me to tell me how to fix it.
 
Old 12-18-2007, 03:57 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,153

Rep: Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125Reputation: 4125
Seems to me you need to be looking at some "sar" output - do you have sysstat installed and active ???.
Not sure what data you get in 2.4, but you need to be able to correlate problem time and data.

May not be a lot of help if it's an (internal) Apache issue, but at least you'll have plenty of data to check.
 
Old 12-18-2007, 05:32 PM   #9
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Original Poster
Rep: Reputation: 22
I will check those.
In the meantime, I installed a mod that will limit connections per IP. I noticed yesterday that some ass clown was either slurping the entire site, or just downloading the few files I have with as many connections as he could. This of course, doesn't help the situation. I will continue to watch.

EDIT: That mod doesn't seem to be working. The same guy is pounding my site. I need a mod that will beat the piss out of someone based on IP.

Last edited by GaijinPunch; 12-18-2007 at 05:51 PM.
 
Old 12-18-2007, 05:51 PM   #10
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
Yeah I would say that the guy who was creating a ton of connections was probably the problem with the bottlenecking. I had a similar issue with my own server testing out proxy stuff I had it open on a non standard port for just a short while none the less after only a few min of being online i had people using it to browse the internet and slow down my own requests to the server.
 
Old 12-18-2007, 06:18 PM   #11
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,369

Rep: Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753Reputation: 2753
Just FYI, there's no MySQL 4.2; see http://dev.mysql.com/doc/
 
Old 12-18-2007, 07:24 PM   #12
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Original Poster
Rep: Reputation: 22
Quote:
Yeah I would say that the guy who was creating a ton of connections was probably the problem with the bottlenecking.
I got the mod to work it seems. However, it seems he's now connecting a maximum of 3 times per connection. whois show's they're from the same company. I banned the entire range. Let's see what disaster he comes back w/ now.

Here's the offending IPs:
Code:
199.93.33.124
199.93.44.124
205.128.84.124
205.128.79.124

Here's what whois returns on Level 3
Code:
OrgName:    Level 3 Communications, Inc.
OrgID:      LVLT
Address:    1025 Eldorado Blvd.
City:       Broomfield
StateProv:  CO
PostalCode: 80021
Country:    US

NetRange:   199.92.0.0 - 199.95.255.255
CIDR:       199.92.0.0/14
NetName:    LVLT-ORG-199-92
NetHandle:  NET-199-92-0-0-1
Parent:     NET-199-0-0-0-0
NetType:    Direct Allocation
NameServer: NS1.LEVEL3.NET
NameServer: NS2.LEVEL3.NET
Comment:
RegDate:
Updated:    2004-06-10

OrgAbuseHandle: APL8-ARIN
OrgAbuseName:   Abuse POC LVLT
OrgAbusePhone:  +1-877-453-8353
OrgAbuseEmail:  abuse@level3.com

OrgTechHandle: ARINC4-ARIN
OrgTechName:   ARIN Contact
OrgTechPhone:  +1-800-436-8489
OrgTechEmail:  arin-contact@genuity.com

OrgTechHandle: TPL1-ARIN
OrgTechName:   Tech POC LVLT
OrgTechPhone:  +1-877-453-8353
OrgTechEmail:  ipaddressing@level3.com

# ARIN WHOIS database, last updated 2007-12-17 19:10
# Enter ? for additional hints on searching ARIN's WHOIS database.
[root@ip-208-109-211-60 mod_limitipconn-0.22]# whois 199.93.44.124
[Querying whois.arin.net]
[whois.arin.net]

OrgName:    Level 3 Communications, Inc.
OrgID:      LVLT
Address:    1025 Eldorado Blvd.
City:       Broomfield
StateProv:  CO
PostalCode: 80021
Country:    US

NetRange:   199.92.0.0 - 199.95.255.255
CIDR:       199.92.0.0/14
NetName:    LVLT-ORG-199-92
NetHandle:  NET-199-92-0-0-1
Parent:     NET-199-0-0-0-0
NetType:    Direct Allocation
NameServer: NS1.LEVEL3.NET
NameServer: NS2.LEVEL3.NET
Comment:
RegDate:
Updated:    2004-06-10

OrgAbuseHandle: APL8-ARIN
OrgAbuseName:   Abuse POC LVLT
OrgAbusePhone:  +1-877-453-8353
OrgAbuseEmail:  abuse@level3.com

OrgTechHandle: ARINC4-ARIN
OrgTechName:   ARIN Contact
OrgTechPhone:  +1-800-436-8489
OrgTechEmail:  arin-contact@genuity.com

OrgTechHandle: TPL1-ARIN
OrgTechName:   Tech POC LVLT
OrgTechPhone:  +1-877-453-8353
OrgTechEmail:  ipaddressing@level3.com


Quote:
Just FYI, there's no MySQL 4.2;
Doh... meant 4.1.2.

Last edited by GaijinPunch; 12-18-2007 at 07:29 PM.
 
Old 12-18-2007, 11:56 PM   #13
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Original Poster
Rep: Reputation: 22
Hmm....
when I use iftop, it shows that the offending site is connecting on *THEIR* http port, and my port 53667, 54037 etc. Wouldn't that seem like I'm making the connection? I use CURL to get some pages... but not that many. Hmm....

-GP

Last edited by GaijinPunch; 12-19-2007 at 12:19 AM.
 
Old 12-19-2007, 12:19 AM   #14
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 38
Im sorry that I don't know more about this stuff, however, I had problems with what I thought was my isp. My internet connection upload and download had greatly slowed.
I powercycled my router and all worked great again.

okos
 
Old 01-29-2008, 05:41 AM   #15
GaijinPunch
Member
 
Registered: Aug 2003
Location: Tokyo, Japan
Distribution: Gentoo
Posts: 130

Original Poster
Rep: Reputation: 22
For anyone following this, I'm still stuck on this problem. I look at iftop, but it really doesn't tell me much other than I have a lot of connections. However, when it bottlenecks, that number gets cut down to 10 or so (hardly enough to pound the server).

I'm told I only have 256MB, which is the problem (according to my provider) but I've never seen the machine swap.

Can anyone else think of some other tools I should look at? Maybe I've got some basic apache configuration cocked up. Is there a nice guide that tells me what type of machine I should be using for the amount of traffic I get? I know it depends on a lot of things, but still.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I need instructions on installing GD2 Library on Linux Virtual Dedicated Server LCD-NYC Linux - Software 2 02-16-2007 05:05 AM
LXer: The Planet Selects Penguin Computing Hardware for Dedicated Web Hosting Environment for Fastest, Most Powerful Server Offering Ever LXer Syndicated Linux News 0 04-09-2006 04:54 AM
Backup RedHat9 Virtual Dedicated Server malaka56 Linux - Software 1 01-04-2006 11:49 PM
i have taken a domain name. how to set it up on my virtual dedicated server phpsharma Linux - General 4 03-15-2005 07:30 PM
Distro recommendations for Dedicated Router + Firewall + Print Server + Intranet Web Netfreak Linux - Newbie 1 11-18-2004 11:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration