AnsweredAssumed Answered

Win32NetBIOS lead to 100%CPU usage?

Question asked by alvisccc on Apr 26, 2010
Latest reply on Jul 29, 2011 by amitabhandari1
Hello,

My Alfresco is alfresco community 3.2r,it runs under windows server 2008 64 bit with 6 G memory.
I have inserted 2 million records into alfresco in many days.During the inserting process if the alfresco is running about 20 hours,
the cpu usage of JVM will jump to 100% and didn't drop even suspended the inserting process.The computer will become very slow.

I have been using HotThread or jstack to trace what happen inside.It show the following :

182.8% CPU Usage by Thread 'Sess_W0_LSN1'
  9/10 snapshots sharing following 4 elements
    org.alfresco.jlan.netbios.win32.Win32NetBIOS.Receive(Native Method)
    org.alfresco.jlan.smb.server.win32.Win32NetBIOSPacketHandler.readPacket(Win32NetBIOSPacketHandler.java:133)
    org.alfresco.jlan.smb.server.SMBSrvSession.run(SMBSrvSession.java:1264)
    java.lang.Thread.run(Thread.java:619)
  Unique snapshot
    org.alfresco.jlan.smb.server.SMBSrvSession.run(SMBSrvSession.java:1295)
    java.lang.Thread.run(Thread.java:619)

53.1% CPU Usage by Thread 'indexThread4'
  2/10 snapshots sharing following 22 elements
    java.io.RandomAccessFile.readBytes(Native Method)
    java.io.RandomAccessFile.read(RandomAccessFile.java:322)
    org.apache.lucene.store.FSDirectory$FSIndexInput.readInternal(FSDirectory.java:596)
    org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java:136)
    org.apache.lucene.index.CompoundFileReader$CSIndexInput.readInternal(CompoundFileReader.java:247)
    org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:157)
    org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java:116)
    org.apache.lucene.store.BufferedIndexInput.readBytes(BufferedIndexInput.java:92)
    org.apache.lucene.index.TermBuffer.read(TermBuffer.java:82)
    org.apache.lucene.index.SegmentTermEnum.next(SegmentTermEnum.java:127)
    org.apache.lucene.index.SegmentMergeInfo.next(SegmentMergeInfo.java:65)
    org.apache.lucene.index.SegmentMerger.mergeTermInfos(SegmentMerger.java:554)
    org.apache.lucene.index.SegmentMerger.mergeTerms(SegmentMerger.java:500)
    org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:140)
    org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:116)
    org.apache.lucene.index.IndexWriter.addIndexes(IndexWriter.java:3220)
    org.alfresco.repo.search.impl.lucene.index.IndexInfo$Merger.mergeIndexes(IndexInfo.java:3810)
    org.alfresco.repo.search.impl.lucene.index.IndexInfo$Merger.runImpl(IndexInfo.java:3223)
    org.alfresco.repo.search.impl.lucene.index.IndexInfo$AbstractSchedulable.run(IndexInfo.java:3059)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    java.lang.Thread.run(Thread.java:619)
  3/10 snapshots sharing following 12 elements
    org.apache.lucene.index.SegmentMerger.mergeTermInfo(SegmentMerger.java:586)
    org.apache.lucene.index.SegmentMerger.mergeTermInfos(SegmentMerger.java:547)
    org.apache.lucene.index.SegmentMerger.mergeTerms(SegmentMerger.java:500)
    org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:140)
    org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:116)
    org.apache.lucene.index.IndexWriter.addIndexes(IndexWriter.java:3220)
    org.alfresco.repo.search.impl.lucene.index.IndexInfo$Merger.mergeIndexes(IndexInfo.java:3810)
    org.alfresco.repo.search.impl.lucene.index.IndexInfo$Merger.runImpl(IndexInfo.java:3223)
    org.alfresco.repo.search.impl.lucene.index.IndexInfo$AbstractSchedulable.run(IndexInfo.java:3059)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    java.lang.Thread.run(Thread.java:619)
  3/10 snapshots sharing following 12 elements
    org.apache.lucene.index.SegmentMerger.mergeTermInfo(SegmentMerger.java:594)
    org.apache.lucene.index.SegmentMerger.mergeTermInfos(SegmentMerger.java:547)
    org.apache.lucene.index.SegmentMerger.mergeTerms(SegmentMerger.java:500)
    org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:140)
    org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:116)
    org.apache.lucene.index.IndexWriter.addIndexes(IndexWriter.java:3220)
    org.alfresco.repo.search.impl.lucene.index.IndexInfo$Merger.mergeIndexes(IndexInfo.java:3810)
    org.alfresco.repo.search.impl.lucene.index.IndexInfo$Merger.runImpl(IndexInfo.java:3223)
    org.alfresco.repo.search.impl.lucene.index.IndexInfo$AbstractSchedulable.run(IndexInfo.java:3059)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    java.lang.Thread.run(Thread.java:619)
  2/10 snapshots sharing following 10 elements
    org.apache.lucene.index.SegmentMerger.mergeTerms(SegmentMerger.java:500)
    org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:140)
    org.apache.lucene.index.SegmentMerger.merge(SegmentMerger.java:116)
    org.apache.lucene.index.IndexWriter.addIndexes(IndexWriter.java:3220)
    org.alfresco.repo.search.impl.lucene.index.IndexInfo$Merger.mergeIndexes(IndexInfo.java:3810)
    org.alfresco.repo.search.impl.lucene.index.IndexInfo$Merger.runImpl(IndexInfo.java:3223)
    org.alfresco.repo.search.impl.lucene.index.IndexInfo$AbstractSchedulable.run(IndexInfo.java:3059)
    java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    java.lang.Thread.run(Thread.java:619)

It may be the Win32NetBIOS problem.
I search a bit,suggested to copying Win32NetBIOS.dll,Win32NetBIOSx64.dll,Win32Utils.dll,Win32Utilsx64.dll in C:\alfresco\bin
to C:\windows\system32 directory.But it doesn't help. Are there any solution on this,Please help?

thanks

Outcomes