Page 1 of 1

Heavy Load = Restart

Posted: Fri Aug 11, 2006 3:03 pm
by Terriator
Hey, I have a server running a serious amount of connections, which causes the apache to go slow and my HTTP server to restart regulary. How do I go about fixing this?

Thanks

Posted: Fri Aug 11, 2006 3:05 pm
by Luke
connections to different databases, or just one?

Posted: Fri Aug 11, 2006 3:07 pm
by Weirdan
What is that serious amount in numbers?
What are the server specs? (hardware and software)
Are you sure it's apache that causing the problem (not your php app e.g.)?

Posted: Fri Aug 11, 2006 3:16 pm
by Terriator
Just one database..

Processor #1 Vendor: GenuineIntel
Processor #1 Name: Intel(R) Xeon(TM) CPU 3.00GHz
Processor #1 speed: 3001.836 MHz
Processor #1 cache size: 2048 KB

Processor #2 Vendor: GenuineIntel
Processor #2 Name: Intel(R) Xeon(TM) CPU 3.00GHz
Processor #2 speed: 3001.836 MHz
Processor #2 cache size: 2048 KB

Processor #3 Vendor: GenuineIntel
Processor #3 Name: Intel(R) Xeon(TM) CPU 3.00GHz
Processor #3 speed: 3001.836 MHz
Processor #3 cache size: 2048 KB

Processor #4 Vendor: GenuineIntel
Processor #4 Name: Intel(R) Xeon(TM) CPU 3.00GHz
Processor #4 speed: 3001.836 MHz
Processor #4 cache size: 2048 KB

Memory Information
Memory: 2072556k/2096000k available (1868k kernel code, 22412k reserved, 755k data, 180k init, 1178496k highmem)

System Information
Linux eta.xisto.com 2.6.9-34.ELsmp #1 SMP Wed Mar 8 00:27:03 CST 2006 i686 i686 i386 GNU/Linux


The reason I believe it to be apache is because the management team hosting my server said so =/ .. But their head admin's friend got sick, hence he can not fix it, and I'm a little desperate =) ..

I dunno, about 3-400 users online, and since it's a game, quite a lot of pageviews. The codes are not the best, but I'm trying to optimize as much as possible atm =) .. It shouldn't be because of that though, as my server CPUs don't seem to be overloaded?

Posted: Fri Aug 11, 2006 3:25 pm
by Weirdan
What is Apache version? Does it say something useful in error-log? Does it crash (dumps core)?

Posted: Fri Aug 11, 2006 3:36 pm
by Terriator
Version: 1.3.37

When I try to download the log with my cpanel, it downloads an empty file =/ ..

Posted: Fri Aug 11, 2006 3:42 pm
by Weirdan
don't you have shell access there? That complicates troubleshooting severely.

Do you have access to httpd.conf file? Can you access /server-status (provided by mod_status) ?

Isn't your server running out of disk space?

Posted: Fri Aug 11, 2006 3:53 pm
by Terriator
I have no idea what shell-access is =/ .. I must admit I'm rather new to php.. And that I have no experience with servers.. It's most possible I have shell access, I just don't know what it is =/

Posted: Fri Aug 11, 2006 3:59 pm
by Terriator
I got a pretty black box with shell access on my computer now =) .. What then? =/

Posted: Fri Aug 11, 2006 4:37 pm
by Weirdan
try

Code: Select all

apachectl fullstatus
and

Code: Select all

df