You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by Michael Pflueger <Mi...@sma.de> on 2011/11/21 15:16:56 UTC

AW: AW: OpenJPA (with slice) multithreaded scaling issues

Hi,
are there any news about this issue?
Should I open a bugreport about this?

Michael

-----Ursprüngliche Nachricht-----
Von: Michael Pflueger [mailto:Michael.Pflueger@sma.de] 
Gesendet: Dienstag, 13. September 2011 18:58
An: users@openjpa.apache.org
Betreff: AW: AW: OpenJPA (with slice) multithreaded scaling issues

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 ___________________________________________________