openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Pflueger <>
Subject AW: AW: OpenJPA (with slice) multithreaded scaling issues
Date Tue, 13 Sep 2011 16:58:24 GMT
Attached is a my test project again, this time including a threaded test (FetchThreadedJpaTest).
My Observations are, that the two threads block each other when using slice and accessing
the same single slice(I have not tested accessing different slices).
When you use the "openjpa" persistence unit instead of the "slice" unit, the two threads do
NOT block each other but run happily at the same time, and the whole program runs about twice
as fast.

So it seems slice is the issue here that's causing this blocking.


-----Urspr√ľngliche Nachricht-----
Von: Pinaki Poddar [] 
Gesendet: Dienstag, 13. September 2011 18:51
Betreff: Re: AW: OpenJPA (with slice) multithreaded scaling issues

  1. openjpa.Multithreaded=false -- right?
  2. A single user thread is accessing each entity manager -- right? That is
no entity manager is being accessed by more than one concurrent thread. 

Pinaki Poddar
Chair, Apache OpenJPA Project
View this message in context:
Sent from the OpenJPA Users mailing list archive at

SMA Solar Technology AG
Aufsichtsrat: Guenther Cramer (Vorsitzender)
Vorstand: Juergen Dolle, Roland Grebe, Uwe Hertel, Pierre-Pascal Urbon, Marko Werner
Handelsregister: Amtsgericht Kassel HRB 3972
Sitz der Gesellschaft: 34266 Niestetal
USt-ID-Nr. DE 113 08 59 54
WEEE-Reg.-Nr. DE 95881150

View raw message