Heavy Load = Restart

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
Terriator
Forum Commoner
Posts: 60
Joined: Mon Jul 04, 2005 12:46 pm

Heavy Load = Restart

Post 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
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

connections to different databases, or just one?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post 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.)?
Terriator
Forum Commoner
Posts: 60
Joined: Mon Jul 04, 2005 12:46 pm

Post 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?
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

What is Apache version? Does it say something useful in error-log? Does it crash (dumps core)?
Terriator
Forum Commoner
Posts: 60
Joined: Mon Jul 04, 2005 12:46 pm

Post by Terriator »

Version: 1.3.37

When I try to download the log with my cpanel, it downloads an empty file =/ ..
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post 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?
Terriator
Forum Commoner
Posts: 60
Joined: Mon Jul 04, 2005 12:46 pm

Post 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 =/
Terriator
Forum Commoner
Posts: 60
Joined: Mon Jul 04, 2005 12:46 pm

Post by Terriator »

I got a pretty black box with shell access on my computer now =) .. What then? =/
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

try

Code: Select all

apachectl fullstatus
and

Code: Select all

df
Post Reply