منتدى استراحات زايد

منتدى استراحات زايد (http://vb.ma7room.com/index.php)
-   منتدى أخبار المواقع والمنتديات العربية والأجنبية (http://vb.ma7room.com/forumdisplay.php?f=183)
-   -   Database connection help if possible (http://vb.ma7room.com/showthread.php?t=68676)

محروم.كوم 04-09-2009 10:10 PM

Database connection help if possible
 
Hi guys. I'd very much appreciate it if you can help me here. I have asked my host to pinpoint the cause/source of the error, but they haven't been able to do so.

At least once a week I am getting this error,

mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

I have to restart the MySQL service from WHM/CPanel whenever this happens. I am getting literally hundreds of emails sent to my inbox telling me "VBulletin Database Error!".

I have read this: http://www.vbulletin.com/docs/html/cantconnect ... but I am not an expert in computers so I don't really understand it.

I only have a thousand members, and on average, the number of active/current users online at any given time is usually around ten to twenty.

I have researched dozens of forums and websites to see what I can do to resolve this, changing my settings in my.cnf, I even upgraded my VPS, but still the errors keep coming. I am at a loss as to how I am getting these errors when I hardly have any users, yet I'm on a (relatively) powerful VPS.

Here are my stats that are needed:

1. VPS. I am the only one on this server.
-------------------------------------------------
2. Dual Xeon, 2Gb RAM, 80Gb Hard Drive, Apache version - 2.2.9 (Unix), PHP version 5.2.6, MySQL version 5.0.67-community, Architecture i686, Operating system - Linux.
-------------------------------------------------
3. vBulletin 3.8.1 (Patch Level 1)
-------------------------------------------------
4.
-------------------------------------------------
5.
-------------------------------------------------
6. Top Stats:

top - 10:30:54 up 119 days, 9:59, 1 user, load average: 0.36, 0.32, 0.28
Tasks: 134 total, 1 running, 133 sleeping, 0 stopped, 0 zombie
Cpu0 : 10.3% us, 5.0% sy, 0.0% ni, 84.7% id, 0.0% wa, 0.0% hi, 0.0% si
Cpu1 : 3.7% us, 3.0% sy, 0.0% ni, 93.4% id, 0.0% wa, 0.0% hi, 0.0% si
Cpu2 : 0.3% us, 0.7% sy, 0.0% ni, 99.0% id, 0.0% wa, 0.0% hi, 0.0% si
Cpu3 : 0.0% us, 0.3% sy, 0.0% ni, 99.7% id, 0.0% wa, 0.0% hi, 0.0% si
Cpu4 : 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
Cpu5 : 1.4% us, 1.4% sy, 0.0% ni, 97.2% id, 0.0% wa, 0.0% hi, 0.0% si
Cpu6 : 0.9% us, 0.9% sy, 0.0% ni, 98.1% id, 0.0% wa, 0.0% hi, 0.0% si
Cpu7 : 0.0% us, 0.5% sy, 0.0% ni, 99.5% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 2097152k total, 121832k used, 1975320k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached
-------------------------------------------------

7. my.cnf:

[mysqld]
skip-bdb
skip-innodb
set-variable = max_user_connections=2000
set-variable = max_connections=1000
safe-show-database
set-variable = table_cache=1024
set-variable = sort_buffer_size=16M
set-variable = read_buffer_size=16M
set-variable = read_rnd_buffer_size=64M
set-variable = thread_cache_size=128
log-slow-queries
long_query_time = 1

#256M
set-variable = query_cache_size=32M

#512M
#set-variable = query_cache_size=64M

#1024M
#set-variable = query_cache_size=128M

-------------------------------------------------

8.

MySQL 5.0.67-community- uptime 0 2:34:11 Thu Apr 9 10:36:26 2009

__ Key __________________________________________________ _______________
Buffer used 1.39M of 8.00M %Used: 17.35
Current 2.31M %Usage: 28.87
Write hit 64.35%
Read hit 99.50%

__ Questions __________________________________________________ _________
Total 34.70k 3.8/s
Com_ 13.32k 1.4/s %Total: 38.39
DMS 9.56k 1.0/s 27.56
COM_QUIT 6.25k 0.7/s 18.03
QC Hits 5.67k 0.6/s 16.34
-Unknown 110 0.0/s 0.32
Slow 1 s 51 0.0/s 0.15 %DMS: 0.53 Log: ON
DMS 9.56k 1.0/s 27.56
INSERT 5.17k 0.6/s 14.92 54.12
SELECT 3.05k 0.3/s 8.78 31.86
UPDATE 1.13k 0.1/s 3.25 11.80
REPLACE 133 0.0/s 0.38 1.39
DELETE 80 0.0/s 0.23 0.84
Com_ 13.32k 1.4/s 38.39
change_db 7.82k 0.8/s 22.54
set_option 5.12k 0.6/s 14.76
check 42 0.0/s 0.12

__ SELECT and Sort __________________________________________________ ___
Scan 363 0.0/s %SELECT: 11.92
Range 586 0.1/s 19.24
Full join 0 0/s 0.00
Range check 0 0/s 0.00
Full rng join 0 0/s 0.00
Sort scan 132 0.0/s
Sort range 177 0.0/s
Sort mrg pass 0 0/s

__ Query Cache __________________________________________________ _______
Memory usage 3.89M of 32.00M %Used: 12.15
Block Fragmnt 7.65%
Hits 5.67k 0.6/s
Inserts 2.90k 0.3/s
Insrt:Prune 2.90k:1 0.3/s
Hit:Insert 1.96:1

__ Table Locks __________________________________________________ _______
Waited 67 0.0/s %Total: 0.53
Immediate 12.52k 1.4/s

__ Tables __________________________________________________ ____________
Open 463 of 1024 %Cache: 45.21
Opened 579 0.1/s

__ Connections __________________________________________________ _______
Max used 5 of 1000 %Max: 0.50
Total 6.26k 0.7/s

__ Created Temp __________________________________________________ ______
Disk table 22 0.0/s
Table 186 0.0/s Size: 32.0M
File 0 0/s

__ Threads __________________________________________________ ___________
Running 1 of 1
Cached 4 of 128 %Hit: 99.92
Created 5 0.0/s
Slow 0 0/s

__ Aborted __________________________________________________ ___________
Clients 0 0/s
Connects 2 0.0/s

__ Bytes __________________________________________________ _____________
Sent 211.31M 22.8k/s
Received 12.00M 1.3k/s

__ InnoDB Buffer Pool __________________________________________________
Usage 0 of 0 %Used: 0.00
Read hit 0.00%
Pages
Free 0 %Total: 0.00
Data 0 0.00 %Drty: 0.00
Misc 0 0.00
Latched 0 0.00
Reads 0 0/s
From file 0 0/s 0.00
Ahead Rnd 0 0/s
Ahead Sql 0 0/s
Writes 0 0/s
Flushes 0 0/s
Wait Free 0 0/s

__ InnoDB Lock __________________________________________________ _______
Waits 0 0/s
Current 0
Time acquiring
Total 0 ms
Average 0 ms
Max 0 ms

__ InnoDB Data, Pages, Rows ____________________________________________
Data
Reads 0 0/s
Writes 0 0/s
fsync 0 0/s
Pending
Reads 0
Writes 0
fsync 0

Pages
Created 0 0/s
Read 0 0/s
Written 0 0/s

Rows
Deleted 0 0/s
Inserted 0 0/s
Read 0 0/s
Updated 0 0/s

-------------------------------------------------

9. Just vB.
-------------------------------------------------
10. Don't know.
-------------------------------------------------
11. Don't know.
-------------------------------------------------
12. I opened httpd.conf but it doesn't have the parameters mentioned.
-------------------------------------------------
13. Nothing found from that command.
-------------------------------------------------
14.

Linux vps2392.inmotionhosting.com 2.6.9-023stab048.4-enterprise #1 SMP Fri Jul 11 18:31:01 MSD 2008 i686 i686 i386 GNU/Linux
================================================

core file size (blocks, -c) unlimited
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
pending signals (-i) 1024
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
stack size (kbytes, -s) unlimited
cpu time (seconds, -t) unlimited
max user processes (-u) 139264
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

================================================

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
stepping : 6
cpu MHz : 2660.193
cache size : 6144 KB
physical id : 0
siblings : 4
core id : 0
cpu cores : 4
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
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 nx lm pni monitor ds_cpl est tm2 xtpr
bogomips : 5323.07

processor : 1
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
stepping : 6
cpu MHz : 2660.193
cache size : 6144 KB
physical id : 0
siblings : 4
core id : 1
cpu cores : 4
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
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 nx lm pni monitor ds_cpl est tm2 xtpr
bogomips : 5319.93

processor : 2
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
stepping : 6
cpu MHz : 2660.193
cache size : 6144 KB
physical id : 0
siblings : 4
core id : 2
cpu cores : 4
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
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 nx lm pni monitor ds_cpl est tm2 xtpr
bogomips : 5320.03

processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
stepping : 6
cpu MHz : 2660.193
cache size : 6144 KB
physical id : 0
siblings : 4
core id : 3
cpu cores : 4
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
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 nx lm pni monitor ds_cpl est tm2 xtpr
bogomips : 5319.99

processor : 4
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
stepping : 6
cpu MHz : 2660.193
cache size : 6144 KB
physical id : 1
siblings : 4
core id : 4
cpu cores : 4
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
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 nx lm pni monitor ds_cpl est tm2 xtpr
bogomips : 5320.02

processor : 5
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
stepping : 6
cpu MHz : 2660.193
cache size : 6144 KB
physical id : 1
siblings : 4
core id : 5
cpu cores : 4
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
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 nx lm pni monitor ds_cpl est tm2 xtpr
bogomips : 5320.07

processor : 6
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
stepping : 6
cpu MHz : 2660.193
cache size : 6144 KB
physical id : 1
siblings : 4
core id : 6
cpu cores : 4
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
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 nx lm pni monitor ds_cpl est tm2 xtpr
bogomips : 5320.11

processor : 7
vendor_id : GenuineIntel
cpu family : 6
model : 7
model name : Intel(R) Xeon(R) CPU E5430 @ 2.66GHz
stepping : 6
cpu MHz : 2660.193
cache size : 6144 KB
physical id : 1
siblings : 4
core id : 7
cpu cores : 4
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 10
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 nx lm pni monitor ds_cpl est tm2 xtpr
bogomips : 5319.98


الساعة الآن 09:08 AM

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.5.2 TranZ By Almuhajir


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227