Too much overload on vps

Status
Not open for further replies.

pixliv

Banned
Banned
154
2014
40
0
Hi

I am using interserver vps and hosted image hosting site on it.

I am getting too much server load 5 to 20 . sometime it reach to 30 .

i have
5gb ram
2 cpu core
using nginx.
whm/cpanel



can anyone help me?

or can anyone suggest good vps for image hosting?

cpuinfo

login as: root
root@###.##.##.206's password:
Last login: Sat Jun 14 14:47:55 2014 from 66.45.228.251
root@cpanel [~]# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 60
model name : Intel(R) Xeon(R) CPU E3-1230 v3 @ 3.30GHz
stepping : 3
cpu MHz : 2062.505
cache size : 8192 KB
physical id : 0
siblings : 8
core id : 0
cpu cores : 4
apicid : 0
initial apicid : 0
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdt scp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmp erf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rd rand lahf_lm abm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm
bogomips : 6600.01
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 60
model name : Intel(R) Xeon(R) CPU E3-1230 v3 @ 3.30GHz
stepping : 3
cpu MHz : 2062.505
cache size : 8192 KB
physical id : 0
siblings : 8
core id : 1
cpu cores : 4
apicid : 2
initial apicid : 2
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdt scp lm constant_tsc arch_perfmon pebs bts rep_good xtopology nonstop_tsc aperfmp erf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rd rand lahf_lm abm ida arat epb xsaveopt pln pts dts tpr_shadow vnmi flexpriority ept vpid fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm
bogomips : 6600.01
clflush size : 64
cache_alignment : 64
address sizes : 39 bits physical, 48 bits virtual
power management:

root@cpanel [~]#


root@cpanel [~]# free -m
total used free shared buffers cached
Mem: 5120 3534 1585 0 0 2622
-/+ buffers/cache: 911 4208
Swap: 5120 108 5011

__________________
Added after 2 minutes:

Rx5u4aB.png

uxR413W.png
 
Last edited:
15 comments
You have probably default or poor configuration for apache & mysql.

Give me info included in <IfModule prefork.c> line and also do you have KeepAlive on or off?
 
nano /etc/httpd/conf/httpd.conf

Post values for these items:

StartServers
MinSpareServers
MaxSpareServers
ServerLimit
MaxClients
MaxRequestsPerChild


Also, please go ahead to cPanel/Service Configuration/Configure PHP and suEXEC and post current configuration
 
# These can be set in WHM under 'Apache Global Configuration'
Timeout 300
TraceEnable On
ServerSignature Off
ServerTokens Full
FileETag All
StartServers 5
<IfModule prefork.c>
MinSpareServers 5
MaxSpareServers 10
</IfModule>
 
AGFrrRF.png


__________________
Added after 2 minutes:

UCQTSmE.png


__________________
Added after 4 minutes:

need anything more?
 
Last edited:
I thought so. Your Apache configuration is purely default, therefore your web server is not able to process all users at same time. Check your pm.
 
TraceEnable On
ServerSignature Off
ServerTokens Full
FileETag All
StartServers 5
<IfModule prefork.c>
MinSpareServers 5
MaxSpareServers 10
</IfModule>
<IfModule itk.c>
MinSpareServers 5
MaxSpareServers 10
</IfModule>
ServerLimit 256

MaxRequestsPerChild 10000
KeepAlive Off
KeepAliveTimeout 5
MaxKeepAliveRequests 100

keepalive is off
 
I've just sent you a pm with some modifications on your Apache. Also, one more thing: Consider migrating to dedicated server instead of VPS, since you've already got a pretty nice population over here and more users meaning more parallel uploads, meaning more CPU load. Two cores is a very low for your needs.
 
Hi thanks for the help. can you suggest good dedicated server provider?

I've just sent you a pm with some modifications on your Apache. Also, one more thing: Consider migrating to dedicated server instead of VPS, since you've already got a pretty nice population over here and more users meaning more parallel uploads, meaning more CPU load. Two cores is a very low for your needs.
 
If you're looking for quality provider with dedicated uplink, than go for Leaseweb or nForce. If you're unable to find suitable specifications, check with their resellers/colo partners, EqServers (Leaseweb), KnownSRV (nforce)
 
Hi

Now i am on dedicated server.

Intel(R) Xeon(R) CPU E3-1240 v3 @ 3.40GHz
16gb ram

1gbps dedicated port


but still site goes very slow when i have 200 user online.

can anybody help?

this is my config

# These can be set in WHM under 'Apache Global Configuration'
Timeout 120
TraceEnable On
ServerSignature Off
ServerTokens Full
FileETag All
StartServers 2
<IfModule prefork.c>
MinSpareServers 125
MaxSpareServers 250
</IfModule>
<IfModule itk.c>
MinSpareServers 1
MaxSpareServers 8
</IfModule>
ServerLimit 400
MaxClients 300
MaxRequestsPerChild 800
KeepAlive On
KeepAliveTimeout 10
MaxKeepAliveRequests 200



top - 18:05:16 up 2 days, 20:43, 1 user, load average: 70.41, 102.09, 110.84
Tasks: 327 total, 93 running, 222 sleeping, 11 stopped, 1 zombie
Cpu(s): 92.2%us, 7.5%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.4%si, 0.0%st
Mem: 16287892k total, 12014940k used, 4272952k free, 205008k buffers
Swap: 8215544k total, 28844k used, 8186700k free, 6234516k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
15582 pixliv 20 0 277m 73m 4504 R 10.3 0.5 0:04.04 httpd
16318 pixliv 20 0 246m 37m 6252 R 10.3 0.2 0:02.05 httpd
5953 pixliv 20 0 277m 75m 4592 R 9.9 0.5 0:40.50 httpd
11303 pixliv 20 0 277m 73m 4900 R 9.9 0.5 0:14.32 httpd
12377 pixliv 20 0 279m 77m 6504 R 9.9 0.5 0:11.43 httpd
12424 pixliv 20 0 245m 34m 5700 R 9.9 0.2 0:11.77 httpd
15418 pixliv 20 0 252m 50m 4504 R 9.9 0.3 0:04.16 httpd
15419 pixliv 20 0 252m 50m 4368 R 9.9 0.3 0:04.14 httpd
15531 pixliv 20 0 220m 18m 4580 R 9.9 0.1 0:04.14 httpd
15587 pixliv 20 0 246m 37m 5936 R 9.9 0.2 0:03.91 httpd
15592 pixliv 20 0 277m 74m 4588 R 9.9 0.5 0:03.87 httpd
16655 pixliv 20 0 245m 33m 5844 R 9.9 0.2 0:01.35 httpd
16751 pixliv 20 0 277m 73m 4516 R 9.9 0.5 0:01.20 httpd
16805 pixliv 20 0 253m 42m 4944 R 9.9 0.3 0:01.17 httpd
12419 pixliv 20 0 277m 73m 4588 R 9.6 0.5 0:11.66 httpd
15468 pixliv 20 0 264m 61m 4368 R 9.6 0.4 0:04.15 httpd
15529 pixliv 20 0 277m 73m 4504 R 9.6 0.5 0:04.08 httpd
15576 pixliv 20 0 277m 74m 4504 R 9.6 0.5 0:03.76 httpd
15598 pixliv 20 0 267m 63m 4504 R 9.6 0.4 0:03.96 httpd
15602 pixliv 20 0 279m 75m 4740 R 9.6 0.5 0:03.86 httpd
16576 pixliv 20 0 250m 48m 4364 R 9.6 0.3 0:01.61 httpd
16888 pixliv 20 0 277m 74m 4364 R 9.6 0.5 0:00.98 httpd
36910 pixliv 20 0 277m 74m 4596 R 9.6 0.5 1:31.06 httpd
11997 pixliv 20 0 245m 38m 6248 R 9.3 0.2 0:13.11 httpd
12081 pixliv 20 0 239m 28m 5456 R 9.3 0.2 0:12.37 httpd
14430 pixliv 20 0 279m 76m 6488 R 9.3 0.5 0:07.38 httpd
15523 pixliv 20 0 277m 75m 4364 R 9.3 0.5 0:03.96 httpd
15583 pixliv 20 0 246m 35m 5908 R 9.3 0.2 0:03.95 httpd
15596 pixliv 20 0 246m 37m 5988 R 9.3 0.2 0:03.91 httpd
15599 pixliv 20 0 279m 75m 4624 R 9.3 0.5 0:04.05 httpd
15600 pixliv 20 0 245m 32m 5804 R 9.3 0.2 0:03.89 httpd
16319 pixliv 20 0 252m 50m 4504 R 9.3 0.3 0:02.27 httpd
16706 pixliv 20 0 242m 31m 5396 R 9.3 0.2 0:01.34 httpd
16752 pixliv 20 0 251m 48m 4364 R 9.3 0.3 0:01.19 httpd
16808 pixliv 20 0 279m 75m 5928 R 9.3 0.5 0:01.17 httpd
15386 pixliv 20 0 279m 75m 5964 R 8.9 0.5 0:04.09 httpd
15420 pixliv 20 0 239m 28m 5464 R 8.9 0.2 0:04.31 httpd
 
Status
Not open for further replies.
Back
Top