<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Authentication causes threads to lock up (JVM issue?) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/authentication-causes-threads-to-lock-up-jvm-issue/m-p/240883#M194013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This may or may not be related to why I am having so many authentication problems, but I believe it needs its own thread…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My setup as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Windows Server 2008 R2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Alfresco Communty 3.2r2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-JDK 6u18 (x64)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Tomcat 6.0.24 (x64) w/ ARP dlls&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-JVM Confguration: &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;-Dcatalina.base=D:\Alfresco\tomcat -Dcatalina.home=D:\Alfresco\tomcat -Djava.endorsed.dirs=D:\Alfresco\tomcat\endorsed -Djava.io.tmpdir=D:\Alfresco\tomcat\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=D:\Alfresco\tomcat\conf\logging.properties -Dalfresco.home=D:\Alfresco -Dcom.sun.management.jmxremote=true -XX:PermSize=128m -XX:MaxPermSize=256m -XX:ReservedCodeCacheSize=64m -Xcomp -Xbatch -Xms2048m -Xmx3072m -Xss1024k &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Any attempt at authentication causes a locks up the java process. Having checked JConsole with the Topthread plugin I have narrowed it down to the SESS_W0_LSN1 (where the 0 &amp;amp; 1 can vary) series of threads. If I try to authenticate again, another thread is created and it locks up (uses 100% CPU). It seems to happen whether I am connecting via CIFS or Webdav, or Alfresco Explorer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have had this same issue with inbuilt NTLM and Passthru authentication. It happens whether I'm on a machine which I don't have authentication issues (i.e. XP, Server 2003) or otherwise (Vista, 7, Server 2008)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An example of the thread info from JConsole is as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Name: Sess_W0_LSN1&lt;BR /&gt;State: RUNNABLE&lt;BR /&gt;Total blocked: 389&amp;nbsp; Total waited: 0&lt;BR /&gt;&lt;BR /&gt;Stack trace: &lt;BR /&gt;org.alfresco.jlan.netbios.win32.Win32NetBIOS.Receive(Native Method)&lt;BR /&gt;org.alfresco.jlan.smb.server.win32.Win32NetBIOSPacketHandler.readPacket(Win32NetBIOSPacketHandler.java:133)&lt;BR /&gt;org.alfresco.jlan.smb.server.SMBSrvSession.run(SMBSrvSession.java:1264)&lt;BR /&gt;java.lang.Thread.run(Thread.java:619)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;When&amp;nbsp; shut down the server I get these sorts of errors (among others):&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;SEVERE: A web application created a ThreadLocal with key of type [org.alfresco.repo.security.authentication.AuthenticationUtil.ThreadLocalStack] (value [org.alfresco.repo.security.authentication.AuthenticationUtil$ThreadLocalStack@1cad68c5]) and a value of type [java.util.Stack] (value [[]]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.&lt;BR /&gt;&lt;BR /&gt;SEVERE: A web application created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@2d84562d]) and a value of type [org.alfresco.filesys.alfresco.AlfrescoClientInfo] (value [[username:[B@4b35bbb3,MACHINE,Windows 2002 Service Pack 3 2600]]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;What should I do? Is this an Alfresco or JVM bug?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Feb 2010 23:23:41 GMT</pubDate>
    <dc:creator>maximus007</dc:creator>
    <dc:date>2010-02-04T23:23:41Z</dc:date>
    <item>
      <title>Authentication causes threads to lock up (JVM issue?)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/authentication-causes-threads-to-lock-up-jvm-issue/m-p/240883#M194013</link>
      <description>This may or may not be related to why I am having so many authentication problems, but I believe it needs its own thread…My setup as follows:-Windows Server 2008 R2-Alfresco Communty 3.2r2-JDK 6u18 (x64)-Tomcat 6.0.24 (x64) w/ ARP dlls-JVM Confguration: -Dcatalina.base=D:\Alfresco\tomcat -Dcatalina.</description>
      <pubDate>Thu, 04 Feb 2010 23:23:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/authentication-causes-threads-to-lock-up-jvm-issue/m-p/240883#M194013</guid>
      <dc:creator>maximus007</dc:creator>
      <dc:date>2010-02-04T23:23:41Z</dc:date>
    </item>
    <item>
      <title>Re: Authentication causes threads to lock up (JVM issue?)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/authentication-causes-threads-to-lock-up-jvm-issue/m-p/240884#M194014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Small update - disabling CIFS appears to stop the issue, even though the hang occurred from authentication in other places.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Disabling CIFS is hardly a good fix!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Should I submit this as a bug?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2010 03:05:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/authentication-causes-threads-to-lock-up-jvm-issue/m-p/240884#M194014</guid>
      <dc:creator>maximus007</dc:creator>
      <dc:date>2010-02-05T03:05:38Z</dc:date>
    </item>
  </channel>
</rss>

