openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Pflueger <Michael.Pflue...@sma.de>
Subject AW: AW: OpenJPA (with slice) multithreaded scaling issues
Date Tue, 13 Sep 2011 16:58:24 GMT
Right.
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.

Michael

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

Michael,
  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: http://openjpa.208410.n2.nabble.com/OpenJPA-with-slice-multithreaded-scaling-issues-tp6784525p6788333.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.
___________________________________________________

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
___________________________________________________

Mime
View raw message