Re: Large number of DefaultWriteFuture in jmap
Frank Kim wrote: Hi guys, Hi Franck, it's something possible that you have slow clients, and in this case, they simply don't read data fast enough, which leads to some bottleneck. This is under investigation. -- -- cordialement, regards, Emmanuel Lécharny www.iktek.com directory.apache.org
Re: Large number of DefaultWriteFuture in jmap
Hi guys, I am currently running Mina 1.1, and running into an issue with memory management. Upon looking at the histo:live output of jmap command, I have about 740K DefaultWriteFuture instances with 200-300 concurrent connections running on a 4 cpu machine with 2GB of memory. I see CPU usage of 20-40% with threadpool size of 32, so I am guessing that CPU isn't really a bottleneck here. Let me know if anyone had similar situations. /usr/java/default/bin/jmap -histo:live num #instances #bytes class name -- 1:722188 206147200 [C 2:418454 102556400 [B 3:123433 51348128 [Lcom.fantage.util.IntHashtableEntry; 4:740888 23708416 org.apache.mina.common.support.DefaultWriteFuture 5:785109 18842616 java.util.concurrent.locks.ReentrantLock$NonfairSync 6:446793 17871720 java.util.HashMap 7:741412 17793888 java.util.concurrent.CountDownLatch$Sync 8:370455 17781840 java.nio.HeapByteBuffer 9:740888 17781312 org.apache.mina.common.IoFilter$WriteRequest 10:722851 17348424 java.lang.String 11:332717 15970416 org.hibernate.collection.PersistentSet 12:756153 13329280 [Ljava.lang.Object; 13:743619 11897904 java.util.concurrent.locks.ReentrantLock 14:743183 11890928 java.util.concurrent.ConcurrentLinkedQueue$Node 15:741944 11871104 java.util.concurrent.atomic.AtomicBoolean 16:741418 11862688 java.util.concurrent.CopyOnWriteArrayList 17:741412 11862592 java.util.concurrent.CountDownLatch 18: 13567 10051768 [I 19:4468359882784 [Ljava.util.HashMap$Entry; 20:3704458890680 org.apache.mina.common.SimpleByteBufferAllocator$SimpleByteBuffer 21:4258946814304 java.util.HashSet 22:3715035944048 java.util.concurrent.atomic.AtomicInteger 23:3704445927104 org.apache.mina.filter.codec.ProtocolCodecFilter$HiddenByteBuffer 24:3704445927104 org.apache.mina.filter.codec.ProtocolCodecFilter$MessageByteBuffer 25: 478605791368 constMethodKlass 26: 502775631024 com.fantage.dao.entity.Asset$$EnhancerByCGLIB$$fc9b9c8d 27: 517145378256 com.fantage.dao.entity.Asset 28: 478603834144 methodKlass Thanks, Frank