Hi Alexey,
As requested, the following is the profile data snapshot after stopping the load and waiting till all connections were closed
BTW, we are running with JDK7 and not 6
Uri
[cid:image005.jpg_at_01D0A483.0700AC20]
From: Oleksiy Stashok [mailto:oleksiy.stashok_at_oracle.com]
Sent: Thursday, June 11, 2015 7:26 PM
To: users_at_grizzly.java.net
Cc: Hasid Ronen; Tsukerman Dana
Subject: Re: CPU Usage Profiling
Hmm,
interesting, one more question, could you pls. check how the profile data look like when you stop loading the server.
So first you load the server, make sure that DefaultSelectorHandler consumes its 60%+ of CPU and then stop the load.
Can you pls. also double check that CPU consumption in general is low after you stop the server. Just want to make sure it's not related to selector spin problem observed with JDK 6.
Thanks.
WBR,
Alexey.
On 11.06.15 18:10, Broide Uri wrote:
As requested.
As you can see in the screenshot the select method on idle process is idle
[cid:image003.jpg_at_01D0A483.0361B370]
From: Oleksiy Stashok [mailto:oleksiy.stashok_at_oracle.com]
Sent: Thursday, June 11, 2015 12:21 PM
To: users_at_grizzly.java.net<mailto:users_at_grizzly.java.net>
Subject: Re: CPU Usage Profiling
Hi Uri,
can you pls. profile the server without loading at all to see the diff?
As I mentioned before, Selector.select(...) usually is reported as a hotspot, so I don't think your report is suspicious, but let's double check.
Thanks.
WBR,
Alexey.
On 11.06.15 09:22, Broide Uri wrote:
Hi Alexey,
Any update?
Thanks
Uri
From: Meltser Tiran [mailto:Tiran.Meltser_at_comverse.com]
Sent: Tuesday, June 09, 2015 7:56 PM
To: users_at_grizzly.java.net<mailto:users_at_grizzly.java.net>
Subject: RE: CPU Usage Profiling
Importance: High
Hi Alexey,
We don't think this is the case as (I hope) you can see the graph is sorted by Self Time (CPU).
Tiran Meltser
System Architect
Global Products & Operations
Comverse - Making Your Network Smarter
T +972-3-7678381
M +972-54-5639381
Tiran.Meltser_at_comverse.com <mailto:Tiran.Meltser_at_comverse.com>
www.comverse.com<
http://www.comverse.com/>
P Please think of the environment before printing this email
From: Oleksiy Stashok [mailto:oleksiy.stashok_at_oracle.com]
Sent: Tuesday, June 09, 2015 7:21 PM
To: users_at_grizzly.java.net<mailto:users_at_grizzly.java.net>
Subject: Re: CPU Usage Profiling
Hi Uri,
I suspect what you see is the total time spent inside the method, but most of the time it's in the idle state waiting for I/O events, so it shouldn't consume CPU.
Please let me know if it's not the case.
WBR,
Alexey.
On 09.06.15 16:29, Broide Uri wrote:
Hi Alexey,
After stabilizing on 100% Success Rate in heavy load on our application we started to perform CPU Usage profiling.
We have noticed (you can see the attached screenshot) that we are spending 66% from the CPU time in the org.glassfish.nio.DefaultSelectorHandler.select() method.
We are running the load with the following environment:
* Grizzly 2.3.21
* JDK 1.7.0_72-b14
* RHEL 5.X
Any advice on how can we improve the high CPU consumption?
[cid:image003.jpg_at_01D0A2D6.6204FEE0]
Thanks
Uri
________________________________
"This e-mail message may contain confidential, commercial or privileged information that constitutes proprietary information of Comverse Inc. or its subsidiaries. If you are not the intended recipient of this message, you are hereby notified that any review, use or distribution of this information is absolutely prohibited and we request that you delete all copies and contact us by e-mailing to: security_at_comverse.com<mailto:security_at_comverse.com>. Thank You."
________________________________
"This e-mail message may contain confidential, commercial or privileged information that constitutes proprietary information of Comverse Inc. or its subsidiaries. If you are not the intended recipient of this message, you are hereby notified that any review, use or distribution of this information is absolutely prohibited and we request that you delete all copies and contact us by e-mailing to: security_at_comverse.com<mailto:security_at_comverse.com>. Thank You."
________________________________
"This e-mail message may contain confidential, commercial or privileged information that constitutes proprietary information of Comverse Inc. or its subsidiaries. If you are not the intended recipient of this message, you are hereby notified that any review, use or distribution of this information is absolutely prohibited and we request that you delete all copies and contact us by e-mailing to: security_at_comverse.com<mailto:security_at_comverse.com>. Thank You."
________________________________
"This e-mail message may contain confidential, commercial or privileged information that constitutes proprietary information of Comverse Inc. or its subsidiaries. If you are not the intended recipient of this message, you are hereby notified that any review, use or distribution of this information is absolutely prohibited and we request that you delete all copies and contact us by e-mailing to: security_at_comverse.com<mailto:security_at_comverse.com>. Thank You."
________________________________
"This e-mail message may contain confidential, commercial or privileged information that constitutes proprietary information of Comverse Inc. or its subsidiaries. If you are not the intended recipient of this message, you are hereby notified that any review, use or distribution of this information is absolutely prohibited and we request that you delete all copies and contact us by e-mailing to: security_at_comverse.com. Thank You."