Re: Help in diagnosing server unresponsiveness

2013-02-02 Thread Miguel González Castaños
On 01/02/2013 20:08, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Zoran, On 1/31/13 8:36 PM, Zoran Avtarovski wrote: We have a application running on the latest Tomcat7 and we are getting a server crash or becoming unresponsive. This occur every few days at no

Re: redirecting people to maintenance mode

2012-08-22 Thread Miguel González Castaños
On 21/08/2012 17:00, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miguel, On 8/21/12 6:25 AM, Miguel González Castaños wrote: Dear all, I have a Tomcat web server. From time to time, I need to do some maintenance and want people not to interact with the Tomcat

Re: Tomcat 7.x and Internet Explorer Adobe Reader plugin

2012-08-22 Thread Miguel González Castaños
On 22/08/2012 18:06, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miguel, On 8/21/12 10:24 AM, Miguel Gonzalez wrote: Our webapp worked fine under Tomcat 5.5. We decided to migrate to Tomcat 7 to get better performance and get support from the community in case

Re: Tomcat 7.x and Internet Explorer Adobe Reader plugin

2012-08-22 Thread Miguel González Castaños
We are having what sounds like a similar problem (although 7.0.26 works for us) and can provide our details. We are using Solaris 10, Tomcat 7.0.26, Apache/2.2.16, mod_jk/1.2.35 and Java(TM) SE Runtime Environment (build 1.6.0_30-b12) in our production environment. We are using the same

redirecting people to maintenance mode

2012-08-20 Thread Miguel González Castaños
Dear all, I have a Tomcat web server. From time to time, I need to do some maintenance and want people not to interact with the Tomcat server while I'm doing it. The key thing here is that the Tomcat server is up and running. This is what I want to achieve: - I want all people to be

Re: redirecting people to maintenance mode

2012-08-20 Thread Miguel González Castaños
On 20/08/2012 12:37, Jose María Zaragoza wrote: I assume I can use iptables to redirect people to a different web server, but how can I know that I need to redirect them to the maintenance.html if that server is serving other web pages too? You can try Valve filters . With Valve, you have

Re: redirecting people to maintenance mode

2012-08-20 Thread Miguel González Castaños
On 20/08/2012 13:50, André Warnier wrote: Miguel González Castaños wrote: Dear all, I have a Tomcat web server. Apparently, you also have an email program that sends messages dated from the future. Or, maybe you should say then : I will have a Tomcat web server. Either way, it makes

Re: heap memory issues

2012-06-19 Thread Miguel González Castaños
On 19/06/2012 06:04, Terence M. Bandoian wrote: On 1:59 PM, Miguel González Castaños wrote: I know, but how do I know how much ram to assign in a 64 bits jdk? We are planning to move to a bigger server (hopefully 16 or 32 gb). Miguel 16 or 32 GB? Is this a medical image processing system

Re: heap memory issues

2012-06-19 Thread Miguel González Castaños
On 19/06/2012 02:47, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miguel, On 6/18/12 6:34 PM, Miguel González Castaños wrote: [H]ow do I know how much ram to assign in a 64 bits jdk? We are planning to move to a bigger server (hopefully 16 or 32 gb). Nobody can

Re: heap memory issues

2012-06-18 Thread Miguel González Castaños
On 18/06/2012 02:45, Perry, Andrew wrote: Try setting -XX:MaxPermSize=256m it helps with our applications, it might do the trick here. What is the effect of this? Miguel - To unsubscribe, e-mail:

Re: heap memory issues

2012-06-18 Thread Miguel González Castaños
On 18/06/2012 09:52, Konstantin Kolinko wrote: 2012/6/16 Miguel González Castañosmiguel_3_gonza...@yahoo.es: Dear all, We have a webapp under Tomcat 5.5 and jdk 1.5 32 bits under a virtual machine of 4 Gb and a 64 bits OS. 4 Gb is memory size? Yes Some of you have helped me

heap memory issues

2012-06-16 Thread Miguel González Castaños
Dear all, We have a webapp under Tomcat 5.5 and jdk 1.5 32 bits under a virtual machine of 4 Gb and a 64 bits OS. Some of you have helped me suggesting me to install Javamelody and sar to monitor the system. Setting up heap dumps I have managed to see what was going on with the

Re: heap memory issues

2012-06-16 Thread Miguel González Castaños
On 16/06/2012 12:49, Miguel González Castaños wrote: Dear all, We have a webapp under Tomcat 5.5 and jdk 1.5 32 bits under a virtual machine of 4 Gb and a 64 bits OS. Some of you have helped me suggesting me to install Javamelody and sar to monitor the system. Setting up heap dumps

wget and Tomcat resources

2012-06-13 Thread Miguel González Castaños
Dear all, Our developer has set a cronjob similar to this: wget -T 0 http://ourserver.com/email_sender which calls a javabean to check pending emails to send in a database and actually send them. I'm concerned about this, since I have realized that we have peaks of 500 http

Re: Tomcat pausing and no java process

2012-06-12 Thread Miguel González Castaños
On 07/05/2012 23:13, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miguel, On 5/5/12 5:41 AM, Miguel González Castaños wrote: Yes, I have pinpointed several queries that took quite long and specially subqueries. I forwarded this info to the developer but she said

Re: isHexDigit error problems and upgrading Tomcat and jdk

2012-06-07 Thread Miguel González Castaños
On 07/06/2012 00:54, Konstantin Kolinko wrote: 2012/6/7 Miguel González Castañosmiguel_3_gonza...@yahoo.es: Hi, We are getting isHexDigit errors again, although there is no malformed URL requests It is parameter parsing code. It cannot claim the request as malformed (API does not allow it).

Re: isHexDigit error problems and upgrading Tomcat and jdk

2012-06-07 Thread Miguel González Castaños
That depends upon how you have configured your access log: you can configure an access log to log only requests that failed and the details of that request like this: Valve className=org.apache.catalina.valves.AccessLogValve conditionIf=org.apache.catalina.parameter_parse_failed

isHexDigit error problems and upgrading Tomcat and jdk

2012-06-06 Thread Miguel González Castaños
Hi, We are getting isHexDigit errors again, although there is no malformed URL requests We are using Tomcat 5.5 and jdk 1.5 (from Sun). As some of you have suggested me in the past, I'm considering to upgrade to a more up-to-date Tomcat and/or jdk so I can get more support and help from

Re: Multiple tomcat Instances on Same Server and One Apache Instance

2012-05-15 Thread Miguel González Castaños
On 15/05/2012 17:22, André Warnier wrote: Vickie Troy-McKoy wrote: ... Thank you Andre for your help. After I configured it as you specified, the behavior was the same as before I inquired on this forum. Well, it doesn't sound as if we really helped a lot then, or am I misunderstanding

Re: tomcat pausing and process killed

2012-05-09 Thread Miguel González Castaños
On 09/05/2012 21:47, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miguel, On 5/9/12 11:29 AM, Miguel Gonzalez wrote: I will check it, however I don't see in the access logs something relevant. Any string I can check Anything with %-codes that are invalid. You'll

munin tomcat and mysql

2012-05-07 Thread Miguel González Castaños
Dear all, I'm thinking about installing munin to monitor mysql, tomcat and system resources (specially memory and network). I'm going to install it under CentOS and Tomcat 5.5. Since it's a virtual machine, is munin going to take many resources of my system or is it a light tool?

Re: Tomcat pausing and no java process

2012-05-05 Thread Miguel González Castaños
Yes, I have pinpointed several queries that took quite long and specially subqueries. I forwarded this info to the developer but she said it was alright. More than a second to run a query seems to be a lot to me. That depends on what the query does. If it checks permissions to login, that's

Tomcat pausing and no java process

2012-05-03 Thread Miguel González Castaños
Dear all, My Tomcat 5.5 server reports in catalina.out under heavy load that Tomcat is pausing. I checked and no java process was running and I had to start Tomcat manually. No errors before in catalina.out. The only error found today (It crashed 3 times in 3 hours) was an outofmemory

Re: Tomcat pausing and no java process

2012-05-03 Thread Miguel González Castaños
On 03/05/2012 15:29, Pid wrote: On 03/05/2012 11:35, Miguel González Castaños wrote: Dear all, My Tomcat 5.5 server reports in catalina.out under heavy load that Tomcat is pausing. I checked and no java process was running and I had to start Tomcat manually. Can you post an example

Re: Tomcat pausing and no java process

2012-05-03 Thread Miguel González Castaños
Unlikely. If you are using SSL or serving large static files, APR/tcnative should be something that you look into using. I do use SSL, but all is dynamic jsps Honestly, I would put more effort into upgrading to a more recent version of Tomcat than looking into using APR/tcnative. No errors

Re: Tomcat pausing and no java process

2012-05-03 Thread Miguel González Castaños
On 03/05/2012 18:21, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miguel, On 5/3/12 11:37 AM, Miguel González Castaños wrote: We had several crashes today: First - 1 outofmemory error Second- 3 Tomcat pausing Do you mean that Tomcat actually paused its connectors

Re: Tomcat pausing and no java process

2012-05-03 Thread Miguel González Castaños
Just the -XX:+HeapDumpOnOutOfMemoryError you already have. Tomcat usually doesn't shut down nicely (as evidenced by the pausing of connectors in your log file) when you get an OOME. Are you sure that weekly Tomcat-restart process isn't still running? Yes, it's still running. Should i disable it?

Re: Javamelody and Struts

2012-05-02 Thread Miguel González Castaños
You asked the Tomcat users' group, not the Javamelody users' group: did you expect to find many Javamelody experts around here? The author is around and some other users too, since the recommendation of using this software actually came from this user group. Also in the beginning I thought It

Re: Javamelody and Struts

2012-05-01 Thread Miguel González Castaños
On 28/04/2012 22:50, evernat wrote: Hi Miguel, First, javamelody.war is *optional*. I suggest to try javamelody without using it. You may read the user guide for help with this: http://code.google.com/p/javamelody/wiki/UserGuide (if you have an exception, please copy the complete stack-trace)

Re: Javamelody and Struts

2012-04-28 Thread Miguel González Castaños
On 23/04/2012 22:00, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miguel, On 4/23/12 3:57 PM, Miguel González Castaños wrote: On 16/04/2012 12:43, Darryl Lewis wrote: Make sure the monitoring code is before the struts call. Start over again from scratch. Same

Re: Javamelody and Struts

2012-04-27 Thread Miguel González Castaños
On 26/04/2012 15:51, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miguel, On 4/26/12 5:58 AM, Miguel González Castaños wrote: On 26/04/2012 03:58, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miguel, On 4/25/12 6:24 PM, Miguel

Re: Javamelody and Struts

2012-04-26 Thread Miguel González Castaños
If no web browser reports the server certificate as not valid, then what's the problem? From my original email: Now that I'm trying to configure javamelody in Tomcat 5 with HTTPS I get the following error when I try to add the context and the URL: javamelody

Re: Javamelody and Struts

2012-04-26 Thread Miguel González Castaños
Please post your SSLConnector configuration (cleansed of any passwords). Connector port=443 maxHttpHeaderSize=8192 maxThreads=400 minSpareThreads=25 maxSpareThreads=75 enableLookups=false disableUploadTimeout=true acceptCount=100 scheme=https

Re: Javamelody and Struts

2012-04-26 Thread Miguel González Castaños
On 26/04/2012 03:58, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Miguel, On 4/25/12 6:24 PM, Miguel González Castaños wrote: Please post your SSLConnector configuration (cleansed of any passwords). By the way, double checking the info from my web browser I get

Re: Javamelody and Struts

2012-04-25 Thread Miguel González Castaños
On 23/04/2012 23:35, Miguel González Castaños wrote: On 23/04/2012 23:00, Miguel González Castaños wrote: Have you imported all of the intermediate certificates from VeriSign. I think that for some SSL certificates, you need *two* intermediate certificates from VeriSign. No, I didn't know

Re: Javamelody and Struts

2012-04-25 Thread Miguel González Castaños
Do those certificates match the type of certificate that you have? Last time I checked, VeriSign had a whole set of intermediate certificates and you need the ones that match the type of certificate you have (EV versus whatever the other flavors they have are). Which other flavors? How do I

Re: Javamelody and Struts

2012-04-23 Thread Miguel González Castaños
On 16/04/2012 12:43, Darryl Lewis wrote: Make sure the monitoring code is before the struts call. On 16/04/12 5:38 PM, Miguel González Castaños miguel_3_gonza...@yahoo.es wrote: On 16/04/2012 09:34, Debraj Mallick wrote: hi there, to access use :*http://host/context/monitoring* link

Re: Javamelody and Struts

2012-04-23 Thread Miguel González Castaños
Have you imported all of the intermediate certificates from VeriSign. I think that for some SSL certificates, you need *two* intermediate certificates from VeriSign. No, I didn't know that I had to do that. Where can I download those intermediate certificates? Many thanks for the hint Miguel

Re: Javamelody and Struts

2012-04-23 Thread Miguel González Castaños
On 23/04/2012 23:00, Miguel González Castaños wrote: Have you imported all of the intermediate certificates from VeriSign. I think that for some SSL certificates, you need *two* intermediate certificates from VeriSign. No, I didn't know that I had to do that. Where can I download those

Re: Javamelody and Struts

2012-04-16 Thread Miguel González Castaños
Dear Debraj, I have followed these instructions and I can't figure out where to access the monitoring tool. On 16/04/2012 07:02, Debraj Mallick wrote: hi there, in your web.xml include these *filter filter-namemonitoring/filter-name

Re: Javamelody and Struts

2012-04-16 Thread Miguel González Castaños
On 16/04/2012 09:34, Debraj Mallick wrote: hi there, to access use :*http://host/context/monitoring* link: *http://code.google.com/p/javamelody/wiki/UserGuide#3._First_results* Don't get me wrong, but what does it matter the access URL if my webapp doesn't even work? Miguel

Javamelody and Struts

2012-04-15 Thread Miguel González Castaños
Dear all, Javamelody is supposedly very easy to install for Tomcat but We do have a webapp using the Struts framework and I can't figure out how to configure Javamelody or get any error log of what I'm doing wrong. The web.xml example in the Javamelody is blocking my webapp to work (we use

determining cause of MaxThreads exhausted

2012-04-13 Thread Miguel González Castaños
Dear all, A server that I manage has a Struts webapp with a Tomcat 5.5.x standalone server. No JMX or whatsoever has been configured. The app sends massive emails to users with some info that requires users to log on the webapp and fill in some forms. It seems (without any logs or

Re: determining cause of MaxThreads exhausted

2012-04-13 Thread Miguel González Castaños
On 13/04/2012 10:14, Pid * wrote: On 13 Apr 2012, at 09:09, Miguel González Castaños miguel_3_gonza...@yahoo.es wrote: Dear all, A server that I manage has a Struts webapp with a Tomcat 5.5.x standalone server. No JMX or whatsoever has been configured. The app sends massive emails

Re: determining cause of MaxThreads exhausted

2012-04-13 Thread Miguel González Castaños
The app sends massive emails to users with some info that requires users to log on the webapp and fill in some forms. It seems (without any logs or metrics) that people tend to fill the forms right away after they got the emails and together with the mailing process (that requires DB use to get

Bash script for monitoring status of the Tomcat server

2012-04-02 Thread Miguel González Castaños
Dear all, Recently we had to restart our standalone Tomcat server because apparently the 150 max threads setting was not enough. I have been googling a bit and it seems it's possible to monitor the performance of the server and also get the numbers when the connection pool or the threads