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 - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-20-2009, 04:27 AM   #1
woshka
LQ Newbie
 
Registered: Sep 2009
Posts: 11
Blog Entries: 1

Rep: Reputation: 0
Exclamation ? high server load + sites being unaccessible so many times in the day


I have a server with 8GIG of ram and a quad-core q9550 CPU and 500GIG of hard-disk space, and 100Mbps net connection.
I have separated it into 3 parts of 2 Gigs of ram each, by virtualization, so there are 3 VPSes.

The problem is that the one of the VPSes (created) with centos and WHM/cpanel would go down very often, as many as 60 times per day!

I asked one of my friends to have a look at it, and he told me that Tomcat was the reason.

Things got a little better (ask me what I changed about Tomcat?!) and after that the server would go down only about 20 to 30 times per day.

I asked the friend again, and he told me that the CPanel integrated antivirus would cause the high load periodically.

(Ask me again, what did I change?) And after that the server would go down only about 4 to 10 times per day.

Now, as far as I can tell, there is nothing more that would/should cause the server to go down.

About 30 minutes ago, before writing this post, the hosted sites were unavailable again, for about 30 seconds.

I checked the load through ssh and I saw that the load is 3, so I went to the main server and checked the VPS ram and noticed that only 10% of the cpu is used and only 307Mb of available RAM is used.
Everything shows that the server should be functioning OK, but it still seems to get unavailable far too often.

I used the top command and noticed that there is nothing using the cpu and the ram and all of them are 0.

I used the mysqladmin proc command and again nothing noticeably weird seemed obvious at this time. I also checked the other VPSes and they were also in relatively low-resource-consumption states

(I don't understand this part):
Also sometimes I use the top command when the load goes high I see that all of the users, even the non visitors users site use cpu seems forexample a refreshing things or updating thing updates all of the accounts forexample mysql or so

Please help me to figure out what other things might be causing these service/server high loads and unavailability.

Thanks in advance!

(NOTE: This post was edited by GrapefruiTgirl in an attempt to clarify some grammar/spelling to make it more understandable)

Last edited by GrapefruiTgirl; 09-20-2009 at 09:42 PM. Reason: Clarity.
 
Old 09-20-2009, 11:59 PM   #2
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
What is the VM software here? Virtuozzo? Xen?
 
Old 09-21-2009, 03:34 AM   #3
woshka
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Blog Entries: 1

Rep: Reputation: 0
it is
VMware Infrastructure Web Access
 
Old 09-21-2009, 06:57 AM   #4
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
Quote:
Originally Posted by woshka View Post
it is
VMware Infrastructure Web Access
Haven't used that one, sorry.
 
Old 09-21-2009, 07:27 AM   #5
woshka
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Blog Entries: 1

Rep: Reputation: 0
I think it is
Virtuozzo
 
Old 09-21-2009, 07:31 AM   #6
dlugasx
Member
 
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 266

Rep: Reputation: 19
What is mean "go down" ?

Not reachable by any service (ssh, www, mysql, ftp ) ?
 
Old 09-21-2009, 07:35 AM   #7
woshka
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Blog Entries: 1

Rep: Reputation: 0
the main server is rechable

but the vps on it wont be accessible by ssh http
and after 1 min or 2 that the load become alitle lower as I login to ssh I would see that the load is 17 or so
the last time was 10 miniuts ago that this happened
in the vmware I saw that this vps inspite of having high load , the cpu usage was 20% and the ram was only 700MB of 2 gig
 
Old 09-21-2009, 07:40 AM   #8
dlugasx
Member
 
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 266

Rep: Reputation: 19
First, check if Your system doesnt use too much SWAP.


I suggest to use htop instead of top. Top is old fashion, not readable something...

http://htop.sourceforge.net/


What kind of services You have running on the guest server with centos ?

What kind of service You have running on the host ?
 
Old 09-21-2009, 08:01 AM   #9
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
Quote:
Originally Posted by dlugasx View Post
First, check if Your system doesnt use too much SWAP.


I suggest to use htop instead of top. Top is old fashion, not readable something...

http://htop.sourceforge.net/


What kind of services You have running on the guest server with centos ?

What kind of service You have running on the host ?
If he has 8 gigs of ram and only 3 vps servers he probably isn't using any swap.
 
Old 09-21-2009, 08:01 AM   #10
woshka
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Blog Entries: 1

Rep: Reputation: 0
I have installed the htop yesterday
apche mysql and what needs to be run on a hosting server with WHM cpanel

the load is in normal state at the moment
it is 0.52

but in a time it go to mor than 10 and not accessible
 
Old 09-21-2009, 08:02 AM   #11
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
Quote:
Originally Posted by woshka View Post
I think it is
Virtuozzo
Run this and check the failed column:
Code:
cat /proc/user_beancounters
 
Old 09-21-2009, 08:19 AM   #12
woshka
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Blog Entries: 1

Rep: Reputation: 0
[root@nd11225 ~]# cat /proc/user_beancounters
cat: /proc/user_beancounters: No such file or directory
[root@nd11225 ~]#
 
Old 09-21-2009, 08:23 AM   #13
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
Quote:
Originally Posted by woshka View Post
[root@nd11225 ~]# cat /proc/user_beancounters
cat: /proc/user_beancounters: No such file or directory
[root@nd11225 ~]#
If you don't have that file, it must not be Virtuozzo.
 
Old 09-21-2009, 09:28 AM   #14
dlugasx
Member
 
Registered: Dec 2008
Location: Germany/Poland
Distribution: CentOS / Debian / Solaris / RedHat
Posts: 266

Rep: Reputation: 19
Put this script to Your root directory in the VPS Centos.

http://amos.freeshell.org/userbeans.sh

next execute it using this command (root):

userbeans.sh +a


and please past here result of that script.


Dont worry it will show only reserved resources for CentOS.
 
Old 09-21-2009, 09:35 AM   #15
woshka
LQ Newbie
 
Registered: Sep 2009
Posts: 11

Original Poster
Blog Entries: 1

Rep: Reputation: 0
root@linux [~]# wget http://amos.freeshell.org/userbeans.sh
--09:39:44-- http://amos.freeshell.org/userbeans.sh
Resolving amos.freeshell.org... 192.94.73.30
Connecting to amos.freeshell.org|192.94.73.30|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 11681 (11K) [application/x-sh]
Saving to: `userbeans.sh'

100%[==================================================================================================== ================>] 11,681 10.5K/s in 1.1s

09:39:45 (10.5 KB/s) - `userbeans.sh' saved [11681/11681]

root@linux [~]# userbeans.sh +a
-bash: userbeans.sh: command not found
 
  


Reply

Tags
high, unknown



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
High load, high RAM usage and unresponsive VPS saeed22 Linux - Server 1 08-20-2009 11:58 AM
Extremaly high server load 2-3 times per month lpa Linux - Newbie 3 07-16-2009 07:13 AM
System freezes a couple of times a day Fugazi Fedora 12 01-02-2009 05:44 PM
Server Load Times High, help? Networks Linux - Newbie 6 05-05-2007 12:37 AM
Load Avg High/Phys Mem High teamh Debian 2 12-26-2006 05:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:34 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