What's your connection URL ?
Are you using MULTI_THREADED or MVCC mode ?
regards,
Dario
El 08/10/10 15:29, LORDs_diakonos escribi�:
Thanks,
Jason Tesser
dotCMS Lead Development Manager
1-305-858-1422
On Fri, Oct 8, 2010 at 3:08 PM, Dario Fassi <dfa...@gmail.com> wrote:
> Hi,
> I use DBCP on my projects and don't have this problems.
>
> What's your connection URL ?
> Are you using MULTI_THREADED or MVCC mode ?
>
> regards,
> Dario
>
>
> El 08/10/10 15:29, LORDs_diakonos escribió:
>> We are using dbcp to configure db pooling.
>>
>> I have many threads stuck like the one below. Any reason why this
>> would be . Seems like an odd place to be stuck. Does H2 limit the
>> number of connections or something?
>>
>> "TP-Processor41" daemon prio=10 tid=0x00002aad4c60e000 nid=0x4e3f
>> waiting for monitor entry [0x0000000045c83000]
>> java.lang.Thread.State: BLOCKED (on object monitor)
>> at org.h2.command.Command.executeQuery(Command.java:130)
>
> --
> You received this message because you are subscribed to the Google Groups "H2 Database" group.
> To post to this group, send email to h2-da...@googlegroups.com.
> To unsubscribe from this group, send email to h2-database...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/h2-database?hl=en.
>
>
regards,The value 0 means no locking (should only be used for testing; also known as
READ_UNCOMMITTED). Please note that usingSET LOCK_MODE0 while at the same time using multiple connections may result in inconsistent transactions.
I don't know what the problem could be, but it might be related to
using lock_mode=0. It is dangerous to use it.
In future releases, getAutoCommit() will not execute a query by the
way. But I'm not sure if this will make your problem go away.
Regards,
Thomas