Re: Thread locked with JAASLogin Module called by CXF Interceptor (Karaf 2.4)

2015-06-05 Thread Charles Moulliard
Hi, Please find here the zip file containing the Threads blocked/locked - https://www.dropbox.com/s/y94x550v1neiksf/cxf-jaas-issue-june-2015-ThreadDump.zip?dl=0 As you will see, the thread blocks here - see (org.apache.karaf.jaas.modules.properties.PropertiesLoginModule.initialize(PropertiesLoginM

Re: Thread locked with JAASLogin Module called by CXF Interceptor (Karaf 2.4)

2015-06-05 Thread Morgan Hautman
Maybe we first need to be sure that it is the problem? Regards Morgan On 5/06/2015 10:20, Christian Schneider wrote: I agree that loading the file each time does not scale well. As the property files are mostly static I propose we install a listener for changes and cache the contents in a threa

Re: Thread locked with JAASLogin Module called by CXF Interceptor (Karaf 2.4)

2015-06-05 Thread Jean-Baptiste Onofré
It would be great to have a threadDump to investigate ;) Regards JB On 06/05/2015 10:18 AM, Charles Moulliard wrote: I don't have the threadDump (get this issue from a client). I don't think that encryption was used. On Fri, Jun 5, 2015 at 10:10 AM, Jean-Baptiste Onofré wrote: Hi Charles,

Re: Thread locked with JAASLogin Module called by CXF Interceptor (Karaf 2.4)

2015-06-05 Thread Christian Schneider
I agree that loading the file each time does not scale well. As the property files are mostly static I propose we install a listener for changes and cache the contents in a thread safe map internally. WDYT? Christian On 05.06.2015 09:51, Charles Moulliard wrote: Hi, Could it be possible wit

Re: Thread locked with JAASLogin Module called by CXF Interceptor (Karaf 2.4)

2015-06-05 Thread Charles Moulliard
I don't have the threadDump (get this issue from a client). I don't think that encryption was used. On Fri, Jun 5, 2015 at 10:10 AM, Jean-Baptiste Onofré wrote: > Hi Charles, > > Did you take a thread dump ? Especially did you enable the encryption ? > > Regards > JB > > > On 06/05/2015 09:51 AM

Re: Thread locked with JAASLogin Module called by CXF Interceptor (Karaf 2.4)

2015-06-05 Thread Morgan Hautman
Hi Charles, I think this could be possible. The use of https://docs.oracle.com/javase/8/docs/api/java/nio/channels/FileChannel.html is made for multi-threaded environments accessing files. Regards, Morgan On 5/06/2015 9:51, Charles Moulliard wrote: Hi, Could it be possible with Apache Kara

Re: Thread locked with JAASLogin Module called by CXF Interceptor (Karaf 2.4)

2015-06-05 Thread Jean-Baptiste Onofré
Hi Charles, Did you take a thread dump ? Especially did you enable the encryption ? Regards JB On 06/05/2015 09:51 AM, Charles Moulliard wrote: Hi, Could it be possible with Apache Karaf 2.4 that, when we have a huge number of threads accessing JAAS Properties login Module, some thread could

Thread locked with JAASLogin Module called by CXF Interceptor (Karaf 2.4)

2015-06-05 Thread Charles Moulliard
Hi, Could it be possible with Apache Karaf 2.4 that, when we have a huge number of threads accessing JAAS Properties login Module, some thread could be blocked/locked as we reopen every time the users.properties file ( http://grepcode.com/file/repo1.maven.org/maven2/org.apache.karaf.jaas/org.apach