Re: Tomcat managed server

2017-06-30 Thread Subhro Paul

Thanks & Regards
Subhro Paul
Tata Consultancy Services
Cell:- +919051415167
Mailto: subhro.p...@tcs.com
Website: http://www.tcs.com

Experience certainty.   IT Services
Business Solutions
Consulting



-Niranjan Babu Bommu <niranjan.bo...@gmail.com> wrote: -
To: Tomcat Users List <users@tomcat.apache.org>
From: Niranjan Babu Bommu <niranjan.bo...@gmail.com>
Date: 06/30/2017 12:08PM
Subject: Re: Tomcat managed server

Hi Subhro,

tomcat document has the all the info you are looking for.

https://tomcat.apache.org/tomcat-7.0-doc/RUNNING.txt
https://tomcat.apache.org/tomcat-8.0-doc/RUNNING.txt

look for "Advanced Configuration - Multiple Tomcat Instances" in that page.

thanks
Niranjan

On Fri, Jun 30, 2017 at 11:18 AM, Subhro Paul <subhro.p...@tcs.com> wrote:

> -Christopher Schultz <ch...@christopherschultz.net> wrote: -
> To: users@tomcat.apache.org
> From: Christopher Schultz <ch...@christopherschultz.net>
> Date: 06/29/2017 12:35PM
> Subject: Re: Tomcat managed server
>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA256
>
> Subhro,
>
> On 6/29/17 11:57 AM, Subhro Paul wrote:
> > Can you tell me if we can create manged server in tomcat like we
> > can do in Weblogic server?
> >
> > I have Googled that and found information which is about setting
> > up different tomcat instances but not the managed server which we
> > can do in Weblogic.
> For those of us unfamiliar with WebLogic... can you explain what a
> "managed server in Tomcat" is?
>
> - -chris
> -BEGIN PGP SIGNATURE-
> Comment: GPGTools - http://gpgtools.org
> Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/
>
> iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAllVLFMACgkQHPApP6U8
> pFg8Vw//WcSo7+ynxMQvNsiJdiJ+HP+qPrkH5reYUvyYfj5D0f0W8RfCt5yvB1Um
> jdww+T9tpYbt2nt5iWYjBx27x9DbhTuJt/OnUNfZQw7PAP2S4L0Q6Amim7yQNzau
> 1nbRxpfSL4rBzR2aQvwNokyd1Uqy1Wwujkf8x4ozphAhtrpeX0ctYHJupusUAXZf
> ijQgDypgwWkPk2LpWkOQDF3jfsFqim/JRsw6DhRvV/u9jfPWGThmKUGF0JkilB+W
> kkiIjA3eH03HS/S+wIJBQ3tJoEbTo5H8Xg786hdO3Z1fCyUV13THK+wihLM1WlcA
> OLvBQlEn/Ms2tQKV1HOfMr4O4EOsxh+1yAz0Wh7oli0dOC8uurSxqI3J0oYbRP99
> d8RJbbNumMXuK0OYo6Gihs/M9dAtafLV1gamACFCBl4HSMTYUBn0NulImcznnX9X
> bue+lO2c+yeg2RAC5gOQnlq9VVcf+bOYRlak9rz5kdA9tp1XPQn9A3112HI0ebe3
> kuIe8eZMO0hbw/lrPG+kjdnjjCrFzeU6QQodnsZh6oZ1V1rB+A9acn9UeMuXOe6F
> gT9GPuxSCRciU3CScNd+9KjT5uEFXvGmP7Dmb7XFCsE4VRIDRFNhE7zRRsmrZfkX
> 4ProlRh9mryxJUyf1r+OLGK7kJOFccb+e4q19+7sVqfswHU+9xc=
> =sxgZ
> -END PGP SIGNATURE-
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
> Hi Chris,
> Managed Server is like instance of a server. Like one single Tomcat
> installation can have multiple instances. Each instance can run separately
> and can have different setup and configuration. You can configure them as a
> cluster as well. But all this instance is linked with single server. But i
> am not sure if Tomcat support that facility.
>
> Thanks,
> Subhro Paul
>
> =-=-=
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>


-- 
*Thanks*
*Niranjan*


Thanks Niranjan. That information helps me.

Thanks & Regards,
Subhro

Re: Tomcat managed server

2017-06-30 Thread Subhro Paul
-Christopher Schultz <ch...@christopherschultz.net> wrote: -
To: users@tomcat.apache.org
From: Christopher Schultz <ch...@christopherschultz.net>
Date: 06/29/2017 12:35PM
Subject: Re: Tomcat managed server

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Subhro,

On 6/29/17 11:57 AM, Subhro Paul wrote:
> Can you tell me if we can create manged server in tomcat like we
> can do in Weblogic server?
> 
> I have Googled that and found information which is about setting
> up different tomcat instances but not the managed server which we
> can do in Weblogic.
For those of us unfamiliar with WebLogic... can you explain what a
"managed server in Tomcat" is?

- -chris
-BEGIN PGP SIGNATURE-
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAllVLFMACgkQHPApP6U8
pFg8Vw//WcSo7+ynxMQvNsiJdiJ+HP+qPrkH5reYUvyYfj5D0f0W8RfCt5yvB1Um
jdww+T9tpYbt2nt5iWYjBx27x9DbhTuJt/OnUNfZQw7PAP2S4L0Q6Amim7yQNzau
1nbRxpfSL4rBzR2aQvwNokyd1Uqy1Wwujkf8x4ozphAhtrpeX0ctYHJupusUAXZf
ijQgDypgwWkPk2LpWkOQDF3jfsFqim/JRsw6DhRvV/u9jfPWGThmKUGF0JkilB+W
kkiIjA3eH03HS/S+wIJBQ3tJoEbTo5H8Xg786hdO3Z1fCyUV13THK+wihLM1WlcA
OLvBQlEn/Ms2tQKV1HOfMr4O4EOsxh+1yAz0Wh7oli0dOC8uurSxqI3J0oYbRP99
d8RJbbNumMXuK0OYo6Gihs/M9dAtafLV1gamACFCBl4HSMTYUBn0NulImcznnX9X
bue+lO2c+yeg2RAC5gOQnlq9VVcf+bOYRlak9rz5kdA9tp1XPQn9A3112HI0ebe3
kuIe8eZMO0hbw/lrPG+kjdnjjCrFzeU6QQodnsZh6oZ1V1rB+A9acn9UeMuXOe6F
gT9GPuxSCRciU3CScNd+9KjT5uEFXvGmP7Dmb7XFCsE4VRIDRFNhE7zRRsmrZfkX
4ProlRh9mryxJUyf1r+OLGK7kJOFccb+e4q19+7sVqfswHU+9xc=
=sxgZ
-END PGP SIGNATURE-

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

Hi Chris,
Managed Server is like instance of a server. Like one single Tomcat 
installation can have multiple instances. Each instance can run separately and 
can have different setup and configuration. You can configure them as a cluster 
as well. But all this instance is linked with single server. But i am not sure 
if Tomcat support that facility.

Thanks,
Subhro Paul

=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




Tomcat managed server

2017-06-29 Thread Subhro Paul
Hi All,

Can you tell me if we can create manged server in tomcat like we can do in 
Weblogic server? I have Googled that and found information which is about 
setting up different tomcat instances but not the managed server which we can 
do in Weblogic.

Thanks & Regards,
Subhro Paul
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




Tomcat 7 installation on Sun Solaris 10

2017-03-10 Thread Subhro Paul
Hi All,

We need to install tomcat 7.0.68 or higher version on Sun Solaris 10. Can you 
let me know if there is any version compatibility matrix for Tomcat 7 ?


Thanks & Regards
Subhro Paul
Tata Consultancy Services
Website: http://www.tcs.com

Experience certainty.   IT Services
Business Solutions
Consulting

=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




Re: Error 404 for autodiscover.xml

2016-03-14 Thread Subhro Paul
From:   Mark Thomas <ma...@apache.org>
To: Tomcat Users List <users@tomcat.apache.org>
Date:   03/11/2016 02:43 PM
Subject:Re: Error 404 for autodiscover.xml



On 11/03/2016 08:26, Subhro Paul wrote:
> Hi All,
> 
> Our client has a simple website consists of some jsps, images, css, 
> javascripts and html files. It has two Apache proxy(under loadbalancers) 

> and two Tomcat6(under Loadbalancer). All servers are installed under 
Linux 
> environment.This website don't deal with any e-mailing or SMTP features. 

> It dose not have any Microsoft exchange facility(I am not sure what it 
is. 
> Got this things while searching in the web). It's a very simple website 
> and all are static contents.
> 
> But if we see the log we always see the below present in the logs in 
both 
> proxy and tomcat box.
> 
> [11/Mar/2016:00:36:04 -0500] "POST /autodiscover/autodiscover.xml 
> HTTP/1.1" 404 172
> [11/Mar/2016:00:36:06 -0500] "GET /autodiscover/autodiscover.xml 
HTTP/1.1" 
> 404 172
> 
> Why this /autodiscover/autodiscover.xml is called? Who is calling it? Is 

> that a feature of Apache proxy which is automatically called?
> 
> Before going to prevent this log I first want to know why is this been 
> called?

http://lmgtfy.com/?q=%2Fautodiscover%2Fautodiscover.xml

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




Hi Mark,
The link you have provided i have already done with that but i want to 
know some specific reason why that autodiscover.xml is been called for my 
application though we don't have any any e-mailing, SMTP features or 
Microsoft exchange facility?

Thanks & Regards,
Subhro Paul




=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




Error 404 for autodiscover.xml

2016-03-11 Thread Subhro Paul
Hi All,

Our client has a simple website consists of some jsps, images, css, 
javascripts and html files. It has two Apache proxy(under loadbalancers) 
and two Tomcat6(under Loadbalancer). All servers are installed under Linux 
environment.This website don't deal with any e-mailing or SMTP features. 
It dose not have any Microsoft exchange facility(I am not sure what it is. 
Got this things while searching in the web). It's a very simple website 
and all are static contents.

But if we see the log we always see the below present in the logs in both 
proxy and tomcat box.

[11/Mar/2016:00:36:04 -0500] "POST /autodiscover/autodiscover.xml 
HTTP/1.1" 404 172
[11/Mar/2016:00:36:06 -0500] "GET /autodiscover/autodiscover.xml HTTP/1.1" 
404 172

Why this /autodiscover/autodiscover.xml is called? Who is calling it? Is 
that a feature of Apache proxy which is automatically called?

Before going to prevent this log I first want to know why is this been 
called?

Thanks & Regards
Subhro Paul
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




Re: Tomcat Server - Arraylist java.util.ConcurrentModificationException issue

2016-02-02 Thread Subhro Paul
From:   "Terence M. Bandoian" <tere...@tmbsw.com>
To: Tomcat Users List <users@tomcat.apache.org>
Date:   02/01/2016 07:58 PM
Subject:Tomcat Server - Arraylist 
java.util.ConcurrentModificationException issue



On 2/1/2016 6:50 AM, Subhro Paul wrote:
> Hi Team,
>
> Our web application has a "header.jsp" which has 2  Arraylist on it. 
Each
> ArrayList has more than 50 items inside. The code is to identify the
> mobile device and requested page and transfer the call to mobile page
> accordingly.
>
> This code works fine once we restart the server and can continue running 
2
> months without any issue. But day by day it starts showing 500 error 
with
> exception in log "ConcurrentModificationException". Below is the code
> snippet of JSP code. My Question is why this issue is happening around 2
> months? If we clear the temp file created by the server in work folder
> then that will run for some time( 2- 3 days) and then again the same
> exception starts occurring. I have identified one solution by moving the
> JAVA code from JSP to JAVA file which worked good while perform testing
> but client wants to know the root cause of the issue.
>
> FYI, earlier we had Vector in place of Arraylist which gave trouble of
> thread blocking due to synchronization. So, converting from Arraylist to
> Vector will not be a good idea.
>
>
> Exception:
>
> java.util.ConcurrentModificationException
>  at
> java.util.ArrayList$Itr.checkForComodification(ArrayList.java:859)
>  at java.util.ArrayList$Itr.next(ArrayList.java:831)
>  at
> org.apache.jsp.includes.header_jsp.isHomePage(header_jsp.java:97)
>
>
> Code Snippet:
>
> <%!
> private Set uas = new HashSet();
> ArrayList urlnames = new ArrayList();
> ArrayList excludePathList = new ArrayList();


Hi, Subhro-

Fields declared in a declarations section (<%!  ... %>) are class 
variables.  If Tomcat uses a single JSP object to serve multiple 
requests, which I believe it does, access to these fields should be made 
thread safe.  A simple solution would be to move the declarations of 
these fields to a scriptlet section (<% ... %>) which would result in 
them being local to the JSP service method.  It isn't the most efficient 
way to go about it but it should solve the concurrent access problem 
you're seeing.

-Terence Bandoian
/http://www.tmbsw.com/
/

>
> private boolean haveToRedirect(HttpServletRequest request,
>  String stopMobiCookie) {
>  boolean doRedirect = false;
> 
>  String userAgent = request.getHeader("User-Agent");
>  if (! stopMobiCookie.equals("yes") && userAgent != null &&
> userAgent.length()!=0 && (userAgent.indexOf("UsableNet")==-1))
>  {
>
>  Iterator iter = uas.iterator();
>  while (iter.hasNext()) {
>  if (userAgent.indexOf((String)iter.next())!=-1) 
{
>  doRedirect = true;
>  break;
>
>
>  }
>  }
>  }
>  return doRedirect;
> }
>
>  private boolean isHomePage(HttpServletRequest request){
>  Iterator itr = urlnames.iterator();
>  String path = "";
>  while (itr.hasNext()) {
>   path = itr.next();
>   if
> (request.getRequestURI().toString().equalsIgnoreCase(path)){
>   return true;
>   }
>  }
>  return false;
>  }
> 
>  private boolean isExcludePath(HttpServletRequest request){
>  Iterator itr = excludePathList.iterator();
>  String path = "";
>  while (itr.hasNext()) {
>   path = itr.next();
>   if (request.getRequestURI().startsWith(path) 
&&
> !request.getRequestURI().startsWith("/info/contact.jsp")){
>   return true;
>   }
>  }
>  return false;
>  }
>
> %>
>
>
> <%
>
> uas.add("Blazer");
> uas.add("Danger hiptop");
> uas.add("DoCoMo/");
> uas.add("Ericsson");
> uas.add("Googlebot-Mobile");
> uas.add("MSN Mobile Proxy");
> uas.add("Handheld");
> uas.add("HTC_HD2_T58585 Opera");
> uas.add("iPhone");
> uas.add("iPod");
> uas.add("Klondike");

Tomcat Server - Arraylist java.util.ConcurrentModificationException issue

2016-02-01 Thread Subhro Paul
Hi Team,

Our web application has a "header.jsp" which has 2  Arraylist on it. Each 
ArrayList has more than 50 items inside. The code is to identify the 
mobile device and requested page and transfer the call to mobile page 
accordingly.

This code works fine once we restart the server and can continue running 2 
months without any issue. But day by day it starts showing 500 error with 
exception in log "ConcurrentModificationException". Below is the code 
snippet of JSP code. My Question is why this issue is happening around 2 
months? If we clear the temp file created by the server in work folder 
then that will run for some time( 2- 3 days) and then again the same 
exception starts occurring. I have identified one solution by moving the 
JAVA code from JSP to JAVA file which worked good while perform testing 
but client wants to know the root cause of the issue.

FYI, earlier we had Vector in place of Arraylist which gave trouble of 
thread blocking due to synchronization. So, converting from Arraylist to 
Vector will not be a good idea.


Exception:

java.util.ConcurrentModificationException
at 
java.util.ArrayList$Itr.checkForComodification(ArrayList.java:859)
at java.util.ArrayList$Itr.next(ArrayList.java:831)
at 
org.apache.jsp.includes.header_jsp.isHomePage(header_jsp.java:97)


Code Snippet:

<%!
private Set uas = new HashSet();
ArrayList urlnames = new ArrayList();
ArrayList excludePathList = new ArrayList();

private boolean haveToRedirect(HttpServletRequest request,
String stopMobiCookie) {
boolean doRedirect = false;
 
String userAgent = request.getHeader("User-Agent");
if (! stopMobiCookie.equals("yes") && userAgent != null && 
userAgent.length()!=0 && (userAgent.indexOf("UsableNet")==-1))
{

Iterator iter = uas.iterator();
while (iter.hasNext()) {
if (userAgent.indexOf((String)iter.next())!=-1) {
doRedirect = true;
break;


}
}
}
return doRedirect;
}

private boolean isHomePage(HttpServletRequest request){
Iterator itr = urlnames.iterator();
String path = "";
while (itr.hasNext()) { 
 path = itr.next();
 if 
(request.getRequestURI().toString().equalsIgnoreCase(path)){
 return true;
 }
}
return false;
}
 
private boolean isExcludePath(HttpServletRequest request){
Iterator itr = excludePathList.iterator();
String path = "";
while (itr.hasNext()) { 
 path = itr.next();
 if (request.getRequestURI().startsWith(path) && 
!request.getRequestURI().startsWith("/info/contact.jsp")){
 return true;
 }
}
return false;
}

%>


<%

uas.add("Blazer");
uas.add("Danger hiptop");
uas.add("DoCoMo/");
uas.add("Ericsson");
uas.add("Googlebot-Mobile");
uas.add("MSN Mobile Proxy");
uas.add("Handheld");
uas.add("HTC_HD2_T58585 Opera");
uas.add("iPhone");
uas.add("iPod");
uas.add("Klondike");
uas.add("LG-");
uas.add("LGE-");
... Arround 40 items


excludePathList.add("/business/my_account");
excludePathList.add("/business/save_energy");
excludePathList.add("/business/services");
excludePathList.add("/business/small_large_business");
excludePathList.add("/info/environment");
excludePathList.add("/info/about");
excludePathList.add("/info/index.jsp");
excludePathList.add("/info/ambassador.jsp");
 more than 50 items


stopMobiCookie = some cookie code

boolean doRedirect = haveToRedirect((HttpServletRequest)request, 
stopMobiCookie);


if(doRedirect){
boolean isHomePage = 
isHomePage((HttpServletRequest)request);
boolean isExcludePath = 
isExcludePath((HttpServletRequest)request);
 
session.setAttribute("mobile_agent", "yes");

if(!isHomePage && !isExcludePath){
String mobileServer = "mobile.server.com";
try{
        mobileServer = mobileServer + 
request.getRequestURI().toString();
}catch(Exception e){}
%>

windo

Need assistance on web application

2015-11-27 Thread Subhro Paul
Hi Team,

We have a simple web application(Example : www.example.com) which don't 
have any ".war" or ".ear". It's just have jsps, htmls, javascripts, css 
and images inside a folder which is placed in webapps of Tomcat. Now we 
are developing a complext module which will be referred from the same 
application with same url, like "www.example.com/complexModule". For that 
we will create a new war or ear file as necessary like 
"complexModule.war".

how can we configure our website in tomcat so that we can refer the new 
application as "www.example.com/complexModule" ?

Note:- Contents present in "www.example.com" will be as it is and will not 
be zipped in "war" or "ear". Only new contents for "complexModule" will 
have war/ear and will placed as per required configuration.

Thanks & Regards
Subhro Paul
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




Re: Tomcat Thread issue

2015-04-29 Thread Subhro Paul
-Christopher Schultz ch...@christopherschultz.net wrote: -
To: Tomcat Users List users@tomcat.apache.org
From: Christopher Schultz ch...@christopherschultz.net
Date: 04/24/2015 07:14PM
Subject: Re: Tomcat Thread issue

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Felix,

On 4/24/15 3:19 AM, Felix Schumacher wrote:
 Am 24. April 2015 09:08:08 MESZ, schrieb Subhro Paul
 subhro.p...@tcs.com:
 
 
 -Subhro Paul subhro.p...@tcs.com wrote: - To:
 users@tomcat.apache.org From: Subhro Paul subhro.p...@tcs.com 
 Date: 04/23/2015 06:20PM Subject: Re: Tomcat Thread issue
 
 -Daniel Mikusa dmik...@pivotal.io wrote: - To: Tomcat
 Users List users@tomcat.apache.org From: Daniel Mikusa
 dmik...@pivotal.io Date: 04/23/2015 05:01PM Subject: Re: Tomcat
 Thread issue
 
 On Thu, Apr 23, 2015 at 7:15 AM, Subhro Paul
 subhro.p...@tcs.com wrote:
 
 Dear Team,
 
 One of our client's website stopped working yesterday. We
 observed
 that
 Tomcat servers were not working properly during that time. We
 have
 checked
 the memory usage of the server was fine but in the Catalina.out
 log
 we
 found it was already reached to max thread which is 512 though
 the
 number
 of connections to the server was normal. We took a thread dump
 from
 the
 server using VisualVM and we got the below message from
 threaddump:
 
 
 Since a thread dump is a point in time snapshot, you should
 always take multiple thread dumps, with a few seconds in between
 each one.  This gives you additional perspective as to what's
 happening with the threads over a period of time.
 
 
 
 http-8080-1 - Thread t@22
 
 java.lang.Thread.State: BLOCKED
 
 at java.util.Vector$1.nextElement(Vector.java:320)
 
 - waiting to lock 37749687 (a java.util.Vector) owned
 by
 http-8080-116 t@161
 
 at 
 org.apache.jsp.includes.header_jsp.isExcludePath(header_jsp.java:116
)


 
at
 org.apache.jsp.includes.header_jsp._jspService(header_jsp.java:314)



 
Look at what header.jsp is doing.  It seems to be doing something with
 the Vector class which is causing the thread to block.
 
 
 
 at 
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)


 
at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 
 at
 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:377)


 
at
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
13)


 
at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)


 
at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 
 at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)


 
at
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)


 
at
 
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:646)


 
at
 
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
ispatcher.java:551)


 
at
 
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
patcher.java:488)


 
at
 
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary
.java:968)


 
at
 
 org.apache.jsp.home.customer_005fservice.bill.my_005fbill_jsp._jspSer
vice(my_005fbill_jsp.java:126)


 
at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)


 
at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 
 at
 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:377)


 
at
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
13)


 
at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)


 
at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 
 at
 
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)


 
at
 
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)


 
at
 
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)


 
at
 
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)


 
at
 
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)


 
at
 
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)


 
at
 
 org.apache.catalina.valves.RequestFilterValve.process(RequestFilterVa
lve.java:269)


 
at
 
 org.apache.catalina.valves.RemoteHostValve.invoke(RemoteHostValve.jav
a:81)


 
at
 
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
555)


 
at
 
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)


 
at
 
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:298)


 
at
 
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:857)


 
at
 
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:588)


 
at
 
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:48
9

Re: Tomcat Thread issue

2015-04-24 Thread Subhro Paul


-Subhro Paul subhro.p...@tcs.com wrote: -
To: users@tomcat.apache.org
From: Subhro Paul subhro.p...@tcs.com
Date: 04/23/2015 06:20PM
Subject: Re: Tomcat Thread issue

-Daniel Mikusa dmik...@pivotal.io wrote: -
To: Tomcat Users List users@tomcat.apache.org
From: Daniel Mikusa dmik...@pivotal.io
Date: 04/23/2015 05:01PM
Subject: Re: Tomcat Thread issue

On Thu, Apr 23, 2015 at 7:15 AM, Subhro Paul subhro.p...@tcs.com wrote:

 Dear Team,

 One of our client's website stopped working yesterday. We observed that
 Tomcat servers were not working properly during that time. We have checked
 the memory usage of the server was fine but in the Catalina.out log we
 found it was already reached to max thread which is 512 though the number
 of connections to the server was normal. We took a thread dump from the
 server using VisualVM and we got the below message from threaddump:


Since a thread dump is a point in time snapshot, you should always take
multiple thread dumps, with a few seconds in between each one.  This gives
you additional perspective as to what's happening with the threads over a
period of time.



 http-8080-1 - Thread t@22

    java.lang.Thread.State: BLOCKED

             at java.util.Vector$1.nextElement(Vector.java:320)

             - waiting to lock 37749687 (a java.util.Vector) owned by
 http-8080-116 t@161

             at
 org.apache.jsp.includes.header_jsp.isExcludePath(header_jsp.java:116)

             at
 org.apache.jsp.includes.header_jsp._jspService(header_jsp.java:314)


Look at what header.jsp is doing.  It seems to be doing something with the
Vector class which is causing the thread to block.



             at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

             at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

             at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)

             at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)

             at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)

             at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

             at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

             at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

             at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)

             at
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)

             at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)

             at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)

             at
 org.apache.jsp.home.customer_005fservice.bill.my_005fbill_jsp._jspService(my_005fbill_jsp.java:126)

             at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

             at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

             at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)

             at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)

             at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)

             at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

             at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

             at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

             at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

             at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

             at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

             at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

             at
 org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:269)

             at
 org.apache.catalina.valves.RemoteHostValve.invoke(RemoteHostValve.java:81)

             at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)

             at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

             at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

             at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)

             at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)

             at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

             at java.lang.Thread.run(Thread.java:701)



    Locked ownable synchronizers:

 -          None



 This was coming for different threads

Tomcat Thread issue

2015-04-23 Thread Subhro Paul
Dear Team, 

One of our client's website stopped working yesterday. We observed that Tomcat 
servers were not working properly during that time. We have checked the memory 
usage of the server was fine but in the Catalina.out log we found it was 
already reached to max thread which is 512 though the number of connections to 
the server was normal. We took a thread dump from the server using VisualVM and 
we got the below message from threaddump: 

http-8080-1 - Thread t@22

   java.lang.Thread.State: BLOCKED

    at java.util.Vector$1.nextElement(Vector.java:320)

    - waiting to lock 37749687 (a java.util.Vector) owned by 
http-8080-116 t@161

    at 
org.apache.jsp.includes.header_jsp.isExcludePath(header_jsp.java:116)

    at 
org.apache.jsp.includes.header_jsp._jspService(header_jsp.java:314)

    at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)

    at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)

    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at 
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)

    at 
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)

    at 
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)

    at 
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)

    at 
org.apache.jsp.home.customer_005fservice.bill.my_005fbill_jsp._jspService(my_005fbill_jsp.java:126)

    at 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    at 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)

    at 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)

    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)

    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

    at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

    at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

    at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

    at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

    at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

    at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

    at 
org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:269)

    at 
org.apache.catalina.valves.RemoteHostValve.invoke(RemoteHostValve.java:81)

    at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)

    at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

    at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

    at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)

    at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)

    at 
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

    at java.lang.Thread.run(Thread.java:701)

 

   Locked ownable synchronizers:

-  None

  

This was coming for different threads. Once we restarted the servers, the 
website back to normal again but we got the below exception in the log :

 

Apr 22, 2015 11:15:28 AM org.apache.catalina.loader.WebappClassLoader 
clearReferencesThreads

SEVERE: A web application appears to have started a thread named [http-8080-1] 
but has failed to stop it. This is very likely to create a memory leak. 

 

So, we want to know while the thread is blocked is it like deadlock condition 
for which all threads were unavailable? Current thread count I about 190 but 
after few days this will reach to 500+ again even if the concurrent users are 
not high. Memory usage of the server was normal during this issue. This problem 
is happening from last 2 3 months.



Thanks  Regards,

Subhro Paul

=-=-=
Notice: The information contained in this e-mail
message and/or attachments

Re: Tomcat Thread issue

2015-04-23 Thread Subhro Paul
-Daniel Mikusa dmik...@pivotal.io wrote: -
To: Tomcat Users List users@tomcat.apache.org
From: Daniel Mikusa dmik...@pivotal.io
Date: 04/23/2015 05:01PM
Subject: Re: Tomcat Thread issue

On Thu, Apr 23, 2015 at 7:15 AM, Subhro Paul subhro.p...@tcs.com wrote:

 Dear Team,

 One of our client's website stopped working yesterday. We observed that
 Tomcat servers were not working properly during that time. We have checked
 the memory usage of the server was fine but in the Catalina.out log we
 found it was already reached to max thread which is 512 though the number
 of connections to the server was normal. We took a thread dump from the
 server using VisualVM and we got the below message from threaddump:


Since a thread dump is a point in time snapshot, you should always take
multiple thread dumps, with a few seconds in between each one.  This gives
you additional perspective as to what's happening with the threads over a
period of time.



 http-8080-1 - Thread t@22

    java.lang.Thread.State: BLOCKED

             at java.util.Vector$1.nextElement(Vector.java:320)

             - waiting to lock 37749687 (a java.util.Vector) owned by
 http-8080-116 t@161

             at
 org.apache.jsp.includes.header_jsp.isExcludePath(header_jsp.java:116)

             at
 org.apache.jsp.includes.header_jsp._jspService(header_jsp.java:314)


Look at what header.jsp is doing.  It seems to be doing something with the
Vector class which is causing the thread to block.



             at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

             at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

             at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)

             at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)

             at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)

             at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

             at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

             at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

             at
 org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)

             at
 org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)

             at
 org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)

             at
 org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:968)

             at
 org.apache.jsp.home.customer_005fservice.bill.my_005fbill_jsp._jspService(my_005fbill_jsp.java:126)

             at
 org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

             at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

             at
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)

             at
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)

             at
 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)

             at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

             at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

             at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

             at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)

             at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

             at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

             at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

             at
 org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:269)

             at
 org.apache.catalina.valves.RemoteHostValve.invoke(RemoteHostValve.java:81)

             at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:555)

             at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

             at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)

             at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)

             at
 org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)

             at
 org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)

             at java.lang.Thread.run(Thread.java:701)



    Locked ownable synchronizers:

 -          None



 This was coming for different threads. Once we restarted the servers, the
 website back to normal again but we got the below exception in the log :



 Apr 22, 2015 11:15:28 AM

GC Issue on Tomcat6

2015-04-17 Thread Subhro Paul
Hi Team,

For our client website we have two Tomcat servers. Both servers are having 
same configuration which is 16GB RAM, 8CPUS and Linux 6.5 OS. Tomcat 6 and 
JAVA 6 are installed in both systems.

Yesterday, using Jconsole we observed that frequency of GC on one server 
was very high which was 5 GC hit per Minute and on other server it was 1 
GC hit per 3 Minutes. But today we observed that on both of the servers GC 
frequency is same.

Is this a know secnario or the server is facing any issue?

Thanks  Regards
Subhro Paul
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you




Re: GC Issue on Tomcat6

2015-04-17 Thread Subhro Paul
From:   Ameer Mawia ameer.ma...@gmail.com
To: Tomcat Users List users@tomcat.apache.org
Date:   04/17/2015 06:29 PM
Subject:Re: GC Issue on Tomcat6



http://ca.linkedin.com/in/ameermawia
Toronto, ON
Phone:647-262-4380

On Fri, Apr 17, 2015 at 8:47 AM, David kerber dcker...@verizon.net 
wrote:

 On 4/17/2015 8:32 AM, Subhro Paul wrote:

 Hi Team,

 For our client website we have two Tomcat servers. Both servers are 
having
 same configuration which is 16GB RAM, 8CPUS and Linux 6.5 OS. Tomcat 6 
and
 JAVA 6 are installed in both systems.

 Yesterday, using Jconsole we observed that frequency of GC on one 
server
 was very high which was 5 GC hit per Minute and on other server it was 
1
 GC hit per 3 Minutes. But today we observed that on both of the servers 
GC
 frequency is same.

 Garbage Collection in Oracle Hot spot JVM takes place in generational
manner. GC on young generation is invoked much more frequently, while Full
GC is invoked once in a while. In any case, frequency is much higher than
what you have mentioned.

I'm not sure which GC(Young/Full) you are talking about? What pattern of 
GC
you have earlier observed?

 Is this a know secnario or the server is facing any issue?


 GC issue has nothing to do with Tomcat per say. It is the memory 
footprint
of your application which will dictate GC behavior.

In any case, if your application is facing some memory bottle-neck, it is
better to pay attention on the percentage your JVM is spending in GCing
your application. If that percentage is very high, say ~90%, that means
your application is facing sever memory constrain, your application is
almost stalled as JVM has been trying very high to recover some space. 
Most
probably in that case, your JVM will die throwing OOM error in sometime.


 It was probably just receiving more traffic and/or doing more work of 
some
 other kind.


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




Dear Ameer,

I am talking about Young GC which is PS Scavenge for both of the 
servers. Full GC was Running 1/Hour. Can you please assist how to check 
the % of memory utilization by GC through JConsole or any other process.

Thanks  Regards,
Subhro Paul
=-=-=
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you