Are there any difference between max_connection and

Are there any difference between max_connection and

am 07.01.2010 06:30:59 von sac.faizal

--00151757098876eab5047c8c61a0
Content-Type: text/plain; charset=ISO-8859-1

Dear all

I can see max_connection and max_user_connection set to default value. but
daily i can see 40 to 70 users connection to the database. how? when
max_user_connections=0. what is the different between these two parameters..

max_connection=100
max_user_connections=0

thanks in advance.

Cheers
Faizal S
GSM : 9840118673
Blog: http://oradbapro.blogspot.com

--00151757098876eab5047c8c61a0--

Re: Are there any difference between max_connection and

am 07.01.2010 06:57:04 von sureshkumarilu

--000e0cd32f968b42ce047c8cbd0f
Content-Type: text/plain; charset=ISO-8859-1

Hi Faizal,
Max_connections are the connections for the overall MySQLD server.
Max_user_connections are the connections for the particular user ( i.e for
an account ) of the MySQLD server.

Suresh Kuna
MySQL DBA

On Thu, Jan 7, 2010 at 11:00 AM, F.A.I.Z.A.L wrote:

> Dear all
>
> I can see max_connection and max_user_connection set to default value. but
> daily i can see 40 to 70 users connection to the database. how? when
> max_user_connections=0. what is the different between these two
> parameters..
>
> max_connection=100
> max_user_connections=0
>
> thanks in advance.
>
> Cheers
> Faizal S
> GSM : 9840118673
> Blog: http://oradbapro.blogspot.com
>



--
Thanks
Suresh Kuna
MySQL DBA

--000e0cd32f968b42ce047c8cbd0f--

Re: Are there any difference between max_connection and

am 07.01.2010 07:50:39 von sac.faizal

--0016364ed7d069e492047c8d7efd
Content-Type: text/plain; charset=ISO-8859-1

hi Suresh

thanks. max_connection=100(default). so, it won't allow user more than 100?

and one more clarification. i am facing performance issue in mysqld. some
time mysqld consuming 100% cpu. so what i have to do now?

and the below parameters are in default values. if i increase the value. it
will help performance?

query_cache_size = 0
key_buffer_size = 8m
sort_buffer_size = 2m
innodb_buffer_pool_size = 8m

read_buffer = 2M
write_buffer = 2M

thanks in advance..

Cheers
Faizal S
GSM : 9840118673
Blog: http://oradbapro.blogspot.com


On Thu, Jan 7, 2010 at 11:27 AM, Suresh Kuna wrote:

> Hi Faizal,
> Max_connections are the connections for the overall MySQLD server.
> Max_user_connections are the connections for the particular user ( i.e for
> an account ) of the MySQLD server.
>
> Suresh Kuna
> MySQL DBA
>
> On Thu, Jan 7, 2010 at 11:00 AM, F.A.I.Z.A.L wrote:
>
>> Dear all
>>
>> I can see max_connection and max_user_connection set to default value. but
>> daily i can see 40 to 70 users connection to the database. how? when
>> max_user_connections=0. what is the different between these two
>> parameters..
>>
>> max_connection=100
>> max_user_connections=0
>>
>> thanks in advance.
>>
>> Cheers
>> Faizal S
>> GSM : 9840118673
>> Blog: http://oradbapro.blogspot.com
>>
>
>
>
> --
> Thanks
> Suresh Kuna
> MySQL DBA
>

--0016364ed7d069e492047c8d7efd--

Re: Are there any difference between max_connection and

am 07.01.2010 08:53:26 von sureshkumarilu

--00504502b010b4854b047c8e5d62
Content-Type: text/plain; charset=ISO-8859-1

Yes it won't allow except 1 connection for root user.
We have to monitor the MySQLD server and the queries runnning at that time.
As of now, increase the key_buffer_size to 64 or 128 mb according to your
indexes created and physical memory available.
and query_cache_size is purely depends on the queries that your application
hits the database.



On Thu, Jan 7, 2010 at 12:20 PM, F.A.I.Z.A.L wrote:

> hi Suresh
>
> thanks. max_connection=100(default). so, it won't allow user more than 100?
>
> and one more clarification. i am facing performance issue in mysqld. some
> time mysqld consuming 100% cpu. so what i have to do now?
>
> and the below parameters are in default values. if i increase the value. it
> will help performance?
>
> query_cache_size = 0
> key_buffer_size = 8m
> sort_buffer_size = 2m
> innodb_buffer_pool_size = 8m
>
> read_buffer = 2M
> write_buffer = 2M
>
>
> thanks in advance..
>
> Cheers
> Faizal S
> GSM : 9840118673
> Blog: http://oradbapro.blogspot.com
>
>
> On Thu, Jan 7, 2010 at 11:27 AM, Suresh Kuna wrote:
>
>> Hi Faizal,
>> Max_connections are the connections for the overall MySQLD server.
>> Max_user_connections are the connections for the particular user ( i.e for
>> an account ) of the MySQLD server.
>>
>> Suresh Kuna
>> MySQL DBA
>>
>> On Thu, Jan 7, 2010 at 11:00 AM, F.A.I.Z.A.L wrote:
>>
>>> Dear all
>>>
>>> I can see max_connection and max_user_connection set to default value.
>>> but
>>> daily i can see 40 to 70 users connection to the database. how? when
>>> max_user_connections=0. what is the different between these two
>>> parameters..
>>>
>>> max_connection=100
>>> max_user_connections=0
>>>
>>> thanks in advance.
>>>
>>> Cheers
>>> Faizal S
>>> GSM : 9840118673
>>> Blog: http://oradbapro.blogspot.com
>>>
>>
>>
>>
>> --
>> Thanks
>> Suresh Kuna
>> MySQL DBA
>>
>
>


--
Thanks
Suresh Kuna
MySQL DBA

--00504502b010b4854b047c8e5d62--

Re: Are there any difference between max_connection and

am 07.01.2010 11:21:19 von sac.faizal

--0016e64c34c0c3e85a047c906f93
Content-Type: text/plain; charset=ISO-8859-1

hi suresh

every 1 min nealy 40 to 80 users will hit the database. so, if i increase
query_cache_size it will avoid physical i/o and buffer missing?


Cheers
Faizal S
GSM : 9840118673
Blog: http://oradbapro.blogspot.com


On Thu, Jan 7, 2010 at 1:23 PM, Suresh Kuna wrote:

> Yes it won't allow except 1 connection for root user.
> We have to monitor the MySQLD server and the queries runnning at that time.
> As of now, increase the key_buffer_size to 64 or 128 mb according to your
> indexes created and physical memory available.
> and query_cache_size is purely depends on the queries that your application
> hits the database.
>
>
>
>
> On Thu, Jan 7, 2010 at 12:20 PM, F.A.I.Z.A.L wrote:
>
>> hi Suresh
>>
>> thanks. max_connection=100(default). so, it won't allow user more than
>> 100?
>>
>> and one more clarification. i am facing performance issue in mysqld. some
>> time mysqld consuming 100% cpu. so what i have to do now?
>>
>> and the below parameters are in default values. if i increase the value.
>> it will help performance?
>>
>> query_cache_size = 0
>> key_buffer_size = 8m
>> sort_buffer_size = 2m
>> innodb_buffer_pool_size = 8m
>>
>> read_buffer = 2M
>> write_buffer = 2M
>>
>>
>> thanks in advance..
>>
>> Cheers
>> Faizal S
>> GSM : 9840118673
>> Blog: http://oradbapro.blogspot.com
>>
>>
>> On Thu, Jan 7, 2010 at 11:27 AM, Suresh Kuna wrote:
>>
>>> Hi Faizal,
>>> Max_connections are the connections for the overall MySQLD server.
>>> Max_user_connections are the connections for the particular user ( i.e
>>> for an account ) of the MySQLD server.
>>>
>>> Suresh Kuna
>>> MySQL DBA
>>>
>>> On Thu, Jan 7, 2010 at 11:00 AM, F.A.I.Z.A.L wrote:
>>>
>>>> Dear all
>>>>
>>>> I can see max_connection and max_user_connection set to default value.
>>>> but
>>>> daily i can see 40 to 70 users connection to the database. how? when
>>>> max_user_connections=0. what is the different between these two
>>>> parameters..
>>>>
>>>> max_connection=100
>>>> max_user_connections=0
>>>>
>>>> thanks in advance.
>>>>
>>>> Cheers
>>>> Faizal S
>>>> GSM : 9840118673
>>>> Blog: http://oradbapro.blogspot.com
>>>>
>>>
>>>
>>>
>>> --
>>> Thanks
>>> Suresh Kuna
>>> MySQL DBA
>>>
>>
>>
>
>
> --
> Thanks
> Suresh Kuna
> MySQL DBA
>

--0016e64c34c0c3e85a047c906f93--

Re: Are there any difference between max_connection and max_user_connection?

am 07.01.2010 11:26:15 von sureshkumarilu

--part8648-boundary-338856453-2008220976
Content-Transfer-Encoding: base64
Content-Type: text/plain; charset="Windows-1252"

SWYgdGhlIHF1ZXJpZXMgYXJlIGlkZW50aWNhbCB0aGVuIFllcy4gSWYgbm90 IGl0IHdpbGwgZGVn
cmFkZSB0aGUgcXVlcnkgcGVyZm9ybWFuY2UuDQoNClNlbnQgZnJvbSBCbGFj a0JlcnJ5riBvbiBB
aXJ0ZWwNCg0KLS0tLS1PcmlnaW5hbCBNZXNzYWdlLS0tLS0NCkZyb206ICJG LkEuSS5aLkEuTCIg
PHNhYy5mYWl6YWxAZ21haWwuY29tPg0KRGF0ZTogVGh1LCA3IEphbiAyMDEw IDE1OjUxOjE5IA0K
VG86IFN1cmVzaCBLdW5hPHN1cmVzaGt1bWFyaWx1QGdtYWlsLmNvbT4NCkNj OiA8bXlzcWxAbGlz
dHMubXlzcWwuY29tPg0KU3ViamVjdDogUmU6IEFyZSB0aGVyZSBhbnkgZGlm ZmVyZW5jZS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EdTTSA6IDk4NDAxMTg2NzMNCj4+Pj4gQmxvZzogaHR0cDov L29yYWRiYXByby5i
bG9nc3BvdC5jb20NCj4+Pj4NCj4+Pg0KPj4+DQo+Pj4NCj4+PiAtLQ0KPj4+ IFRoYW5rcw0KPj4+
IFN1cmVzaCBLdW5hDQo+Pj4gTXlTUUwgREJBDQo+Pj4NCj4+DQo+Pg0KPg0K Pg0KPiAtLQ0KPiBU
aGFua3MNCj4gU3VyZXNoIEt1bmENCj4gTXlTUUwgREJBDQo+DQoNCg==

--part8648-boundary-338856453-2008220976--

Re: Are there any difference between max_connection and

am 07.01.2010 12:12:55 von sac.faizal

--0015175709884d30de047c9128f3
Content-Type: text/plain; charset=ISO-8859-1

hi

i can see many 'updates' is going every min. so is it good to increase this
query_cache_size ?..

what are the other action i can take to improve the performance of mysql
server

environment
version : 5.0.22
platform : redhat 5


Cheers
Faizal S
GSM : 9840118673
Blog: http://oradbapro.blogspot.com

--0015175709884d30de047c9128f3--

Re: Are there any difference between max_connection and

am 07.01.2010 12:26:36 von sureshkumarilu

--00504502b2230ed1a8047c915844
Content-Type: text/plain; charset=ISO-8859-1

It should be identical select statements which will improve performance and
not the updates.
Go through the below url for more information about optimization and
performance
http://dev.mysql.com/doc/refman/5.0/en/optimizing-the-server .html



On Thu, Jan 7, 2010 at 4:42 PM, F.A.I.Z.A.L wrote:

> hi
>
> i can see many 'updates' is going every min. so is it good to increase this
> query_cache_size ?..
>
> what are the other action i can take to improve the performance of mysql
> server
>
> environment
> version : 5.0.22
> platform : redhat 5
>
>
>
> Cheers
> Faizal S
> GSM : 9840118673
> Blog: http://oradbapro.blogspot.com
>
>
>


--
Thanks
Suresh Kuna
MySQL DBA

--00504502b2230ed1a8047c915844--