Increasing Max_user_connections
Jun 3, 2007any problem increasing max_user_connections ? (for example 600)
View 2 Repliesany problem increasing max_user_connections ? (for example 600)
View 2 RepliesI wonder what is good parameter to set for max_user_connection on shared hosting.
I see that some hostings set it to 20 and on some other hostings it is set to to 30 respectively 40?
I keep getting this error once in a while for my forum.
Quote:
SQL ERROR [ mysql4 ]
User xxxxx_xxxx has already more than 'max_user_connections' active connections [1203]
An sql error occurred while fetching this page. Please contact an administrator if this problem persists.
I've contact support team from my Hosting provider and they have help me to increase the value of max_user_connection to 50. I have made to understand by them that this problem can be resolved by using VPS or Dedicated server. As a newbie, I just want some assurance would the problem permanently resolve if I'm using VPS or Dedicated server? Which one should I use? VPS or dedicated server?
I've had an issue come up recently that I haven't had to deal with before. I'm starting to get regular errors during peak traffic times saying that I have more then the max_user_connections allowed.
I tried setting this to a higher number using ini_set. Unfortunately my host overrides this. I've talked with the host and they cannot up the 15 user maximum.
I've been with this host a while and they have great support and really great service. I understand their need to limit this because it is a shared environment.
I'm wondering if there's anything I can do on my end to help avoid this problem.
Is the only option switching somewhere that lets me have more maximum connections? At the rate I'm going this problem will continue to grow, so it needs to be solved quickly.
i am having an website like a webdirectory. BUT i am getting this error after every 5-10 mintues :
Warning: mysql_pconnect() [function.mysql-pconnect]: User USERNAME
has already more than 'max_user_connections' active connections in
/FIELPATH on line 93
Database error: pconnect(localhost,bstitne_netclass, $Password)failed.
MySQL Error)
Session halted.
PLEASE suggest how can i solve this. May be it is an server issue
Since moving over to a new server, I have had to reboot my sql server about 5 times a day due to it crashing, and I always get the error:
Warning: mysql_connect() [function.mysql-connect]: User food_user has already more than 'max_user_connections' active connections in /home/food/public_html/includes/functions.php on line 9
Not connected : User food_user has already more than 'max_user_connections' active connections
I dont understand what is causing this...I used the tweaking guide as found on here and my.cnf file looks like this:
[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
skip-locking
skip-innodb
query_cache_limit=8M
query_cache_size=256M
query_cache_type=1
max_connections=500
max_user_connections=10
interactive_timeout=20
wait_timeout=20
connect_timeout=6
thread_cache_size=128
key_buffer=16M
join_buffer=1M
max_allowed_packet=16M
table_cache=1024
record_buffer=1M
sort_buffer_size=2M
read_buffer_size=2M
max_connect_errors=10
# Try number of CPU's*2 for thread_concurrency
thread_concurrency=4
myisam_sort_buffer_size=64M
#log-bin
server-id=1
[mysql.server]
user=mysql
basedir=/var/lib
[safe_mysqld]
err-log=/var/log/mysqld.log
pid-file=/var/lib/mysql/mysql.pid
open_files_limit=8192
[mysqldump]
quick
max_allowed_packet=16M
[mysql]
no-auto-rehash
#safe-updates
[isamchk]
key_buffer=32M
sort_buffer=32M
read_buffer=16M
write_buffer=16M
[myisamchk]
key_buffer=32M
sort_buffer=32M
read_buffer=16M
write_buffer=16M
Through my WHM, i went to "Show Mysql Processes" and heres what it displays www.brinked.com/mysql.txt
This problem has also occured on another one of my websites on the same server that makes use of mysql. Am I doing something wrong here? I dont think its the script because it ran for years on another server just fine.
I am getting the error "max_user_connections exceeded" for database user "xxxx". So every time this happens I have to feed a new database admin login to my script.
There is nothing wrong with the script since it is very popular membership script. I think my host just allows low number of "max_user_connections". please advice me on a host that allows higher number of "max_user_connections"
I have purchased a dedicated server because my existing host gives me a database error during high traffic. the error is
Code:
"Cannot connect to MySQL: User admin0506 has already more than 'max_user_connections' active connections"
Now in my dedicated server I have root access and a Plesk control panel with admin access. I have created a database but I don't know how to change the parameter "max_user_connections". Please help me because I am loosing lot of business due to this issue.
Is 40 max_user_connections for MySql typical in a Shared Hosting environment? Or are there Shared Hosts out there that allow more than 40 max_user_connections per account?
View 14 Replies View RelatedI have bought a hosting from new hosting company.
I have total 5GB space wherein I can host unlimited domains.
When I uploaded my files ( for 4 sites ) I saw that I have used total 16 MB. But today when I logged in there I noticed that the cPanel shows that I have used total 22.75 MB
But I didn't upload anything that may take upto 6MB space
I just uploaded few images that may take maximum 100KB.
My hosting provider said this
"The extra disk space could be email messages stored on the server, mysql database files, etc... All these things are accounted for within your disk space."
But I replied that I don't use any database and I don't have any single email in my account so how that space can by consumed? Waiting for their further reply.
Right now APC shm_size is set to30 and since I am only using about 20% of the RAM in VPS, I thought it would be best to increase it a bit. Now how do I go about doing that?
View 2 Replies View RelatedI'm trying to start a website on a shoestring budget, but my programmer and host want to squeeze more out of us. We currently have a Custom VPS, w/cPanel and WHM. Everytime I try to upload a file(s) more than 10 mb, it will not go thru. My programmer told me to ask the server to increase capacity, they tell me it will cost me. My programmer says the same thing. Now if my programmer can do it, I assume it will be done through cPanel. Is there anyway I can do it myself, so for example, a file of lets say 25 mb will get uploaded? I have access to my cPanel.
View 14 Replies View RelatedApache keeps increasing processes and when it reaches 256 value, it crashes. These are the values from our conf file. This doenst happen everyday, it occurs once or twice a week and at random timing.
Timeout 120
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>
I enabled server-status and found request for index.html, is holding the processes. Only thing i see in access logs is ""OPTIONS * HTTP/1.0" 200 - "-" "Apache (internal dummy connection)""
I have had over 4 different VPS providers and in all of them, I was always using less than 5 gigs and most of it is from the OS and the VPS files, my website is less than 400 megs of size including the backups. For some reasons, my Disk Quota is at 8.3 gigs and it was at 8.2 gigs yesterday. My website's files are not that big and the Database is like 30 megs and the backups are compressed so they are like 4 megs. The problem is that I really don't know what files are making my Disk Quota to go up since I haven't uploaded anything or download files to my VPS.
View 6 Replies View RelatedI issued a self-signed certificate for Exim by running the following commands:
Code:
openssl req -new -x509 -keyout /etc/exim.key.tmp -out /etc/exim.cert
openssl rsa -in /etc/exim.key.tmp -out /etc/exim.key
rm -f /etc/exim.key.tmp
service exim restart
The problem is the certificate expires after one month. I have already edited my /usr/share/ssl/openssl.cnf with the following lines in order to increase this expiration time to one year and it worked for the SSL certificate issued for Apache, but it has no effect on the Exim certificate.
Code:
default_days = 365 # how long to certify for
default_crl_days= 365 # how long before next CRL
Should I edit another file or set it on another place? Does anyone know?
floodkoruma is a script which securing our servers from syn floods. But I couldnt understand our connection lost from server on that screen. Last screen is it.
last log messages
Jul 7 19:41:27 server filelimits: Increasing file system limits succeeded
Jul 7 19:42:25 server kernel: printk: 234 messages suppressed.
Jul 7 19:42:30 server kernel: printk: 1026977 messages suppressed.
Jul 7 19:49:42 server syslogd 1.4.1: restart.
Jul 7 19:49:42 server syslog: syslogd startup succeeded
as you can see I rebooted from apc server. But before it
Jul 7 19:42:30 server kernel: printk: 1026977 messages suppressed.
The last packet successfully received from the server was 60.410.682 milliseconds ago. The last packet sent successfully to the server was 60.410.687 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'auto Reconnect= true' to avoid this problem.
View 2 Replies View RelatedI look after a number of sites and monitor their stats. We use both webalizer and AWSTATS so we can have a comparison. Up until recently the stats for both of them where relatively the same, webalizer usually showing higher numbers as it doesn't filter bots but the progression of increase and decrease in stats was proportional. However, over the last few months a curious trend is appearing, the stats in AWSTATS are decreasing every month whereas the stats in Webalizer are increasing, the gap between them now is huge.
View 0 Replies View RelatedThe Linux Server got down when the MaxClients 256 is reached.
Error Log:
"server reached MaxClients setting, consider raising the MaxClients setting"
So that I have tried to increased the MaxClients Value to 500, after changed the value in httpd.conf and restart I get following error message.
" [notice] SIGHUP received. Attempting to restart
WARNING: MaxClients of 500 exceeds ServerLimit value of 256 servers,
lowering MaxClients to 256. To increase, please see the ServerLimit
directive."
So that I tried changed the Server limit in /usr/local/apache/include/httpd.h header file. but it seems like there is no entry.
Apache Version : 2.2.8
So I have added the ServerLimit 500 entry in httpd.conf file and restart the httpd service. But still shows the same warning mesg. Please help me regarding this.
We have the Dedicated server for Flash Game Server with following configuration.
RHEL4 OS
2GB RAM
Intel(R) Xeon(R) X3210 @ 2.13GHz
Cpanel Installed.
Apache 2.2.8
PHP 5.2.4
MySQL 4.1.2 (MySQL Server is working in differend server)