Mysql 5.5 Dead Locks

2015-10-07 Thread Camilo Vieira
1:01:43', ESTUDO_ID=null, EXPEDICAO_ID=641, JURAMENTADO=null, NUMERO_LANCAMENTO=1, NUMERO_REPROGRAMACOES=null, PERIODO_LANCAMENTO_PARCIAL_ID=null, PRODUTO_EDICAO_ID=464, REPARTE=2700, REPARTE_PROMOCIONAL=0, SEQUENCIA_MATRIZ=null, STATUS='EXPEDIDO', TIPO_LANCAMENTO='LANCAMENTO', USUARIO_ID=11

Re: identifying the cause of old active transactions with locks

2012-09-03 Thread Raphael Bauduin
On Mon, Sep 3, 2012 at 11:32 AM, Raphael Bauduin wrote: > Hi, > > In the output of > SHOW ENGINE INNODB STATUS \G > > I have several old active transactions, each having locked some rows. > All or from the same process id, but with different thread ids. This > is the oldest one, which is 2.5 day

identifying the cause of old active transactions with locks

2012-09-03 Thread Raphael Bauduin
Hi, In the output of SHOW ENGINE INNODB STATUS \G I have several old active transactions, each having locked some rows. All or from the same process id, but with different thread ids. This is the oldest one, which is 2.5 days old: ---TRANSACTION 0 1532609805, ACTIVE 227995 sec, process no 2951

Re: Select query locks tables in Innodb

2009-03-25 Thread Carl
problem disappeared and the selects behave as one would expect. Many thanks to all who offered advice. Carl - Original Message - From: "Perrin Harkins" To: "Carl" Cc: Sent: Friday, March 13, 2009 1:40 PM Subject: Re: Select query locks tables in Innodb 2009/3/

Re: InnoDB - CREATE INDEX - Locks table for too long

2009-03-16 Thread Claudio Nanni
I also thought of "SELECT for UPDATE" that locks the records but does not prevent from inserting new ones, any suggestions? Thanks Clauido

Re: Select query locks tables in Innodb

2009-03-13 Thread Perrin Harkins
2009/3/12 Carl : > I am still a little puzzled about how we could have a relatively large set > of records (100,000+) and yet not cause any table to be locked as the server > has only 8GB of memory. What's the relationship you're implying between memory and locking? Multi-version concurrency doesn

Re: Select query locks tables in Innodb

2009-03-12 Thread Brent Baisley
's suggestions also. > > Carl > > > > > > - Original Message - From: "Brent Baisley" > To: "Carl" > Sent: Thursday, March 05, 2009 1:12 PM > Subject: Re: Select query locks tables in Innodb > > > Ok, so you have 687 unique or

Re: Select query locks tables in Innodb

2009-03-12 Thread Carl
elp and Baron's suggestions also. Carl - Original Message - From: "Brent Baisley" To: "Carl" Sent: Thursday, March 05, 2009 1:12 PM Subject: Re: Select query locks tables in Innodb Ok, so you have 687 unique organization serial numbers. That's not ver

Re: Select query locks tables in Innodb

2009-03-05 Thread Carl
on Schwartz" To: "Carl" Cc: Sent: Wednesday, March 04, 2009 8:11 PM Subject: Re: Select query locks tables in Innodb I don't think it locks the tables. The behavior may be similar, but I seriously doubt that's what's happening. Take a snapshot of SHOW INNODB STAT

Re: Select query locks tables in Innodb

2009-03-04 Thread Baron Schwartz
I don't think it locks the tables. The behavior may be similar, but I seriously doubt that's what's happening. Take a snapshot of SHOW INNODB STATUS while this is going on. And use mysqladmin debug and check the error log. Then put those in some pastebin and send us the link. A

Re: Select query locks tables in Innodb

2009-03-04 Thread Carl
receipt_master table), they are stopped until the report query finishes and query on that table shows in Navicat as waiting for lock ('Locked'.) Since the report query is only reading data, I am puzzled why it locks the tables. Any ideas? TIA, Carl - Original Message ---

Re: Select query locks tables in Innodb

2009-03-04 Thread Baron Schwartz
Carl, Locked status in SHOW PROCESSLIST and a table being locked are different. There is a bug in MySQL that shows Locked status for queries accessing InnoDB tables in some cases. What version of MySQL are you using? The table is not really locked, you're just seeing that as a side effect of wh

Re: Select query locks tables in Innodb

2009-03-04 Thread Baron Schwartz
Carl, Locked status in SHOW PROCESSLIST and a table being locked are different. There is a bug in MySQL that shows Locked status for queries accessing InnoDB tables in some cases. What version of MySQL are you using? The table is not really locked, you're just seeing that as a side effect of wh

Re: Select query locks tables in Innodb

2009-03-04 Thread Carl
the isolation level but I believe it is whatever was set out of the box (five years ago.) Thanks, Carl - Original Message - From: "Perrin Harkins" To: "Carl" Cc: Sent: Wednesday, March 04, 2009 1:49 PM Subject: Re: Select query locks tables in Innodb 2009

Re: Select query locks tables in Innodb

2009-03-04 Thread Carl
report query. It is a foreign key on one of the files that is used. TIA, Carl - Original Message - From: "Baron Schwartz" To: "Brent Baisley" Cc: "Carl" ; Sent: Tuesday, March 03, 2009 5:50 PM Subject: Re: Select query locks tables in Innodb On Tue,

Re: Select query locks tables in Innodb

2009-03-04 Thread Perrin Harkins
2009/3/4 Carl : > However, when I had all the pieces in the query > (copy attached), I could easily see it was locking tables using the Server > Monitor in Navicat. I don't know what that is, but I think you'd better look at something closer to the bone, like SHOW INNODB STATUS. > Explain (copy a

Re: Select query locks tables in Innodb

2009-03-04 Thread Carl
Message - From: "Baron Schwartz" To: "Brent Baisley" Cc: "Carl" ; Sent: Tuesday, March 03, 2009 5:50 PM Subject: Re: Select query locks tables in Innodb On Tue, Mar 3, 2009 at 12:35 PM, Brent Baisley wrote: A SELECT will/can lock a table. It almost al

Re: Select query locks tables in Innodb

2009-03-04 Thread Carl
om: "Baron Schwartz" To: "Brent Baisley" Cc: "Carl" ; Sent: Tuesday, March 03, 2009 5:50 PM Subject: Re: Select query locks tables in Innodb On Tue, Mar 3, 2009 at 12:35 PM, Brent Baisley wrote: A SELECT will/can lock a table. It almost always does in MyISAM (no inse

Re: Select query locks tables in Innodb

2009-03-03 Thread Baron Schwartz
On Tue, Mar 3, 2009 at 12:35 PM, Brent Baisley wrote: > A SELECT will/can lock a table. It almost always does in MyISAM (no > insert/updates), almost never does in InnoDB. There is an exception to > every rule. The problem is most likely in the 107488 rows part of the > query. That's too many rows

Re: Select query locks tables in Innodb

2009-03-03 Thread Perrin Harkins
On Tue, Mar 3, 2009 at 10:53 AM, Carl wrote: > A query that is selecting data for a report locks the files that it accesses > forcing users who are attempting to enter transactions to wait until the > select query is finished. Is it an INSERT INTO...SELECT FROM? Those lock. Also,

Re: Select query locks tables in Innodb

2009-03-03 Thread Brent Baisley
this problem for a couple of weeks and have been > unable to find a solution. > > The MySQL version is  5.0.37 and it is running on a Slackware Linux 11 box. > > The problem: > > A query that is selecting data for a report locks the files that it accesses > forcing users w

Select query locks tables in Innodb

2009-03-03 Thread Carl
I have been wrestling with this problem for a couple of weeks and have been unable to find a solution. The MySQL version is 5.0.37 and it is running on a Slackware Linux 11 box. The problem: A query that is selecting data for a report locks the files that it accesses forcing users who are

Re: InnoDB - CREATE INDEX - Locks table for too long

2009-02-21 Thread Claudio Nanni
Hi Baron! I am going to try your solution on preprod on monday. In the meantime, using your great slow-query-log analyzer, the strategy I thought of was similar to yours, but using only one select that only put a READ lock on the records because, while the table is very 'selected' also at nigh

Re: InnoDB - CREATE INDEX - Locks table for too long

2009-02-20 Thread Baron Schwartz
Hi! On Thu, Feb 19, 2009 at 2:14 PM, Claudio Nanni wrote: > I need to add an index on a table on a production server. > It is one 7Gb InnoDB table with single .ibd file (one_file_per_table), > the index creation on preprod server took 40 minutes but table was smaller. > I tried to add the index b

InnoDB - CREATE INDEX - Locks table for too long

2009-02-19 Thread Claudio Nanni
I need to add an index on a table on a production server. It is one 7Gb InnoDB table with single .ibd file (one_file_per_table), the index creation on preprod server took 40 minutes but table was smaller. I tried to add the index but was locking all applications on production and had to kill it.

Re: procedure locks all statemens

2008-03-29 Thread Baron Schwartz
It is probably keeping a global lock on something else: perhaps the MyISAM key buffer is at fault. Try loading this table's indexes into a different key buffer and see what happens. On Fri, Mar 28, 2008 at 2:39 PM, Saravanan <[EMAIL PROTECTED]> wrote: > It doesn't lock single

Re: procedure locks all statemens

2008-03-28 Thread Jaime Fuentes
Hi Last days frequently I see an error message : "Can't create a new thread (errno 12) if you are not out of available memory, you can consult the manual for a possible OS-dependent bug." mysql is 5.0.41 server RAm: 2Gb and 100 Gb free spaces hard disk users around 64 Into my.ini the max_con

Re: procedure locks all statemens

2008-03-28 Thread Saravanan
It doesn't lock single table it locks all other select and update statements of other tables too which I don't use in procedure. Saravanan --- On Sat, 3/29/08, B. Keith Murphy <[EMAIL PROTECTED]> wrote: > From: B. Keith Murphy <[EMAIL PROTECTED]> > Subject: Re: p

Re: procedure locks all statemens

2008-03-28 Thread B. Keith Murphy
When it selects values from the myisam table it is locking the entire table. Saravanan wrote: Hi Lists, i have created a procedure. It selects values from a myisam table and updates an innodb table one by one ( not as huge update it clearly use where clause). but whenever I run the procedure

procedure locks all statemens

2008-03-28 Thread Saravanan
Hi Lists, i have created a procedure. It selects values from a myisam table and updates an innodb table one by one ( not as huge update it clearly use where clause). but whenever I run the procedure other statements waits for longtime until my procedure completes updates. any idea why it blocks

updating innodb records locks all table

2008-03-25 Thread Saravanan
Hi Lists, I am using the version 5.0.51a. After I compiled that It shows version as "5.0.51alog". Here is the problem I am facing. I run a procedure to update the table. Which updates a innodb table. But when It updates all other sql statements are locked and I can see hundreds of sql stateme

Re: InnoDB ANALYZE and locks

2007-11-20 Thread Ananda Kumar
It locks the table for both. regards anandkl On 11/20/07, Thomas Raso <[EMAIL PROTECTED]> wrote: > > Hi all, > > just a simple question : > > Does the query ANALYZE position reads and/or writes locks ? > > I read these two pages but I didn't find the answer..

InnoDB ANALYZE and locks

2007-11-20 Thread Thomas Raso
Hi all, just a simple question : Does the query ANALYZE position reads and/or writes locks ? I read these two pages but I didn't find the answer... http://www.mysql.com/news-and-events/newsletter/2003-04/a000155.html http://dev.mysql.com/doc/refman/5.0/en/innodb-restrictions.html T

Re: Full Innodb Table Locks deadlocking with AUTO_INC locks.

2007-10-02 Thread Baron Schwartz
--- Original Message From: Baron Schwartz <[EMAIL PROTECTED]> To: William Newton <[EMAIL PROTECTED]> Cc: mysql@lists.mysql.com Sent: Tuesday, October 2, 2007 12:05:41 PM Subject: Re: Full Innodb Table Locks deadlocking with AUTO_INC locks. Hi William, William Newton wrote: Hell

Re: Full Innodb Table Locks deadlocking with AUTO_INC locks.

2007-10-02 Thread William Newton
ssage From: Baron Schwartz <[EMAIL PROTECTED]> To: William Newton <[EMAIL PROTECTED]> Cc: mysql@lists.mysql.com Sent: Tuesday, October 2, 2007 12:05:41 PM Subject: Re: Full Innodb Table Locks deadlocking with AUTO_INC locks. Hi William, William Newton wrote: > Hello List, > &g

Re: Full Innodb Table Locks deadlocking with AUTO_INC locks.

2007-10-02 Thread Baron Schwartz
one of the INSERT's times out then the LOCK statement manages to get the table lock. But it happens repeatedly with as few as two connections sending inserts. The server can handle many many more concurrent inserts if the lock is removed , with out resulting in any locks. Here is the o

Full Innodb Table Locks deadlocking with AUTO_INC locks.

2007-10-02 Thread William Newton
t then the LOCK statement manages to get the table lock. But it happens repeatedly with as few as two connections sending inserts. The server can handle many many more concurrent inserts if the lock is removed , with out resulting in any locks. Here is the output of show proc

Re: String Locks

2007-06-08 Thread Baron Schwartz
Hi Michael, Michael Dykman wrote: I saw mention of something called string locks in an earlier thread, yet I see nothing like it in the mysql documentation. Could somebody please point me at a reference? It is the function GET_LOCK() you want: http://dev.mysql.com/doc/en/miscellaneous

String Locks

2007-06-07 Thread Michael Dykman
I saw mention of something called string locks in an earlier thread, yet I see nothing like it in the mysql documentation. Could somebody please point me at a reference? -- - michael dykman - [EMAIL PROTECTED] - All models are wrong. Some models are useful. -- MySQL General Mailing List For

Re: Befuddled Why This Locks

2006-12-22 Thread Dan Nelson
In the last episode (Dec 22), Jason J. W. Williams said: > I guess I'm curious why this query acquires a read lock. Is it > because its in a transaction? Thank you very much in advance! You mean as opposed to a write lock? Only inserts and updates need write locks. Or do you mea

Re: Befuddled Why This Locks

2006-12-22 Thread Jason J. W. Williams
dvice/guidance I would be very > grateful. I'm trying to determine why the following SELECT query > table locks the "bad_behavior" table referenced the query. > > 'bad_behavior' is MyISAM > 'c' is InnoDB > 'a' is InnoDB > > Query:

Re: Befuddled Why This Locks

2006-12-22 Thread Dan Nelson
In the last episode (Dec 21), Jason J. W. Williams said: > If someone could suggest some advice/guidance I would be very > grateful. I'm trying to determine why the following SELECT query > table locks the "bad_behavior" table referenced the query. > > 'bad_

Befuddled Why This Locks

2006-12-21 Thread Jason J. W. Williams
Hi All, If someone could suggest some advice/guidance I would be very grateful. I'm trying to determine why the following SELECT query table locks the "bad_behavior" table referenced the query. 'bad_behavior' is MyISAM 'c' is InnoDB 'a' is InnoDB Q

Re: How to view locks in MySQL

2006-11-02 Thread Rolando Edwards
/refman/5.0/en/lock-tables.html - Original Message - From: Ow Mun Heng <[EMAIL PROTECTED]> To: Submit MySQL Sent: Wednesday, November 1, 2006 11:21:25 PM GMT-0500 US/Eastern Subject: How to view locks in MySQL Under MSSQL there's a stored procedure called sp_lock which can

How to view locks in MySQL

2006-11-01 Thread Ow Mun Heng
Under MSSQL there's a stored procedure called sp_lock which can be used. Is there an equivalent one in mySQL? -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: Innodb Locks

2006-10-10 Thread Rick James
e- > From: Robert DiFalco [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 10, 2006 11:50 AM > To: Jerry Schwartz; Baron Schwartz > Cc: Rick James; mysql@lists.mysql.com; [EMAIL PROTECTED] > Subject: RE: Innodb Locks > > Right, as I understand it the query optimizer in

RE: Innodb Locks

2006-10-10 Thread Robert DiFalco
k James'; mysql@lists.mysql.com; [EMAIL PROTECTED] Subject: RE: Innodb Locks It probably uses a single lock to handle a JOIN, and two locks to handle a sub-SELECT. I doubt that it helps, but if I'm right it will change what you see when you poking around. Regards, Jerry Schwartz Global Inf

RE: Innodb Locks

2006-10-10 Thread Jerry Schwartz
It probably uses a single lock to handle a JOIN, and two locks to handle a sub-SELECT. I doubt that it helps, but if I'm right it will change what you see when you poking around. Regards, Jerry Schwartz Global Information Incorporated 195 Farmington Ave. Farmington, CT 06032 860.674.8796

RE: Innodb Locks

2006-10-10 Thread Robert DiFalco
: Re: Innodb Locks It's not a bug in InnoDB. There are far more knowledgeable people than I on this list, but it should get a share-mode lock on anything it selects from, otherwise there might be inconsistencies as it tries to serialize different transactions into the binary log for replic

Re: Innodb Locks

2006-10-10 Thread Baron Schwartz
sregarding whether performance would be better or worse with a JOIN, what I find odd is that this DELETE statement on Vers seems to be putting locks on Elems. Might this be a bug in InnoDB? Innotop has this to say: Locks Held and Waited For Txn What Mode

RE: Innodb Locks

2006-10-10 Thread Robert DiFalco
; [EMAIL PROTECTED] Subject: RE: Innodb Locks We'll do some testing with innodb_locks_unsafe_for_binlog but if this fixes the problem then it is a pretty safe assumption that the problem also exists with subqueries in DELETE and UPDATE and not just for that one case of INSERT as the article p

RE: Innodb Locks

2006-10-10 Thread Robert DiFalco
Baron Schwartz [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 1:39 PM To: Rick James Cc: Robert DiFalco; mysql@lists.mysql.com; [EMAIL PROTECTED] Subject: Re: Innodb Locks There is a detailed write-up on how locking works in the manual: http://dev.mysql.com/doc/refman/5.0/en/i

RE: Innodb Locks

2006-10-10 Thread Robert DiFalco
odeID = ?))) Disregarding whether performance would be better or worse with a JOIN, what I find odd is that this DELETE statement on Vers seems to be putting locks on Elems. Might this be a bug in InnoDB? Innotop has this to say: Locks Held and Waited For Txn

Re: Innodb Locks

2006-10-03 Thread Baron Schwartz
the long-running query as short as possible is probably a good idea. Maybe you can break it up into several queries so it doesn't try to lock so many rows at once. There could be many other approaches too, it just depends on your needs and data. Without altering how locks are handled

RE: Innodb Locks

2006-10-03 Thread Robert DiFalco
: mysql@lists.mysql.com Subject: Re: Innodb Locks On 10/2/06, Robert DiFalco wrote: > Is there a detailed source for when innodb creates row or table locks? The sourcecode. > I have a situation where one thread is performing this in one > transaction: > > UPDATE SomeTable

Re: Innodb Locks

2006-10-03 Thread Jochem van Dieten
On 10/2/06, Robert DiFalco wrote: Is there a detailed source for when innodb creates row or table locks? The sourcecode. I have a situation where one thread is performing this in one transaction: UPDATE SomeTable SET WHERE SomeTable.id = N; This is invoked after another thread

RE: Innodb Locks

2006-10-03 Thread Rick James
id IN (SELECT id FROM t); > -Original Message- > From: Robert DiFalco [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 03, 2006 9:26 AM > To: mysql@lists.mysql.com; [EMAIL PROTECTED] > Subject: RE: Innodb Locks > > Any thoughts on this? Should SomeTable be locked when

RE: Innodb Locks

2006-10-03 Thread Robert DiFalco
Any thoughts on this? Should SomeTable be locked when performing the UPDATE on AnotherTable? --- Is there a detailed source for when innodb creates row or table locks? I have a situation where one thread is performing this in one transaction: UPDATE SomeTable SET WHERE

Innodb Locks

2006-10-02 Thread Robert DiFalco
Is there a detailed source for when innodb creates row or table locks? I have a situation where one thread is performing this in one transaction: UPDATE SomeTable SET WHERE SomeTable.id = N; This is invoked after another thread has kicked off this long running query in another

Re: Too many table-locks

2006-08-21 Thread Dan Buettner
ning on different hosts, the db server is running on Linux db 2.6.14.2 #4 SMP Thu Nov 17 09:54:44 CET 2005 x86_64 GNU/Linux model name : Intel(R) Pentium(R) D CPU 3.00GHz stepping: 4 cpu MHz : 3000.229 cache size : 1024 KB 4GB RAM. My problem is that I get a

Re: Too many table-locks

2006-08-21 Thread Adrian Bruce
Assuming that the locking issues occur mainly when an insert is being performed (i.e. replying to a post) then what about using read local locks for selects so that you can perform con-current inserts? If you have a lot of old threads that are no longer updated but viewed regularly then you

Too many table-locks

2006-08-21 Thread Marco Simon
he db server is running on Linux db 2.6.14.2 #4 SMP Thu Nov 17 09:54:44 CET 2005 x86_64 GNU/Linux model name : Intel(R) Pentium(R) D CPU 3.00GHz stepping: 4 cpu MHz : 3000.229 cache size : 1024 KB 4GB RAM. My problem is that I get a lot and very long lock

Show named locks currently held by any thread

2006-06-27 Thread Achim Abeling
Hi, is is possible to show a list of all named locks (obtained by GET_LOCK)? Best regards Achim -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: mysqldump locks dumping db "mysql" in 5.1.9

2006-06-07 Thread Greg 'groggy' Lehey
On Wednesday, 7 June 2006 at 11:35:56 -0700, James Barros wrote: > Hello, > > I've got 5.1.9 running on FreeBSD and I'm trying to do some backups, > but mysqldump is locking up on me. > > when I run: > mysqldump -uroot --opt mysql > (and yes, it's a test box, so there is no root password. I can >

mysqldump locks dumping db "mysql" in 5.1.9

2006-06-07 Thread James Barros
Hello, I've got 5.1.9 running on FreeBSD and I'm trying to do some backups, but mysqldump is locking up on me. when I run: mysqldump -uroot --opt mysql (and yes, it's a test box, so there is no root password. I can duplicate this behavior with other accounts with sufficient priv's specify

Re: Why do these transactions show table locks?

2006-02-27 Thread Heikki Tuuri
Robert, - Original Message - From: ""Robert DiFalco"" <[EMAIL PROTECTED]> Newsgroups: mailing.database.myodbc Sent: Sunday, February 26, 2006 8:27 PM Subject: RE: Why do these transactions show table locks? It might be important to note that I have a d

RE: Why do these transactions show table locks?

2006-02-26 Thread Robert DiFalco
-Original Message- From: Robert DiFalco [mailto:[EMAIL PROTECTED] Sent: Sunday, February 26, 2006 9:33 AM To: mysql@lists.mysql.com; [EMAIL PROTECTED] Subject: Why do these transactions show table locks? My understanding is that innodb should not be using table locks for insert, update, or

Why do these transactions show table locks?

2006-02-26 Thread Robert DiFalco
My understanding is that innodb should not be using table locks for insert, update, or delete. However, the following transactions are showing table locks. What's up? R. ---TRANSACTION 0 4573, ACTIVE 1 sec, OS thread id 3112 setting table lock mysql tables in use 1, locked 0 LOCK WAIT 2

Re: transaction with bdb table gives error "Lock table is out of available locks"

2005-12-09 Thread Marco Baroetto
ysqld_safe --defaults-file=/etc/my.cnf >--pid-file=/var/run/mysqld/mysqld.pid -O bdb_max_lock=12 >mysql 9184 33.6 3.3 179136 70148 ? Sl 01:00 177:45 >/usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr >--datadir=/var/lib/mysql --user=mysql >--pid-file=/va

Re: transaction with bdb table gives error "Lock table is out of available locks"

2005-12-09 Thread Marco Baroetto
gt;begin work >>delete from mytable where myfield='boo' /*delete about 100 rows*/ >>for (i=0; i<=100; i++){ >>insert into mytable values(...); >>} >>commit >> >>During the insert command i get the following error: >>"Lock table is ou

Re: transaction with bdb table gives error "Lock table is out of available locks"

2005-12-09 Thread Marco Baroetto
Bdb tables locks are at page level, how can I determine the number of pages of my table? mysql> show variables like '%binlog_cache_size%'; +---++ | Variable_name | Value | +---++ | binlog_cache_siz

Re: transaction with bdb table gives error "Lock table is out of available locks"

2005-12-08 Thread Jim Winstead
for (i=0; i<=100; i++){ > insert into mytable values(...); > } > commit > > During the insert command i get the following error: > "Lock table is out of available locks" > > I tried to resolve the problem starting mysqld with -O > bdb_max_lock=6 and later with

Re: transaction with bdb table gives error "Lock table is out of available locks"

2005-12-08 Thread sheeri kritzer
Hi Marco, My hint is to read the BDB section of the manual: http://dev.mysql.com/doc/refman/5.0/en/bdb-start.html specifically the part that says: " With the bdb_max_lock variable, you can specify the maximum number of locks that can be active on a BDB table. The default is 10,000. You s

transaction with bdb table gives error "Lock table is out of available locks"

2005-12-07 Thread Marco Baroetto
and i get the following error: "Lock table is out of available locks" I tried to resolve the problem starting mysqld with -O bdb_max_lock=6 and later with -O bdb_max_lock=12 but i still receive the same error. dbd related variables follows: mysql>

Re: Locks acquired with get_lock() persisting, even after MySQL thread has exited

2005-09-11 Thread Josh Chamas
Adam Newby wrote: Description: We have distributed applications which make extensive use of the get_lock() function to acquire a system-wide lock. Occasionally, all copies of a given application block attempting to acquire a lock on the same lock string. Using is_used_lock() repo

Locks acquired with get_lock() persisting, even after MySQL thread has exited

2005-09-07 Thread Adam Newby
Description: We have distributed applications which make extensive use of the get_lock() function to acquire a system-wide lock. Occasionally, all copies of a given application block attempting to acquire a lock on the same lock string. Using is_used_lock() reports

AW: Locks on Heap tables

2005-07-07 Thread Hannes Rohde
icht- Von: Gleb Paharenko [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 7. Juli 2005 10:35 An: mysql@lists.mysql.com Betreff: Re: Locks on Heap tables Hello. Are you sure that your server doesn't swap? Providing output of 'SHOW STATUS', 'SHOW VARIABLES' and your table definiti

Re: Locks on Heap tables

2005-07-07 Thread Gleb Paharenko
session management. We are using a heap for that = > case > as well as for instance phpbb does.=20 > Lately we are experiencing long lasting table locks due to deletes or > updates on the session table. I know that heap tables only support table > wide locking, but shouldn&#x

Locks on Heap tables

2005-07-07 Thread Hannes Rohde
experiencing long lasting table locks due to deletes or updates on the session table. I know that heap tables only support table wide locking, but shouldn't those locks be gone quite fast? I have already checked the obvious reasons for this kind of behaviour like swapping but I couldn't find anyt

question to locks on an update statement

2005-04-07 Thread Reto Breitenmoser
Hi I saw following example in the documentation on chapter 15.5 when you look at the property "innodb_locks_unsafe_for_binlog": Example from the docu START--- CREATE TABLE A(A INT NOT NULL, B INT); INSERT INTO A VALUES

Re: 4.1.7 insert locks killing me

2004-11-16 Thread matt_lists
Also consider buying MySQL support, which will give your requests a bit more weight. If that put select into table without locks back into mysql, I would however, I dont think it will, I've got X dollars for hardware/software on a given project, my only option is a different database fo

Re: 4.1.7 insert locks killing me

2004-11-16 Thread Dan Nelson
report says. INSERT ... SELECTs don't have a simple record source like INSERT VALUES() or LOAD DATA. They're pulling from another table, which requires table locks, and DELAYED inserts apparently don't use true table locks. > I view this as a showstopper on new projects, I dont want

Re: 4.1.7 insert locks killing me

2004-11-16 Thread matt_lists
ions? Please see http://dev.mysql.com/doc/mysql/en/News-4.0.18.html : INSERT DELAYED ... SELECT ... could cause table corruption because tables were not locked properly. This is now fixed by ignoring DELAYED in this context. (Bug #1983) http://bugs.mysql.com/bug.php?id=1983 Obviously I saw

Re: 4.1.7 insert locks killing me

2004-11-15 Thread Dan Nelson
In the last episode (Nov 15), matt_lists said: > I think I found the problem all our input files are prepped in a > separate table then insert delayed select * from temptable into > production > > 4.0.18-19 removed this! > > I dont know why they would allow insert delayed values, or load data > i

Re: 4.1.7 insert locks killing me

2004-11-15 Thread matt_lists
I think I found the problem all our input files are prepped in a separate table then insert delayed select * from temptable into production 4.0.18-19 removed this! I dont know why they would allow insert delayed values, or load data infile concurrent but not on a select into table!? Sucks, rewrit

Re: 4.1.7 insert locks killing me

2004-11-15 Thread mos
At 02:12 PM 11/15/2004, you wrote: How do I avoid insert locks? We updated from mysql 4.0.18 to 4.1.7 now all my inserts lock tables, I had 500 asp timeouts within 30 minutes after installing 4.1.7 I also had over 400 connections to the database, as all the threads were locked waiting, asp

4.1.7 insert locks killing me

2004-11-15 Thread matt_lists
How do I avoid insert locks? We updated from mysql 4.0.18 to 4.1.7 now all my inserts lock tables, I had 500 asp timeouts within 30 minutes after installing 4.1.7 I also had over 400 connections to the database, as all the threads were locked waiting, asp timeout is set to 30 seconds, the

Re: Trans.: Re: Read locks with InnoDB?

2004-11-10 Thread Julien ALLANOS
Selon Harald Fuchs <[EMAIL PROTECTED]>: > In article <[EMAIL PROTECTED]>, > Julien ALLANOS <[EMAIL PROTECTED]> writes: > > > Well, I've tried the following scenario: > > > 1/ User A: SET GLOBAL TRANSACTION ISOLATION LEVEL READ COMMITTED; > > 2/ User B: SET GLOBAL TRANSACTION ISOLATION LEVEL READ C

Re: Trans.: Re: Read locks with InnoDB?

2004-11-10 Thread Harald Fuchs
In article <[EMAIL PROTECTED]>, Julien ALLANOS <[EMAIL PROTECTED]> writes: > Well, I've tried the following scenario: > 1/ User A: SET GLOBAL TRANSACTION ISOLATION LEVEL READ COMMITTED; > 2/ User B: SET GLOBAL TRANSACTION ISOLATION LEVEL READ COMMITTED; > 3/ User A: START TRANSACTION; > 4/ User B

Re: Trans.: Re: Read locks with InnoDB?

2004-11-10 Thread Julien ALLANOS
Selon Harald Fuchs <[EMAIL PROTECTED]>: > In article <[EMAIL PROTECTED]>, > Julien ALLANOS <[EMAIL PROTECTED]> writes: > > > Thanks, I've already read these pages. > > > Here is a test example I've done: > > > 1/ User A: SET GLOBAL TRANSACTION ISOLATION LEVEL READ COMMITTED; > > 2/ User B: SET GLO

Re: Trans.: Re: Read locks with InnoDB?

2004-11-10 Thread Harald Fuchs
In article <[EMAIL PROTECTED]>, Julien ALLANOS <[EMAIL PROTECTED]> writes: > Thanks, I've already read these pages. > Here is a test example I've done: > 1/ User A: SET GLOBAL TRANSACTION ISOLATION LEVEL READ COMMITTED; > 2/ User B: SET GLOBAL TRANSACTION ISOLATION LEVEL READ COMMITTED; > 3/ Use

Trans.: Re: Read locks with InnoDB?

2004-11-09 Thread Julien ALLANOS
Date : Tue, 9 Nov 2004 18:35:40 +0100 De : Julien ALLANOS <[EMAIL PROTECTED]> Adresse de retour :Julien ALLANOS <[EMAIL PROTECTED]> Sujet : Re: Read locks with InnoDB? À : Gleb Paharenko <[EMAIL PROTECTED]> > Julien ALLANOS <[EMAIL PROTECTED]> wrote: &

Re: Read locks with InnoDB?

2004-11-09 Thread Gleb Paharenko
he table, user B executes th= > e > SELECT query: he gets the same result as A, and starts doing the *same* s= > tuff > as A, which is something I need to avoid. > > How could I achieve this? Is it possible to have blocking SELECT queries,= > or to > set read

Read locks with InnoDB?

2004-11-09 Thread Julien ALLANOS
ame* stuff as A, which is something I need to avoid. How could I achieve this? Is it possible to have blocking SELECT queries, or to set read locks on one row (without locking all the table, to let others users purge the following entries)? Thanks for feedback. -- Ju

Re: release all mysql locks

2004-08-23 Thread Egor Egorov
Mayuran Yogarajah <[EMAIL PROTECTED]> wrote: > Is there any command I can issue to release ALL locks held by any/all > transactions ? I know that restarting the server does this, but is there > a way to do this without restarting ? No. -- For technical support contra

release all mysql locks

2004-08-16 Thread Mayuran Yogarajah
Is there any command I can issue to release ALL locks held by any/all transactions ? I know that restarting the server does this, but is there a way to do this without restarting ? thanks, Mayuran -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http

Re: Replace delayed locks table

2004-08-13 Thread SGreen
I hate to pry (snoop) but my curiosity is just going nuts! If this is a sensitive issue, please ignore my questions What are you doing that requires you to mass-replace so many records so often? Are they design or processing requirements (or both) that require this kind of bulk exchange of

Re: Replace delayed locks table

2004-08-13 Thread matt ryan
matt ryan wrote: Replace does a delete followed by an insert. Ahh, I'm testing innodb on our tables with this problem Doh another problem innodb has no merge option, I have too much data, and the only way to deal with it, is partition the data and then tie it together with merge views. Unfortun

Re: Replace delayed locks table

2004-08-13 Thread gerald_clark
matt ryan wrote: matt ryan wrote: Replace does a delete followed by an insert. Ahh, I'm testing innodb on our tables with this problem I've switched to innodb but performance isnt very good while the insert runs, here's what I get for performance select count(*) from rondon; 1 row in .13 sec sele

Re: Replace delayed locks table

2004-08-13 Thread matt ryan
matt ryan wrote: Replace does a delete followed by an insert. Ahh, I'm testing innodb on our tables with this problem I've switched to innodb but performance isnt very good while the insert runs, here's what I get for performance select count(*) from rondon; 1 row in .13 sec select count(*) from r

  1   2   3   >