Gossamer Forum
Home : Products : Gossamer Links : Discussions :

((NEED HELP)) Page.cgi overloading the server..

Quote Reply
((NEED HELP)) Page.cgi overloading the server..
Hello

for the last few days Page.cgi have been overloading the server and causing it to go down..

Below is a ps aux output,
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 8978 0.0 0.0 1300 0 ? SW Jul15 0:00 [klogd]
root 9019 0.0 0.0 5488 0 ? SW Jul15 0:00 [snmpd]
root 9035 0.0 0.0 2636 172 ? S Jul15 1:09 /usr/sbin/sshd
root 9054 0.0 0.0 2572 0 ? SW Jul15 0:00 [sshd]
root 9085 0.0 0.0 2128 0 ? SW Jul15 0:07 [xinetd]
nobody 9359 0.0 0.0 6476 0 ? SW< Jul15 0:00 [ocwhttpd]
nobody 9360 0.0 0.0 6504 0 ? SW< Jul15 0:00 [ocwhttpd]
nobody 9361 0.0 0.0 6504 0 ? SW< Jul15 0:00 [ocwhttpd]
nobody 9362 0.0 0.0 6524 0 ? SW< Jul15 0:00 [ocwhttpd]
nobody 9363 0.0 0.0 6476 0 ? SW< Jul15 0:00 [ocwhttpd]
nobody 27436 0.0 0.0 6300 0 ? SW< Jul22 0:00 [ocwhttpd]
root 27442 0.0 0.0 27580 0 ? SW< Jul22 0:00 [ensim-python]
root 27443 0.0 0.0 27580 0 ? SW< Jul22 0:00 [ensim-python]
root 27444 0.0 0.0 27580 0 ? SW< Jul22 0:00 [ensim-python]
root 27445 0.0 0.0 27580 0 ? SW< Jul22 0:00 [ensim-python]
root 27446 0.0 0.0 27580 0 ? SW< Jul22 0:00 [ensim-python]
nobody 27537 0.0 0.0 6540 0 ? SW< Jul22 0:00 [ocwhttpd]
nobody 27616 0.0 0.0 6496 0 ? SW< Jul22 0:00 [ocwhttpd]
nobody 27617 0.0 0.0 6300 0 ? SW< Jul22 0:00 [ocwhttpd]
nobody 27746 0.0 0.0 6476 0 ? SW< Jul22 0:00 [ocwhttpd]
root 7563 0.0 0.0 1916 0 ? SW Jul26 0:00 [safe_mysqld]
mysql 7588 0.0 0.0 47556 0 ? SWN Jul26 0:13 [mysqld]
mysql 7590 0.0 0.0 0 0 ? ZN Jul26 0:19 [mysqld <defunct>]
mysql 7591 0.0 0.0 47556 0 ? SWN Jul26 0:01 [mysqld]
mysql 7592 0.0 0.0 47556 0 ? SWN Jul26 0:00 [mysqld]
mysql 7961 0.0 0.0 47556 0 ? SWN Jul26 0:00 [mysqld]
mysql 7962 0.0 0.0 47556 0 ? SWN Jul26 0:09 [mysqld]
mysql 28002 0.0 0.0 47556 0 ? SWN Jul26 0:00 [mysqld]
mysql 22945 0.0 0.0 47556 0 ? SWN Jul26 0:00 [mysqld]
mysql 15606 0.0 0.0 47556 0 ? SWN Jul26 0:00 [mysqld]
mysql 7552 0.0 0.0 47556 0 ? SWN Jul27 0:00 [mysqld]
mysql 31390 0.0 0.0 47556 0 ? SWN Jul27 0:00 [mysqld]
mysql 21803 0.0 0.0 47556 0 ? SWN Jul27 0:00 [mysqld]
mysql 12881 0.0 0.0 47556 0 ? SWN Jul27 0:00 [mysqld]
mysql 3374 0.0 0.0 47556 0 ? SWN Jul27 0:00 [mysqld]
mysql 29062 0.0 0.0 47556 0 ? SWN Jul27 0:00 [mysqld]
mysql 23645 0.0 0.0 47556 0 ? SWN Jul27 0:00 [mysqld]
mysql 14918 0.0 0.0 47556 0 ? SWN Jul27 0:01 [mysqld]
mysql 5635 0.0 0.0 47556 0 ? SWN Jul27 0:00 [mysqld]
mysql 28902 0.0 0.0 47556 0 ? SWN Jul27 0:01 [mysqld]
mysql 20189 0.0 0.0 47556 0 ? SWN Jul27 0:00 [mysqld]
mysql 12054 0.0 0.0 47556 0 ? SWN Jul27 0:00 [mysqld]
mysql 4760 0.0 0.0 47556 0 ? SWN Jul27 0:00 [mysqld]
mysql 29283 0.0 0.0 47556 0 ? SWN Jul27 0:00 [mysqld]
mysql 22262 0.0 0.0 47556 0 ? SWN Jul27 0:00 [mysqld]
mysql 15749 0.0 0.0 47556 0 ? SWN Jul27 0:00 [mysqld]
mysql 11331 0.0 0.0 47556 0 ? SWN Jul27 0:01 [mysqld]
mysql 7720 0.0 0.0 47556 0 ? SWN Jul27 0:00 [mysqld]
mysql 4469 0.0 0.0 47556 0 ? SWN Jul27 0:00 [mysqld]
mysql 31951 0.0 0.0 47556 0 ? SWN Jul27 0:00 [mysqld]
admin1 30201 0.0 1.7 10296 4600 ? S 10:00 0:01 perl page.cgi
admin1 30203 0.0 2.3 11088 6228 ? S 10:00 0:00 [page.cgi]
admin1 30434 0.0 2.1 10236 5592 ? S 10:00 0:00 [page.cgi]
admin1 30494 0.0 2.0 10308 5380 ? S 10:00 0:00 [page.cgi]
admin1 30665 0.0 2.2 10260 5784 ? S 10:00 0:00 [page.cgi]
admin1 30688 0.0 2.2 10244 5996 ? S 10:00 0:01 [page.cgi]
admin1 30689 0.0 1.7 9980 4604 ? S 10:00 0:00 perl page.cgi
admin1 30691 0.0 2.2 10364 6004 ? S 10:00 0:00 [page.cgi]
mysql 30715 0.0 0.0 47556 0 ? SWN 10:00 0:01 [mysqld]
mysql 30718 0.0 0.0 47556 0 ? SWN 10:00 0:03 [mysqld]
mysql 30719 0.0 0.0 47556 0 ? SWN 10:00 0:02 [mysqld]
mysql 30720 0.0 0.0 47556 0 ? SWN 10:00 0:01 [mysqld]
mysql 30721 0.0 0.0 47556 0 ? SWN 10:00 0:01 [mysqld]
mysql 30723 0.0 0.0 47556 0 ? SWN 10:00 0:01 [mysqld]
mysql 30724 0.0 0.0 47556 0 ? SWN 10:00 0:04 [mysqld]
admin1 30728 0.0 1.3 8040 3476 ? S 10:00 0:00 [page.cgi]
admin1 30784 0.0 0.9 7928 2464 ? S 10:00 0:00 [page.cgi]
mysql 30810 0.0 0.0 47556 0 ? SWN 10:00 0:00 [mysqld]
admin1 30817 0.0 1.1 7928 3076 ? S 10:00 0:00 [page.cgi]
admin1 30820 0.0 0.8 7928 2152 ? S 10:00 0:00 [page.cgi]
admin1 30823 0.0 0.6 7928 1824 ? S 10:00 0:00 [page.cgi]
mysql 30826 0.0 0.0 47556 0 ? SWN 10:00 0:00 [mysqld]
mysql 30827 0.0 0.0 47556 0 ? SWN 10:00 0:00 [mysqld]
mysql 30828 0.0 0.0 47556 0 ? SWN 10:00 0:00 [mysqld]
admin1 30831 0.0 1.0 7928 2664 ? S 10:00 0:02 perl page.cgi
mysql 30833 0.0 0.0 47556 0 ? SWN 10:00 0:01 [mysqld]
admin1 30834 0.0 1.0 7316 2864 ? S 10:00 0:00 [safe_jump.cgi]
admin1 30835 0.0 0.7 7928 1956 ? S 10:00 0:00 perl page.cgi
admin1 30836 0.0 0.6 8032 1684 ? S 10:00 0:00 perl detail_page.cgi
mysql 30838 0.0 0.0 47556 0 ? SWN 10:00 0:00 [mysqld]
mysql 30841 0.0 0.0 47556 0 ? SWN 10:00 0:00 [mysqld]
mysql 30843 0.0 0.0 47556 0 ? SWN 10:00 0:00 [mysqld]
admin1 30854 0.0 1.3 8028 3556 ? S 10:00 0:00 [review.cgi]
admin1 30863 0.0 0.2 4984 772 ? S 10:00 0:00 [adcycle.cgi]
admin1 30864 0.0 0.9 7920 2476 ? S 10:00 0:00 [page.cgi]
admin1 30868 0.0 1.0 7920 2728 ? S 10:00 0:01 perl page.cgi
mysql 30885 0.0 0.0 47556 0 ? SWN 10:00 0:03 [mysqld]
admin1 30886 0.0 0.5 7920 1312 ? S 10:00 0:02 perl page.cgi
mysql 30887 0.0 0.0 47556 0 ? SWN 10:00 0:03 [mysqld]
mysql 30888 0.0 0.0 47556 0 ? SWN 10:00 0:01 [mysqld]
mysql 30898 0.0 0.0 47556 0 ? SWN 10:00 0:01 [mysqld]
admin1 31189 0.0 1.0 6620 2660 ? S 10:01 0:00 perl rc_handle.cgi
admin1 31190 0.0 1.0 7920 2836 ? S 10:01 0:00 perl page.cgi
admin1 31191 0.0 0.7 6624 1940 ? S 10:01 0:00 perl rc_handle.cgi
admin1 31192 0.0 1.0 7920 2672 ? S 10:01 0:00 [page.cgi]
admin1 31193 0.0 0.7 7920 2024 ? S 10:01 0:00 perl page.cgi
admin1 31202 0.0 1.2 7920 3184 ? S 10:01 0:00 [page.cgi]
admin1 31203 0.0 0.7 7920 2000 ? S 10:01 0:00 [page.cgi]
admin1 31205 0.0 1.1 7920 2972 ? S 10:01 0:00 [page.cgi]
admin1 31206 0.0 0.9 7920 2548 ? S 10:01 0:01 perl page.cgi
admin1 31208 0.0 0.9 6520 2388 ? S 10:01 0:00 perl gforum.cgi
admin1 31209 0.0 0.5 6248 1440 ? S 10:01 0:08 perl gforum.cgi
admin1 31210 0.0 0.8 6624 2160 ? S 10:01 0:00 perl rc_handle.cgi
admin1 31211 0.0 0.6 6764 1696 ? S 10:01 0:02 perl gforum.cgi
mysql 31212 0.0 0.0 47556 0 ? SWN 10:01 0:00 [mysqld]
mysql 31233 0.0 0.0 47556 0 ? SWN 10:01 0:00 [mysqld]
admin1 31483 0.0 0.0 6624 0 ? SW 10:02 0:00 [rc_handle.cgi]
mysql 31493 0.0 0.0 47556 0 ? SWN 10:02 0:00 [mysqld]
mysql 31494 0.0 0.0 47556 0 ? SWN 10:02 0:00 [mysqld]
mysql 31495 0.0 0.0 47556 0 ? SWN 10:02 0:00 [mysqld]
mysql 31496 0.0 0.0 47556 0 ? SWN 10:02 0:02 [mysqld]
mysql 31497 0.0 0.0 47556 0 ? SWN 10:02 0:01 [mysqld]
mysql 31499 0.0 0.0 47556 0 ? SWN 10:02 0:00 [mysqld]
mysql 31500 0.0 0.0 47556 0 ? SWN 10:02 0:00 [mysqld]
mysql 31502 0.0 0.0 47556 0 ? SWN 10:02 0:01 [mysqld]
mysql 31503 0.0 0.0 47556 0 ? SWN 10:02 0:01 [mysqld]
mysql 31504 0.0 0.0 47556 0 ? SWN 10:02 0:02 [mysqld]
mysql 31505 0.0 0.0 47556 0 ? SWN 10:02 0:00 [mysqld]
mysql 31506 0.0 0.0 47556 0 ? SWN 10:02 0:00 [mysqld]
mysql 31507 0.0 0.0 47556 0 ? SWN 10:02 0:00 [mysqld]
admin1 31508 0.0 0.0 4984 0 ? SW 10:02 0:00 [adcycle.cgi]
admin1 31515 0.0 0.9 6212 2416 ? S 10:02 0:05 perl gforum.cgi
admin1 31517 0.0 0.7 7920 1916 ? S 10:02 0:00 perl page.cgi
mysql 31518 0.0 0.0 47556 0 ? SWN 10:02 0:03 [mysqld]
mysql 31519 0.0 0.0 47556 0 ? SWN 10:02 0:00 [mysqld]
admin1 31526 0.0 0.0 4984 0 ? SW 10:02 0:00 [adcycle.cgi]
admin1 31528 0.0 0.5 7408 1468 ? S 10:02 0:02 perl page.cgi
admin1 31536 0.0 0.9 7404 2428 ? S 10:02 0:03 perl page.cgi
admin1 31537 0.0 0.7 7404 1852 ? S 10:02 0:00 perl page.cgi
admin1 31538 0.0 0.3 7408 1044 ? S 10:02 0:01 perl page.cgi
mysql 31545 0.0 0.0 47556 0 ? SWN 10:02 0:02 [mysqld]
mysql 31745 0.0 0.0 47556 0 ? SWN 10:03 0:04 [mysqld]
admin1 31748 0.0 0.2 7404 720 ? S 10:03 0:00 perl page.cgi
admin1 31765 0.0 1.2 7404 3160 ? S 10:03 0:00 perl page.cgi
admin1 31767 0.0 0.0 4732 0 ? SW 10:03 0:00 [adcycle.cgi]
admin1 31768 0.0 1.0 7404 2740 ? S 10:03 0:00 perl page.cgi
admin1 31769 0.0 1.0 7404 2660 ? S 10:03 0:00 perl page.cgi
admin1 31770 0.0 1.1 7404 2980 ? S 10:03 0:00 perl page.cgi
admin1 31771 0.0 0.8 7404 2312 ? S 10:03 0:00 perl page.cgi
mysql 31779 0.0 0.0 47556 0 ? SWN 10:03 0:00 [mysqld]
admin1 31788 0.0 0.5 4732 1376 ? S 10:03 0:00 perl adcycle.cgi
admin1 31798 0.0 1.2 7428 3200 ? S 10:03 0:00 perl user.cgi
admin1 31799 0.0 0.2 4732 624 ? S 10:03 0:00 perl adcycle.cgi
admin1 31800 0.0 0.7 6188 1892 ? S 10:03 0:00 perl gforum.cgi
admin1 31801 0.0 0.8 7404 2344 ? S 10:03 0:00 perl page.cgi
mysql 31806 0.0 0.0 47556 0 ? SWN 10:03 0:01 [mysqld]
mysql 32084 0.0 0.0 47556 0 ? SWN 10:04 0:01 [mysqld]
mysql 32090 0.0 0.0 47556 0 ? SWN 10:04 0:02 [mysqld]
admin1 32102 0.0 1.2 6588 3188 ? S 10:04 0:00 [rc_handle.cgi]
admin1 32105 0.0 1.0 6588 2728 ? S 10:04 0:00 [rc_handle.cgi]
admin1 32108 0.0 1.1 6588 3076 ? S 10:04 0:00 [rc_handle.cgi]
admin1 32110 0.0 1.2 6588 3244 ? S 10:04 0:00 [rc_handle.cgi]
admin1 32123 0.0 1.1 6588 3140 ? S 10:04 0:00 [rc_handle.cgi]
admin1 32124 0.0 0.6 4732 1664 ? S 10:04 0:00 [adcycle.cgi]
admin1 32125 0.0 1.1 6188 3132 ? S 10:04 0:00 perl gforum.cgi
admin1 32128 0.0 0.5 4732 1444 ? S 10:04 0:00 [adcycle.cgi]
admin1 32139 0.0 0.5 4732 1572 ? S 10:04 0:00 [adcycle.cgi]
mysql 32161 0.0 0.0 47556 0 ? SWN 10:04 0:01 [mysqld]
admin1 32319 0.0 0.6 4732 1764 ? S 10:05 0:11 perl adcycle.cgi
admin1 32640 0.0 0.7 4732 1848 ? S 10:05 0:09 perl adcycle.cgi
admin1 483 0.0 0.5 4732 1344 ? S 10:06 0:07 [adcycle.cgi]
admin1 486 0.0 0.4 4732 1100 ? S 10:06 0:07 perl adcycle.cgi
admin1 1131 0.0 1.3 6856 3436 ? S 10:08 0:16 perl page.cgi
admin1 1201 0.0 1.5 7272 4068 ? S 10:08 0:14 perl -w safe_jump.cgi
admin1 1209 0.0 1.3 7404 3544 ? S 10:08 0:21 perl page.cgi
admin1 1210 0.0 1.2 6840 3308 ? S 10:08 0:14 perl detail_page.cgi
admin1 2390 0.0 1.2 6740 3344 ? S 10:11 0:22 perl review.cgi
mysql 2690 0.0 0.0 47556 0 ? SWN 10:12 0:00 [mysqld]
admin1 2703 0.0 1.4 7404 3732 ? S 10:12 0:19 perl page.cgi
admin1 2895 0.0 1.5 7404 4120 ? S 10:13 0:21 perl page.cgi
admin1 4608 0.0 1.4 7404 3852 ? S 10:18 0:15 perl page.cgi
admin1 5955 0.0 1.4 7272 3744 ? S 10:22 0:18 perl -w safe_jump.cgi
admin1 7449 0.0 1.2 6568 3212 ? S 10:27 0:00 [bad_link.cgi]
admin1 16887 0.0 1.0 6192 2692 ? S 10:55 0:00 [gforum.cgi]
root 9037 0.6 0.1 3692 292 ? S 18:21 0:00 /usr/sbin/sshd
root 9038 0.0 0.1 2276 408 ttyp0 S 18:21 0:00 -bash
root 9653 2.2 0.6 3692 1808 ? S 18:23 0:00 /usr/sbin/sshd
root 9669 1.3 0.4 2276 1292 pts/1 S 18:23 0:00 -bash
root 9716 0.0 0.2 2608 756 pts/1 R 18:23 0:00 ps aux


We really need some help o this one ASAP.

No changes have bheen done to LINKS SQL in the last few days of any kind..
Any idea?
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] ((NEED HELP)) Page.cgi overloading the server.. In reply to
Hi. Is debugging turned on with your site? That has been known to cause page.cgi to freeze up, and crash a server (on high load servers).

Hope that helps.

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] ((NEED HELP)) Page.cgi overloading the server.. In reply to
Thanks Andy

Debugging is off..
The web site has been down for 2 days now..
Will anyone be welling to take a look and advise us? We only have FTP access to it.
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [Andy] ((NEED HELP)) Page.cgi overloading the server.. In reply to
What is the ideal CPU and RAM for a site that is running about 25,000 links and getting about 10,000 hits a day.
Will anyone have an idea?
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] ((NEED HELP)) Page.cgi overloading the server.. In reply to
I wouldn't have thought they would be that high. Its when you start getting 100,000 page hits a day that you need to start worrying. Anything less, and it shouldn't cause any problems Unsure

This is a dedicated server, isn't it?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [katabd] ((NEED HELP)) Page.cgi overloading the server.. In reply to
I have over 300,000 links and on a server with about 200 other websites. I get about the same amount of hits a day. For what you have an old 286 in idle mode should be fine.
Quote Reply
Re: [Andy] ((NEED HELP)) Page.cgi overloading the server.. In reply to
Yes with 256 ram.
Regards
KaTaBd

Users plug In - Multi Search And Remote Search plug in - WebRing plug in - Muslims Directory
Quote Reply
Re: [katabd] ((NEED HELP)) Page.cgi overloading the server.. In reply to
Have you made any changes / new globals / plugins recently? It could be that one / more than one of them are causing problems.

When I tested page.cgi via SSH for you (on your server), it all run fine.

I'm really stumped as to why its not working Unsure

I've been getting hit hard by MSNBot and GoogleBot recently quite a bit. Maybe you're having the same thing; and your server just can't handle all the requests at one time :(

You may want to consider upgrading your RAM too. LSQL is ideally run with more than 256mb (on high traffic sites). We personally have 512Mb standard on our hosting servers; and then on our main Ultranerds one, I believe we have 2Gb RAM (its a beast of a server Smile).

Not sure what else to suggest :(

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!