when I profile java application,find the epoll consum lots of sys usage
step one :
I use systemtap script find the which thread consum cpu usgae,every second
display one ,find these thread
comm tid %user %kernel (of 15133 ticks)
java 27965 0.00% 7.11%
java 27743
crash log
A fatal error has been detected by the Java Runtime Environment:
SIGSEGV (0xb) at pc=0x2b626db6c304, pid=15640, tid=1167100224
JRE version: Java(TM) SE Runtime Environment (7.0_55-b13) (build
1.7.0_55-b13)
Java VM: Java HotSpot(TM) 64-Bit Server VM (24.55-b03 mixed mode
linux-amd64 >
I use the NetBeans profiler ,the result in attach.
2014-05-09 11:14 GMT+08:00 fuyou :
> My program is build on Netty4 .
> In benchmark,i find the epollWait consume many cpu,the jstack is
>
>
> The stack of busy(10.4%) thread(30873/0x7899) of java process(30757) of
> user(fuyo
My program is build on Netty4 .
In benchmark,i find the epollWait consume many cpu,the jstack is
The stack of busy(10.4%) thread(30873/0x7899) of java process(30757)
of user(fuyou):
"NETTYSERVER-WORKER-19-thread-9" prio=10 tid=0x2aaac418a000
nid=0x7899 runnable [0x00
the jstack:
NETTYSERVER-WORKER-19-thread-4" prio=10 tid=0x136d3800
nid=0x75dc runnable [0x499be000]
java.lang.Thread.State: RUNNABLE
at sun.nio.ch.EPollArrayWrapper.epollWait(Native Method)
at sun.nio.ch.EPollArrayWrapper.poll(EPollArrayWrapper.java:269)
I write a MappedFile ,and a task call sync write to disk.
but occur :
java.io.IOException: Cannot allocate memory
at java.nio.MappedByteBuffer.force0(Native Method)
at java.nio.MappedByteBuffer.force(MappedByteBuffer.java:154)
the os is Red Hat Enterprise Linux Server release 5.4
java i
spell error: slove should be solve.
2012/8/22 fuyou
> Hi all
>
> I deploy a RMI Service ,write a RMI Client(J2SE project) to access it
> and is ok .but the some code in web project,I use wireshark to find that
> every RMI request sent from our client to our server contain