RE: Tomcat 9 exe, High CPU usage due to TCP I/O with itself

2016-10-27 Thread Caldarale, Charles R
> From: Christopher Schultz [mailto:ch...@christopherschultz.net] 
> Subject: Re: Tomcat 9 exe, High CPU usage due to TCP I/O with itself

> On 10/27/16 1:45 PM, Dustin Delage wrote:
> > Looks like the app is now slated for redevelopment. Thanks
> > everyone.

> I still think this has nothing to do with your application...

Maybe, maybe not.  On a fresh install of Tomcat 9.0.0.M11 using JDK 1.8.0_102 
running as a service on Windows 7 Pro, I see the following ports in use:

Protocol  Local Address Remote AddressState
TCP   :8009   :0  LISTENING
TCP   :8080   :0  LISTENING
TCP   :8005   :0  LISTENING
TCP   :55089  :55090  ESTABLISHED
TCP   :55090  :55089  ESTABLISHED
TCP   :55091  :55092  ESTABLISHED
TCP   :55092  :55091  ESTABLISHED
TCP   :55093  :55094  ESTABLISHED
TCP   :55094  :55093  ESTABLISHED
TCP   :55095  :55096  ESTABLISHED
TCP   :55096  :55095  ESTABLISHED
TCP   :55097  :55098  ESTABLISHED
TCP   :55098  :55097  ESTABLISHED
TCP   :55099  :55100  ESTABLISHED
TCP   :55100  :55099  ESTABLISHED
TCPV6 :8009   :0  LISTENING
TCPV6 :8080   :0  LISTENING

I haven't figured out what all the paired ports with established connections 
are used for yet; maybe stdin, stdout, stderr, and ??  If some of the ports are 
redirects of stdout and/or stderr, the webapp could be dumping a lot of junk 
there, causing the high CPU usage.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 9 exe, High CPU usage due to TCP I/O with itself

2016-10-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Dustin,

On 10/27/16 1:45 PM, Dustin Delage wrote:
> Looks like the app is now slated for redevelopment. Thanks
> everyone.

I still think this has nothing to do with your application...

- -chris

> -Original Message- From: Mark Thomas
> [mailto:ma...@apache.org] Sent: Thursday, October 27, 2016 4:48 AM 
> To: Tomcat Users List <users@tomcat.apache.org> Subject: Re: Tomcat
> 9 exe, High CPU usage due to TCP I/O with itself
> 
> On 26/10/2016 18:07, Dustin Delage wrote:
>> Tomcat 9, running on Windows Server 2008, runs the CPU at 79% -
>> 90% continuously. The only activity is tomcat spamming itself
>> with TCP traffic. Same proc ID, out one port, to another port
>> back to itself.
> 
> Tomcat doesn't do that. That looks more likely to be an app issue.
> 
> A series of thread dumps (3 thread dumps, 10 seconds apart) should
> provide some pointers as to what is going on. A profiler (e.g.
> YourKit) would be better.
> 
> Mark
> 
>> 
>> A small sample from Process Monitor:
>> 
>> #
#
>>
>> 

>> #
#
>>
>> 

>> ## 10:16:04.7458125 AM   Tomcat9.exe 1932TCP
>> Receive 7f00:1::d880:fe03:80fa::49199 -> 
>> 7f00:1:::::::49198   SUCCESS Length: 1,
>> seqnum: 0, connid: 0 10:16:04.7458374 AM Tomcat9.exe 1932TCP
>> Send Sage-Web03.sage.local:49198 -> Sage-Web03.sage.local:49199
>> SUCCESS Length: 1, startime: 12341635, endtime: 12341635, seqnum:
>> 0, connid: 0 10:16:04.7458805 AM Tomcat9.exe 1932TCP Receive 
>> 7f00:1::d880:fe03:80fa::49197 -> 
>> 7f00:1:::::::49196   SUCCESS Length: 1,
>> seqnum: 0, connid: 0 10:16:04.7458972 AM Tomcat9.exe 1932TCP
>> Send Sage-Web03.sage.local:49196 -> Sage-Web03.sage.local:49197
>> SUCCESS Length: 1, startime: 12341635, endtime: 12341635, seqnum:
>> 0, connid: 0 10:16:04.7459244 AM Tomcat9.exe 1932TCP Receive 
>> 7f00:1::d880:fe03:80fa::49197 -> 
>> 7f00:1:::::::49196   SUCCESS Length: 1,
>> seqnum: 0, connid: 0 10:16:04.7459507 AM Tomcat9.exe 1932TCP
>> Send Sage-Web03.sage.local:49196 -> Sage-Web03.sage.local:49197
>> SUCCESS Length: 1, startime: 12341635, endtime: 12341635, seqnum:
>> 0, connid: 0 
>> #
#
>>
>> 

>> #
#
>>
>> 

>> ###
>> 
>> Attaching an image of my findings as well
>> 
>> Thank You,
>> 
>> D Delage
>> 
>> 
>> 
>> 
>> -
>>
>> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>> 
> 
> 
> -
>
> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> -
>
> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJYElPDAAoJEBzwKT+lPKRY7qoP/jL/CvgwumQ8n5f4vw4yFYFC
IedXndeyp6iQ5XGKi+XjjjCPUHPf0rQgjBtfn1yBmVh8Pn2QKA4SGVPrQoRwD/Q1
5HSY8n4cALaeTBLUbf/rVqeu3zzRs+TDPTf9O6MHa6PXj9LTxlRB8PqEzV8ltnLT
1UHC5w8XvDTFtVRRnmYdr0615zByEEf1l6EUbFZsi+fRTA/f39eMohXDgNYQzJ1j
WL1BcmpBPJfxHZjnfkOxI8QnieAnBprNGk9T8cpbuTFURTG9B0HZ/LtWOGaCN63e
Ji2Riu84TZx0Y2uz5XwunyPykRqBxMRyZhtzvCuomna8R+hYf+6i3utXnzcaKwID
dAvJm7vr/BbJen5tzvzGkAX26Zl4I6UCfcVzp0OW1wmbX+gTLdmEaT0kQrO5Udz4
ZraXF5zxwYEh/BHtVv/tF6GrOSI8c3GUZOZwi6P7ItMiCahkj8seAgPBA49g9wrq
HBuGRSaTW6xdyZoYzJVX4gyTjVPrCm71Ky8eORh96EnMYW/Rd+zCq9sy8UCkBg5V
/aFmv+ax1PFPNByMQKtRRItQorxLanmt2Z/K1SWm6kDHhT7hMHFZcHe/Q3QMiTwi
sbeGXCCGH5KEZC+j/w8OzfPJgJPJYrMyuJs/CcBNxp9zYZISL8N/IcqMFqkSMl0g
QGYcT3vU2hHFlD75Ksn/
=NpHn
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 9 exe, High CPU usage due to TCP I/O with itself

2016-10-27 Thread Dustin Delage
Looks like the app is now slated for redevelopment. Thanks everyone.

-Original Message-
From: Mark Thomas [mailto:ma...@apache.org]
Sent: Thursday, October 27, 2016 4:48 AM
To: Tomcat Users List <users@tomcat.apache.org>
Subject: Re: Tomcat 9 exe, High CPU usage due to TCP I/O with itself

On 26/10/2016 18:07, Dustin Delage wrote:
> Tomcat 9, running on Windows Server 2008, runs the CPU at 79% - 90%
> continuously. The only activity is tomcat spamming itself with TCP
> traffic. Same proc ID, out one port, to another port back to itself.

Tomcat doesn't do that. That looks more likely to be an app issue.

A series of thread dumps (3 thread dumps, 10 seconds apart) should provide
some pointers as to what is going on. A profiler (e.g. YourKit) would be
better.

Mark

>
> A small sample from Process Monitor:
>
> ##
> 
> ##
> 
> ##
> 10:16:04.7458125 AM   Tomcat9.exe 1932TCP Receive
> 7f00:1::d880:fe03:80fa::49199 ->
> 7f00:1:::::::49198SUCCESS Length: 1, seqnum:
> 0, connid: 0
> 10:16:04.7458374 AM   Tomcat9.exe 1932TCP Send
> Sage-Web03.sage.local:49198 -> Sage-Web03.sage.local:49199SUCCESS
> Length: 1, startime: 12341635, endtime: 12341635, seqnum: 0, connid: 0
> 10:16:04.7458805 AM   Tomcat9.exe 1932TCP Receive
> 7f00:1::d880:fe03:80fa::49197 ->
> 7f00:1:::::::49196SUCCESS Length: 1, seqnum:
> 0, connid: 0
> 10:16:04.7458972 AM   Tomcat9.exe 1932TCP Send
> Sage-Web03.sage.local:49196 -> Sage-Web03.sage.local:49197SUCCESS
> Length: 1, startime: 12341635, endtime: 12341635, seqnum: 0, connid: 0
> 10:16:04.7459244 AM   Tomcat9.exe 1932TCP Receive
> 7f00:1::d880:fe03:80fa::49197 ->
> 7f00:1:::::::49196SUCCESS Length: 1, seqnum:
> 0, connid: 0
> 10:16:04.7459507 AM   Tomcat9.exe 1932TCP Send
> Sage-Web03.sage.local:49196 -> Sage-Web03.sage.local:49197SUCCESS
> Length: 1, startime: 12341635, endtime: 12341635, seqnum: 0, connid: 0
> ##
> 
> ##
> 
> ###
>
> Attaching an image of my findings as well
>
> Thank You,
>
> D Delage
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Tomcat 9 exe, High CPU usage due to TCP I/O with itself

2016-10-27 Thread Dustin Delage
Unfortunately my knowledge of Tomcat and Java apps is limited to basic sys
admin stuff. I've made the suggestion to the developer to Profile the app.
I'm sure this will reveal the problem. I might make an attempt as well.

-Original Message-
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Sent: Thursday, October 27, 2016 12:03 PM
To: Tomcat Users List <users@tomcat.apache.org>
Subject: Re: Tomcat 9 exe, High CPU usage due to TCP I/O with itself

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Mark,

On 10/27/16 4:47 AM, Mark Thomas wrote:
> On 26/10/2016 18:07, Dustin Delage wrote:
>> Tomcat 9, running on Windows Server 2008, runs the CPU at 79% - 90%
>> continuously. The only activity is tomcat spamming itself with TCP
>> traffic. Same proc ID, out one port, to another port back to itself.
>
> Tomcat doesn't do that. That looks more likely to be an app issue.
>
> A series of thread dumps (3 thread dumps, 10 seconds apart) should
> provide some pointers as to what is going on. A profiler (e.g.
> YourKit) would be better.

Tomcat9.exe should be the monitor (procrun), not anything hosting an
application, right?

- -chris

>> A small sample from Process Monitor:
>>
>> #
#
>>
>>

##
>> ## 10:16:04.7458125 AM   Tomcat9.exe 1932TCP
>> Receive 7f00:1::d880:fe03:80fa::49199 ->
>> 7f00:1:::::::49198   SUCCESS Length: 1,
>> seqnum: 0, connid: 0 10:16:04.7458374 AM Tomcat9.exe 1932TCP
>> Send Sage-Web03.sage.local:49198 -> Sage-Web03.sage.local:49199
>> SUCCESS Length: 1, startime: 12341635, endtime: 12341635, seqnum:
>> 0, connid: 0 10:16:04.7458805 AM Tomcat9.exe 1932TCP Receive
>> 7f00:1::d880:fe03:80fa::49197 ->
>> 7f00:1:::::::49196   SUCCESS Length: 1,
>> seqnum: 0, connid: 0 10:16:04.7458972 AM Tomcat9.exe 1932TCP
>> Send Sage-Web03.sage.local:49196 -> Sage-Web03.sage.local:49197
>> SUCCESS Length: 1, startime: 12341635, endtime: 12341635, seqnum:
>> 0, connid: 0 10:16:04.7459244 AM Tomcat9.exe 1932TCP Receive
>> 7f00:1::d880:fe03:80fa::49197 ->
>> 7f00:1:::::::49196   SUCCESS Length: 1,
>> seqnum: 0, connid: 0 10:16:04.7459507 AM Tomcat9.exe 1932TCP
>> Send Sage-Web03.sage.local:49196 -> Sage-Web03.sage.local:49197
>> SUCCESS Length: 1, startime: 12341635, endtime: 12341635, seqnum:
>> 0, connid: 0
>> #
#
>>
>>

##
>> ###
>>
>> Attaching an image of my findings as well
>>
>> Thank You,
>>
>> D Delage
>>
>>
>>
>>
>> -
>>
>>
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>>
>
>
> -
>
>
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJYEiUyAAoJEBzwKT+lPKRY92oP/jYekQFTj5HaiQsmsQaaWgg+
eGmookPwRATKubROIedjzQA9Y62Y1PL0udQpk5xnEReQ5ISxbUs+OGJtPQippC85
VxILggVIA2ZHuPVd2qEhj1cBb5ppB9n1SsRBFRHU+Y7rdJGp8goIMBZzs1CytR/M
vK7xkyDtXzLinerMGj4k/82KnTfCo6nwf+z7Np03Np2doWXYYcZmJO3yo3N/v4lm
arp1MEHf1qSutd12ga3MeMXwt8e3WZaK5M1gFL7h7CMclIbgUBz0vGtZ7VYYCB7g
qVCzwQi64Jt7HADwllKKLmPC/N3lA3zTQvp/o1z8qsDSYPtbaZNSKNnSoqb4uzx/
8Z59Y3HZEQudT8gV2GwNzULmGh6Clcn3ECQaUxnK81YZFz0YluO8QbKTMuRM18pb
mr8UH/JoPO3PUaBsDvWo95KUZw8m1+YPhvtMCi0r2NTD7j+Klr3r9cHubAHq21Hi
VfsGXHm1Pv7vaYVx4za9bREtxEtQZWkQOsjrviYX9lH5n2Ad8QwWOd0fI4HrLBhM
3i/zE7VSOLnCpCZwQ0Dpx7inzVIuXQzmvecdSS6MsuPea3uzNqgSbKoct0A28tTU
Em1dBwPuyeHVISnxBtTYufJOeBSBEq/sFW5385QftHLQgwfH4aVouix9U6pLfAF0
+ptjg7u5okrPzuh+6RTx
=laEe
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 9 exe, High CPU usage due to TCP I/O with itself

2016-10-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Mark,

On 10/27/16 4:47 AM, Mark Thomas wrote:
> On 26/10/2016 18:07, Dustin Delage wrote:
>> Tomcat 9, running on Windows Server 2008, runs the CPU at 79% -
>> 90% continuously. The only activity is tomcat spamming itself
>> with TCP traffic. Same proc ID, out one port, to another port
>> back to itself.
> 
> Tomcat doesn't do that. That looks more likely to be an app issue.
> 
> A series of thread dumps (3 thread dumps, 10 seconds apart) should 
> provide some pointers as to what is going on. A profiler (e.g.
> YourKit) would be better.

Tomcat9.exe should be the monitor (procrun), not anything hosting an
application, right?

- -chris

>> A small sample from Process Monitor:
>> 
>> #
#
>>
>> 

##
>> ## 10:16:04.7458125 AM   Tomcat9.exe 1932TCP
>> Receive 7f00:1::d880:fe03:80fa::49199 -> 
>> 7f00:1:::::::49198   SUCCESS Length: 1,
>> seqnum: 0, connid: 0 10:16:04.7458374 AM Tomcat9.exe 1932TCP
>> Send Sage-Web03.sage.local:49198 -> Sage-Web03.sage.local:49199
>> SUCCESS Length: 1, startime: 12341635, endtime: 12341635, seqnum:
>> 0, connid: 0 10:16:04.7458805 AM Tomcat9.exe 1932TCP Receive 
>> 7f00:1::d880:fe03:80fa::49197 -> 
>> 7f00:1:::::::49196   SUCCESS Length: 1,
>> seqnum: 0, connid: 0 10:16:04.7458972 AM Tomcat9.exe 1932TCP
>> Send Sage-Web03.sage.local:49196 -> Sage-Web03.sage.local:49197
>> SUCCESS Length: 1, startime: 12341635, endtime: 12341635, seqnum:
>> 0, connid: 0 10:16:04.7459244 AM Tomcat9.exe 1932TCP Receive 
>> 7f00:1::d880:fe03:80fa::49197 -> 
>> 7f00:1:::::::49196   SUCCESS Length: 1,
>> seqnum: 0, connid: 0 10:16:04.7459507 AM Tomcat9.exe 1932TCP
>> Send Sage-Web03.sage.local:49196 -> Sage-Web03.sage.local:49197
>> SUCCESS Length: 1, startime: 12341635, endtime: 12341635, seqnum:
>> 0, connid: 0 
>> #
#
>>
>> 

##
>> ###
>> 
>> Attaching an image of my findings as well
>> 
>> Thank You,
>> 
>> D Delage
>> 
>> 
>> 
>> 
>> -
>>
>> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
>> For additional commands, e-mail: users-h...@tomcat.apache.org
>> 
> 
> 
> -
>
> 
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJYEiUyAAoJEBzwKT+lPKRY92oP/jYekQFTj5HaiQsmsQaaWgg+
eGmookPwRATKubROIedjzQA9Y62Y1PL0udQpk5xnEReQ5ISxbUs+OGJtPQippC85
VxILggVIA2ZHuPVd2qEhj1cBb5ppB9n1SsRBFRHU+Y7rdJGp8goIMBZzs1CytR/M
vK7xkyDtXzLinerMGj4k/82KnTfCo6nwf+z7Np03Np2doWXYYcZmJO3yo3N/v4lm
arp1MEHf1qSutd12ga3MeMXwt8e3WZaK5M1gFL7h7CMclIbgUBz0vGtZ7VYYCB7g
qVCzwQi64Jt7HADwllKKLmPC/N3lA3zTQvp/o1z8qsDSYPtbaZNSKNnSoqb4uzx/
8Z59Y3HZEQudT8gV2GwNzULmGh6Clcn3ECQaUxnK81YZFz0YluO8QbKTMuRM18pb
mr8UH/JoPO3PUaBsDvWo95KUZw8m1+YPhvtMCi0r2NTD7j+Klr3r9cHubAHq21Hi
VfsGXHm1Pv7vaYVx4za9bREtxEtQZWkQOsjrviYX9lH5n2Ad8QwWOd0fI4HrLBhM
3i/zE7VSOLnCpCZwQ0Dpx7inzVIuXQzmvecdSS6MsuPea3uzNqgSbKoct0A28tTU
Em1dBwPuyeHVISnxBtTYufJOeBSBEq/sFW5385QftHLQgwfH4aVouix9U6pLfAF0
+ptjg7u5okrPzuh+6RTx
=laEe
-END PGP SIGNATURE-

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Tomcat 9 exe, High CPU usage due to TCP I/O with itself

2016-10-27 Thread Mark Thomas
On 26/10/2016 18:07, Dustin Delage wrote:
> Tomcat 9, running on Windows Server 2008, runs the CPU at 79% - 90%
> continuously. The only activity is tomcat spamming itself with TCP
> traffic. Same proc ID, out one port, to another port back to itself.

Tomcat doesn't do that. That looks more likely to be an app issue.

A series of thread dumps (3 thread dumps, 10 seconds apart) should
provide some pointers as to what is going on. A profiler (e.g. YourKit)
would be better.

Mark

> 
> A small sample from Process Monitor:
> 
> ##
> ##
> ##
> 10:16:04.7458125 AM   Tomcat9.exe 1932TCP Receive
> 7f00:1::d880:fe03:80fa::49199 ->
> 7f00:1:::::::49198SUCCESS Length: 1, seqnum:
> 0, connid: 0
> 10:16:04.7458374 AM   Tomcat9.exe 1932TCP Send
> Sage-Web03.sage.local:49198 -> Sage-Web03.sage.local:49199SUCCESS
> Length: 1, startime: 12341635, endtime: 12341635, seqnum: 0, connid: 0
> 10:16:04.7458805 AM   Tomcat9.exe 1932TCP Receive
> 7f00:1::d880:fe03:80fa::49197 ->
> 7f00:1:::::::49196SUCCESS Length: 1, seqnum:
> 0, connid: 0
> 10:16:04.7458972 AM   Tomcat9.exe 1932TCP Send
> Sage-Web03.sage.local:49196 -> Sage-Web03.sage.local:49197SUCCESS
> Length: 1, startime: 12341635, endtime: 12341635, seqnum: 0, connid: 0
> 10:16:04.7459244 AM   Tomcat9.exe 1932TCP Receive
> 7f00:1::d880:fe03:80fa::49197 ->
> 7f00:1:::::::49196SUCCESS Length: 1, seqnum:
> 0, connid: 0
> 10:16:04.7459507 AM   Tomcat9.exe 1932TCP Send
> Sage-Web03.sage.local:49196 -> Sage-Web03.sage.local:49197SUCCESS
> Length: 1, startime: 12341635, endtime: 12341635, seqnum: 0, connid: 0
> ##
> ##
> ###
> 
> Attaching an image of my findings as well
> 
> Thank You,
> 
> D Delage
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org